mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
WIP
This commit is contained in:
parent
3613e32c34
commit
5d9f8dca71
@ -1,21 +1,21 @@
|
||||
using UnityEngine;
|
||||
using UnityAtoms.Tags;
|
||||
using UnityEngine.Serialization;
|
||||
// using UnityEngine;
|
||||
// using UnityAtoms.Tags;
|
||||
// using UnityEngine.Serialization;
|
||||
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Decrease Players Health")]
|
||||
public sealed class DecreasePlayersHealth : Collider2DAction
|
||||
{
|
||||
[SerializeField]
|
||||
private StringConstant _tagPlayer = null;
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// [CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Decrease Players Health")]
|
||||
// public sealed class DecreasePlayersHealth : Collider2DAction
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private StringConstant _tagPlayer = null;
|
||||
|
||||
public override void Do(Collider2D collider)
|
||||
{
|
||||
if (collider.gameObject.HasTag(_tagPlayer))
|
||||
{
|
||||
collider.GetComponent<PlayerHealth>().Health.Value -= 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// public override void Do(Collider2D collider)
|
||||
// {
|
||||
// if (collider.gameObject.HasTag(_tagPlayer))
|
||||
// {
|
||||
// collider.GetComponent<PlayerHealth>().Health.Value -= 10;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
@ -1,10 +1,10 @@
|
||||
using UnityEngine;
|
||||
// using UnityEngine;
|
||||
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
[AddComponentMenu("Unity Atoms/Examples/PlayerHealth")]
|
||||
public class PlayerHealth : MonoBehaviour
|
||||
{
|
||||
public IntVariable Health;
|
||||
}
|
||||
}
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// [AddComponentMenu("Unity Atoms/Examples/PlayerHealth")]
|
||||
// public class PlayerHealth : MonoBehaviour
|
||||
// {
|
||||
// public IntVariable Health;
|
||||
// }
|
||||
// }
|
||||
|
@ -1,17 +1,17 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
// using UnityEngine;
|
||||
// using UnityEngine.UI;
|
||||
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
[AddComponentMenu("Unity Atoms/Examples/HealthBar")]
|
||||
public class HealthBar : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private IntConstant _maxHealth = null;
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// [AddComponentMenu("Unity Atoms/Examples/HealthBar")]
|
||||
// public class HealthBar : MonoBehaviour
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private IntConstant _maxHealth = null;
|
||||
|
||||
public void HealthChanged(int health)
|
||||
{
|
||||
GetComponent<Image>().fillAmount = 1.0f * health / _maxHealth.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
// public void HealthChanged(int health)
|
||||
// {
|
||||
// GetComponent<Image>().fillAmount = 1.0f * health / _maxHealth.Value;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
@ -1,17 +1,17 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
// using UnityEngine;
|
||||
// using UnityEngine.Serialization;
|
||||
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Reset Health", fileName = "ResetHealth")]
|
||||
public class ResetHealth : VoidAction
|
||||
{
|
||||
[SerializeField]
|
||||
private IntVariable _variable = null;
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// [CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Reset Health", fileName = "ResetHealth")]
|
||||
// public class ResetHealth : VoidAction
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private IntVariable _variable = null;
|
||||
|
||||
public override void Do()
|
||||
{
|
||||
_variable.Reset(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
// public override void Do()
|
||||
// {
|
||||
// _variable.Reset(true);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
@ -1,36 +1,36 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using Marvelous;
|
||||
using UniRx;
|
||||
// using System;
|
||||
// using UnityEngine;
|
||||
// using Marvelous;
|
||||
// using UniRx;
|
||||
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
public class PlayerMoveUniRx : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private StringVariable _uiState;
|
||||
[SerializeField]
|
||||
private StringConstant _uiStatePlaying;
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// public class PlayerMoveUniRx : MonoBehaviour
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private StringVariable _uiState;
|
||||
// [SerializeField]
|
||||
// private StringConstant _uiStatePlaying;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
float _horizontal = 0f, _vertical = 0f;
|
||||
string HORIZONTAL = "Horizontal", VERTICAL = "Vertical";
|
||||
// private void Awake()
|
||||
// {
|
||||
// float _horizontal = 0f, _vertical = 0f;
|
||||
// string HORIZONTAL = "Horizontal", VERTICAL = "Vertical";
|
||||
|
||||
Observable.EveryUpdate().Fuse<long, string>(
|
||||
_uiState.ObserveChange(),
|
||||
initialValue2: _uiState.Value
|
||||
).Subscribe(t =>
|
||||
{
|
||||
var (_, state) = t;
|
||||
_horizontal = state == _uiStatePlaying.Value ? Input.GetAxis(HORIZONTAL) : 0f;
|
||||
_vertical = state == _uiStatePlaying.Value ? Input.GetAxis(VERTICAL) : 0f;
|
||||
});
|
||||
// Observable.EveryUpdate().Fuse<long, string>(
|
||||
// _uiState.ObserveChange(),
|
||||
// initialValue2: _uiState.Value
|
||||
// ).Subscribe(t =>
|
||||
// {
|
||||
// var (_, state) = t;
|
||||
// _horizontal = state == _uiStatePlaying.Value ? Input.GetAxis(HORIZONTAL) : 0f;
|
||||
// _vertical = state == _uiStatePlaying.Value ? Input.GetAxis(VERTICAL) : 0f;
|
||||
// });
|
||||
|
||||
Observable.EveryFixedUpdate().Subscribe(t =>
|
||||
{
|
||||
GetComponent<Rigidbody2D>().velocity = new Vector2(_horizontal, _vertical) * 5f;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
// Observable.EveryFixedUpdate().Subscribe(t =>
|
||||
// {
|
||||
// GetComponent<Rigidbody2D>().velocity = new Vector2(_horizontal, _vertical) * 5f;
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
@ -1,22 +1,22 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UniRx;
|
||||
// using UnityEngine;
|
||||
// using UnityEngine.UI;
|
||||
// using UniRx;
|
||||
|
||||
namespace UnityAtoms.Examples
|
||||
{
|
||||
public class HealthBarUniRx : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private IntConstant _maxHealth = null;
|
||||
[SerializeField]
|
||||
private IntVariable _health = null;
|
||||
// namespace UnityAtoms.Examples
|
||||
// {
|
||||
// public class HealthBarUniRx : MonoBehaviour
|
||||
// {
|
||||
// [SerializeField]
|
||||
// private IntConstant _maxHealth = null;
|
||||
// [SerializeField]
|
||||
// private IntVariable _health = null;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
_health.ObserveChange().Subscribe(health =>
|
||||
{
|
||||
GetComponent<Image>().fillAmount = 1.0f * health / _maxHealth.Value;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
// void Awake()
|
||||
// {
|
||||
// _health.ObserveChange().Subscribe(health =>
|
||||
// {
|
||||
// GetComponent<Image>().fillAmount = 1.0f * health / _maxHealth.Value;
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
@ -10,17 +10,18 @@ namespace UnityAtoms.Editor
|
||||
public class AtomEventReferenceDrawer : PropertyDrawer
|
||||
{
|
||||
private static readonly string[] _popupOptions =
|
||||
{ "Use Event", "Use Variable", "Use Variable Instancer" };
|
||||
{ "Use Event", "Use Event Instancer", "Use Variable", "Use Variable Instancer" };
|
||||
private static GUIStyle _popupStyle;
|
||||
|
||||
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
|
||||
{
|
||||
SerializedProperty usage = property.FindPropertyRelative("_usage");
|
||||
SerializedProperty ev = property.FindPropertyRelative("_event");
|
||||
SerializedProperty evInstancer = property.FindPropertyRelative("_eventInstancer");
|
||||
SerializedProperty variable = property.FindPropertyRelative("_variable");
|
||||
SerializedProperty variableInstancer = property.FindPropertyRelative("_variableInstancer");
|
||||
|
||||
return EditorGUI.GetPropertyHeight(GetPropToUse(usage, ev, variable, variableInstancer), label);
|
||||
return EditorGUI.GetPropertyHeight(GetPropToUse(usage, ev, evInstancer, variable, variableInstancer), label);
|
||||
}
|
||||
|
||||
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
||||
@ -39,6 +40,7 @@ namespace UnityAtoms.Editor
|
||||
// Get properties
|
||||
SerializedProperty usage = property.FindPropertyRelative("_usage");
|
||||
SerializedProperty ev = property.FindPropertyRelative("_event");
|
||||
SerializedProperty evInstancer = property.FindPropertyRelative("_eventInstancer");
|
||||
SerializedProperty variable = property.FindPropertyRelative("_variable");
|
||||
SerializedProperty variableInstancer = property.FindPropertyRelative("_variableInstancer");
|
||||
|
||||
@ -54,7 +56,7 @@ namespace UnityAtoms.Editor
|
||||
usage.intValue = EditorGUI.Popup(buttonRect, usage.intValue, _popupOptions, _popupStyle);
|
||||
|
||||
EditorGUI.PropertyField(position,
|
||||
GetPropToUse(usage, ev, variable, variableInstancer),
|
||||
GetPropToUse(usage, ev, evInstancer, variable, variableInstancer),
|
||||
GUIContent.none);
|
||||
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
@ -64,13 +66,17 @@ namespace UnityAtoms.Editor
|
||||
EditorGUI.EndProperty();
|
||||
}
|
||||
|
||||
private SerializedProperty GetPropToUse(SerializedProperty usage, SerializedProperty ev, SerializedProperty variable, SerializedProperty variableInstancer)
|
||||
private SerializedProperty GetPropToUse(SerializedProperty usage, SerializedProperty ev, SerializedProperty evInstancer, SerializedProperty variable, SerializedProperty variableInstancer)
|
||||
{
|
||||
var usageIntVal = (AtomEventReferenceBase.Usage)usage.intValue;
|
||||
if (usageIntVal == AtomEventReferenceBase.Usage.Variable)
|
||||
{
|
||||
return variable;
|
||||
}
|
||||
else if (usageIntVal == AtomEventReferenceBase.Usage.EventInstancer)
|
||||
{
|
||||
return evInstancer;
|
||||
}
|
||||
else if (usageIntVal == AtomEventReferenceBase.Usage.VariableInstancer)
|
||||
{
|
||||
return variableInstancer;
|
||||
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `bool`. Inherits from `AtomDrawer<BoolConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(BoolConstant))]
|
||||
public class BoolConstantDrawer : VariableDrawer<BoolConstant> { }
|
||||
}
|
||||
#endif
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Collider2DConstant))]
|
||||
public class Collider2DConstantDrawer : VariableDrawer<Collider2DConstant> { }
|
||||
}
|
||||
#endif
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Collider`. Inherits from `AtomDrawer<ColliderConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColliderConstant))]
|
||||
public class ColliderConstantDrawer : VariableDrawer<ColliderConstant> { }
|
||||
}
|
||||
#endif
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Color`. Inherits from `AtomDrawer<ColorConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColorConstant))]
|
||||
public class ColorConstantDrawer : VariableDrawer<ColorConstant> { }
|
||||
}
|
||||
#endif
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `float`. Inherits from `AtomDrawer<FloatConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(FloatConstant))]
|
||||
public class FloatConstantDrawer : VariableDrawer<FloatConstant> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7dab4354f4fd646e8a90ca4c07af3e21
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `GameObject`. Inherits from `AtomDrawer<GameObjectConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(GameObjectConstant))]
|
||||
public class GameObjectConstantDrawer : VariableDrawer<GameObjectConstant> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f36a1a23866747af930f34308709475
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `int`. Inherits from `AtomDrawer<IntConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(IntConstant))]
|
||||
public class IntConstantDrawer : VariableDrawer<IntConstant> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 37a1e36bcf571480492c15a6492db854
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `string`. Inherits from `AtomDrawer<StringConstant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(StringConstant))]
|
||||
public class StringConstantDrawer : VariableDrawer<StringConstant> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a3cb98ecb5e4f41a39d4bc1e30ed781c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Vector2`. Inherits from `AtomDrawer<Vector2Constant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector2Constant))]
|
||||
public class Vector2ConstantDrawer : VariableDrawer<Vector2Constant> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6ad5dd3c26784f729c42ff61945cfc6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant property drawer of type `Vector3`. Inherits from `AtomDrawer<Vector3Constant>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector3Constant))]
|
||||
public class Vector3ConstantDrawer : VariableDrawer<Vector3Constant> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 057726c762a6d4b59a573114ce21d5f3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `AtomBaseVariable`. Inherits from `AtomDrawer<AtomBaseVariableEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(AtomBaseVariableEvent))]
|
||||
public class AtomBaseVariableEventDrawer : AtomDrawer<AtomBaseVariableEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9ba77df271427415f85e7831cfaa564a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `bool`. Inherits from `AtomDrawer<BoolBoolEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(BoolBoolEvent))]
|
||||
public class BoolBoolEventDrawer : AtomDrawer<BoolBoolEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8fe9b0e14827f4addbf7beef4d00bfec
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `bool`. Inherits from `AtomDrawer<BoolEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(BoolEvent))]
|
||||
public class BoolEventDrawer : AtomDrawer<BoolEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 814335471cc57497aa411f797b4300ca
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DCollider2DEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Collider2DCollider2DEvent))]
|
||||
public class Collider2DCollider2DEventDrawer : AtomDrawer<Collider2DCollider2DEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce2c67467cda04c74873cc80f43301bc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Collider2DEvent))]
|
||||
public class Collider2DEventDrawer : AtomDrawer<Collider2DEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4c1dd3711631c43b085df77c2e8d6f70
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `Collider`. Inherits from `AtomDrawer<ColliderColliderEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColliderColliderEvent))]
|
||||
public class ColliderColliderEventDrawer : AtomDrawer<ColliderColliderEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 36d1fbe3eef394b21b3e67b3cbf4767f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Collider`. Inherits from `AtomDrawer<ColliderEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColliderEvent))]
|
||||
public class ColliderEventDrawer : AtomDrawer<ColliderEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0350eb2b34fa4c09875146c4ca7f8b8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `Color`. Inherits from `AtomDrawer<ColorColorEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColorColorEvent))]
|
||||
public class ColorColorEventDrawer : AtomDrawer<ColorColorEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a1f56521d4a7642db8493be9b1eb9d9f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Color`. Inherits from `AtomDrawer<ColorEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColorEvent))]
|
||||
public class ColorEventDrawer : AtomDrawer<ColorEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b462011f6c1f4c8eb3b6c292f169981
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `float`. Inherits from `AtomDrawer<FloatEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(FloatEvent))]
|
||||
public class FloatEventDrawer : AtomDrawer<FloatEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2f0929c7ac38b446ba33f8841261ceda
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `float`. Inherits from `AtomDrawer<FloatFloatEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(FloatFloatEvent))]
|
||||
public class FloatFloatEventDrawer : AtomDrawer<FloatFloatEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bfa6e6b8a6c8e4f329427647b510ce6e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `GameObject`. Inherits from `AtomDrawer<GameObjectEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(GameObjectEvent))]
|
||||
public class GameObjectEventDrawer : AtomDrawer<GameObjectEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5973565aa50804b4b9f271b645f490a4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `GameObject`. Inherits from `AtomDrawer<GameObjectGameObjectEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(GameObjectGameObjectEvent))]
|
||||
public class GameObjectGameObjectEventDrawer : AtomDrawer<GameObjectGameObjectEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a5255c156ae5c4e8880d097e234782f3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `int`. Inherits from `AtomDrawer<IntEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(IntEvent))]
|
||||
public class IntEventDrawer : AtomDrawer<IntEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7106551fabc2e49688ff0a738f66cea9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `int`. Inherits from `AtomDrawer<IntIntEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(IntIntEvent))]
|
||||
public class IntIntEventDrawer : AtomDrawer<IntIntEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: becd45ffbad264af8b7f517143403138
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `string`. Inherits from `AtomDrawer<StringEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(StringEvent))]
|
||||
public class StringEventDrawer : AtomDrawer<StringEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 567c1cd5d502e42f69c0240e5b0caea6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `string`. Inherits from `AtomDrawer<StringStringEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(StringStringEvent))]
|
||||
public class StringStringEventDrawer : AtomDrawer<StringStringEvent> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0adcd4748beeb4f4faaebbee28e55603
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Vector2`. Inherits from `AtomDrawer<Vector2Event>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector2Event))]
|
||||
public class Vector2EventDrawer : AtomDrawer<Vector2Event> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b01057a4d9ea94b46a838a25b1694845
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `Vector2`. Inherits from `AtomDrawer<Vector2Vector2Event>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector2Vector2Event))]
|
||||
public class Vector2Vector2EventDrawer : AtomDrawer<Vector2Vector2Event> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2005f869850ee4a5a9ed1492eec2f7cd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event property drawer of type `Vector3`. Inherits from `AtomDrawer<Vector3Event>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector3Event))]
|
||||
public class Vector3EventDrawer : AtomDrawer<Vector3Event> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6d79a3e2dd39e45a88f3be2950d6dc1a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Event x 2 property drawer of type `Vector3`. Inherits from `AtomDrawer<Vector3Vector3Event>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector3Vector3Event))]
|
||||
public class Vector3Vector3EventDrawer : AtomDrawer<Vector3Vector3Event> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2907cbcf58ba041d287e0b85a3b4aa26
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
27
Packages/Core/Editor/Drawers/ReadOnlyDrawer.cs
Normal file
27
Packages/Core/Editor/Drawers/ReadOnlyDrawer.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Make property read only by using the abbtribute `[ReadOnly]`. Solution taken from: https://answers.unity.com/questions/489942/how-to-make-a-readonly-property-in-inspector.html
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ReadOnlyAttribute))]
|
||||
public class ReadOnlyDrawer : PropertyDrawer
|
||||
{
|
||||
public override float GetPropertyHeight(SerializedProperty property,
|
||||
GUIContent label)
|
||||
{
|
||||
return EditorGUI.GetPropertyHeight(property, label, true);
|
||||
}
|
||||
|
||||
public override void OnGUI(Rect position,
|
||||
SerializedProperty property,
|
||||
GUIContent label)
|
||||
{
|
||||
GUI.enabled = false;
|
||||
EditorGUI.PropertyField(position, property, label, true);
|
||||
GUI.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29b71dc415c984b97bce0c8cb79d1e80
|
||||
guid: 7f4c8889b018a44e2b9f10f21876bae2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@ -6,7 +6,7 @@ namespace UnityAtoms.Editor
|
||||
/// <summary>
|
||||
/// SerializableDictionary property drawer for type <StringReference, AtomBaseVariable>. Inherits from `SerializableDictionaryDrawer<StringReference, AtomBaseVariable, StringReferenceAtomBaseVariableDictionary>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(StringReferenceAtomBaseVariableDictionary))]
|
||||
public class StringReferenceAtomBaseVariableDictionaryDrawer : SerializableDictionaryDrawer<StringReference, AtomBaseVariable, StringReferenceAtomBaseVariableDictionary> { }
|
||||
// [CustomPropertyDrawer(typeof(StringReferenceAtomBaseVariableDictionary))]
|
||||
// public class StringReferenceAtomBaseVariableDictionaryDrawer : SerializableDictionaryDrawer<StringReference, AtomBaseVariable, StringReferenceAtomBaseVariableDictionary> { }
|
||||
}
|
||||
#endif
|
||||
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `bool`. Inherits from `AtomDrawer<BoolValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(BoolValueList))]
|
||||
public class BoolValueListDrawer : AtomDrawer<BoolValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f641d1cf352f94fa0a22b099211e8e10
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Collider2DValueList))]
|
||||
public class Collider2DValueListDrawer : AtomDrawer<Collider2DValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3bd03ced0ac2a43b5828c2e84b32c41c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `Collider`. Inherits from `AtomDrawer<ColliderValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColliderValueList))]
|
||||
public class ColliderValueListDrawer : AtomDrawer<ColliderValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7146f9dfa7c4e451b8276398875eff82
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `Color`. Inherits from `AtomDrawer<ColorValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColorValueList))]
|
||||
public class ColorValueListDrawer : AtomDrawer<ColorValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9d9dce81aacb94950b1bff49ab53288f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `float`. Inherits from `AtomDrawer<FloatValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(FloatValueList))]
|
||||
public class FloatValueListDrawer : AtomDrawer<FloatValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bd3ec2ac9fbe54d95b45eb35cdd6ddee
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `GameObject`. Inherits from `AtomDrawer<GameObjectValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(GameObjectValueList))]
|
||||
public class GameObjectValueListDrawer : AtomDrawer<GameObjectValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fcbe5cd39a8114eb1b0eafe073b9eb86
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `int`. Inherits from `AtomDrawer<IntValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(IntValueList))]
|
||||
public class IntValueListDrawer : AtomDrawer<IntValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a32cbdebf2c4e482ba4cae777f31b1c2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `string`. Inherits from `AtomDrawer<StringValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(StringValueList))]
|
||||
public class StringValueListDrawer : AtomDrawer<StringValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fe5a345122b4b4ea48187e1494a2877b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `Vector2`. Inherits from `AtomDrawer<Vector2ValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector2ValueList))]
|
||||
public class Vector2ValueListDrawer : AtomDrawer<Vector2ValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e8b07863f0b2749b0a9ecae1e9face77
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Value List property drawer of type `Vector3`. Inherits from `AtomDrawer<Vector3ValueList>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Vector3ValueList))]
|
||||
public class Vector3ValueListDrawer : AtomDrawer<Vector3ValueList> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f16ace60215bb4e93b269937b22d0254
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Variable property drawer of type `bool`. Inherits from `AtomDrawer<BoolVariable>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(BoolVariable))]
|
||||
public class BoolVariableDrawer : VariableDrawer<BoolVariable> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af7a7155c0cb1416ca22cef078a6ee13
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Variable property drawer of type `Collider2D`. Inherits from `AtomDrawer<Collider2DVariable>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(Collider2DVariable))]
|
||||
public class Collider2DVariableDrawer : VariableDrawer<Collider2DVariable> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c7ffbd2cf36a845399876cfd96de2a7e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Variable property drawer of type `Collider`. Inherits from `AtomDrawer<ColliderVariable>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColliderVariable))]
|
||||
public class ColliderVariableDrawer : VariableDrawer<ColliderVariable> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83082454b2fa64abd9c1fb88a9e93556
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Variable property drawer of type `Color`. Inherits from `AtomDrawer<ColorVariable>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(ColorVariable))]
|
||||
public class ColorVariableDrawer : VariableDrawer<ColorVariable> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af924327b3b7e466e927f85154059c3b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Variable property drawer of type `float`. Inherits from `AtomDrawer<FloatVariable>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(FloatVariable))]
|
||||
public class FloatVariableDrawer : VariableDrawer<FloatVariable> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6987b5fcc97bb44ceb9f2973f10f50d9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,12 +0,0 @@
|
||||
#if UNITY_2019_1_OR_NEWER
|
||||
using UnityEditor;
|
||||
|
||||
namespace UnityAtoms.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// Variable property drawer of type `GameObject`. Inherits from `AtomDrawer<GameObjectVariable>`. Only availble in `UNITY_2019_1_OR_NEWER`.
|
||||
/// </summary>
|
||||
[CustomPropertyDrawer(typeof(GameObjectVariable))]
|
||||
public class GameObjectVariableDrawer : VariableDrawer<GameObjectVariable> { }
|
||||
}
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f87d17a885e064545abf45a09062181b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user