This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using System.Diagnostics; | |
using System.IO; | |
public static class ProcessBuild | |
{ | |
[PostProcessBuild(1000)] | |
public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProject) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Serializable] | |
public class BaseField<T> { | |
public string name; | |
public T value; | |
public Field(string name) { | |
this.name = name; | |
this.value = default(T); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
public class GUIControlEditorWindow : EditorWindow { | |
[MenuItem("Window/GUIControl Test")] | |
public static void OpenGUIControlEditorWindow() { | |
EditorWindow.GetWindow<GUIControlEditorWindow>(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
namespace Opendream { | |
public class ExampleRotate : MonoBehaviour { | |
public Transform m_Transform; | |
public Vector3 angle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using Opendream.Layouts; | |
namespace Opendream { | |
public partial class CustomEditorWindow : EditorWindow { | |
[MenuItem("Window/Custom Editor", false, 2)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringExample { | |
private int intFromString; | |
private float floatFromString; | |
private bool boolFromString; | |
private string format = "Hi {Name} {Last}, I'm {Age} years old. I'm from {Country}."; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
namespace RutCreate { | |
[ExecuteInEditMode] | |
public class CameraLayout : MonoBehaviour { | |
public Vector2 referenceResolution = new Vector2(800f, 600f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class SceneManager : MonoBehaviour { | |
private const string LOADING_LEVEL_KEY = "Loading Level"; | |
private static AsyncOperation operation; | |
public float delayBefore = 0.5f; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class MyProperty : PropertyAttribute { | |
public int intValue = 33; | |
public float floatValue = 12.5f; | |
public bool boolValue = true; | |