Skip to content

Instantly share code, notes, and snippets.

@JonathanReid
JonathanReid / Unity Fastlane
Last active March 11, 2018 11:41
Function to execute fastlane inside unity
//requires https://github.com/wlgys8/UnityShellHelper
[MenuItem("Build/run xcode")]
static void XCodeBuild()
{
ShellHelper.ShellRequest req = ShellHelper.ProcessCommand("PATH=$PATH:/usr/local/bin\nfastlane ios beta", "Build");
req.onLog += delegate (int arg1, string arg2)
{
UnityEngine.Debug.Log(arg2);
};
@JonathanReid
JonathanReid / SpriteCreator
Last active June 17, 2024 07:34
SpriteCreator, a runtime atlassing system for Unity Sprites.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
/// <summary>
/// SpriteCreator, a runtime atlassing system for Unity Sprites.
/// Tries to not create any unneccessary textures, cleans all references when Flushed.
/// Can use with or without the atlassing, just call AddToAtlas and Build when using atlasses.
/// Full control over which atlases to add images to.
@JonathanReid
JonathanReid / Gizmo draw
Last active August 29, 2015 14:12
A simple wrapper class for Gizmos which quickens up the gizmos drawing process. Also allows you to draw things like circles and AABB's quickly.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace De.Bug
{
public class DebugDrawVO : ScriptableObject {
public List<Vector3> Points;
public Color Color;