This file contains hidden or 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; | |
[DefaultExecutionOrder(ExecuteOrder.UI_INITIALIZE)] | |
public class UIManager : MonoBehaviour | |
{ | |
void Awake() | |
{ | |
Debug.Log("UIManager Initialized"); | |
} | |
} |
This file contains hidden or 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 ExecuteOrder { | |
public const int FIRST = -29900; | |
public const int INITIALIZE = -8000; | |
public const int UI_INITIALIZE = -6000; | |
public const int CONTENT_INITIALIZE = -4000; | |
public const int LOGIN_INIT = -2000; | |
public const int LAST = 29900; | |
} |
This file contains hidden or 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 AtlasGenerator : MonoBehaviour | |
{ | |
void Awake() | |
{ | |
CreateAtlas(); | |
Debug.Log("Atlas Generated!"); | |
} |
This file contains hidden or 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 System; | |
using UnityEngine; | |
public class LoginModule : MonoBehaviour | |
{ | |
void Awake() | |
{ | |
byte[] bytes = new byte[0]; | |
ILoginModule loginModule = new LocalLoginModule(); |
This file contains hidden or 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 UIManager : MonoBehaviour | |
{ | |
void Awake() | |
{ | |
Debug.Log("UIManager Initialized"); | |
} | |
} |
This file contains hidden or 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; | |
namespace CQ.Test { | |
public class CurveAssetUsage : MonoBehaviour { | |
public AnimationCurveAsset curveAsset; | |
AnimationCurve currentCurve; | |
// Scriptable Object ์์ ์ปค๋ธ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ ธ๋ค ์ปค๋ธ๋ก ์ฌ์ฉํ ๋ | |
void SetCurve(AnimationCurveAsset curve) |
This file contains hidden or 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
namespace UnityEngine { | |
[CreateAssetMenu(menuName = "Animation Curve", order = 400)] | |
public class AnimationCurveAsset : ScriptableObject { | |
public AnimationCurve curve = AnimationCurve.Linear(0, 0, 1, 1); | |
public static implicit operator AnimationCurve(AnimationCurveAsset me) | |
{ | |
return me.curve; | |
} |
This file contains hidden or 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
[UnityEditor.CustomPropertyDrawer(typeof(ReadOnlyAttribute), true)] | |
public class ReadOnlyDrawer : UnityEditor.PropertyDrawer | |
{ | |
public override float GetPropertyHeight(UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) | |
{ | |
return UnityEditor.EditorGUI.GetPropertyHeight(property, label, true); | |
} | |
public override void OnGUI(UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) |
This file contains hidden or 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 Sample : MonoBehaviour { | |
public string publicField; | |
[ReadOnly] | |
public string readOnlyField; | |
[ReadOnly(EReadOnlyType.FULLY_DISABLED)] |
This file contains hidden or 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 enum EReadOnlyType { | |
FULLY_DISABLED, | |
EDITABLE_RUNTIME, | |
EDITABLE_EDITOR, | |
} | |
public class ReadOnlyAttribute : UnityEngine.PropertyAttribute { | |
public readonly EReadOnlyType runtimeOnly; |