mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
Add AddComponentMenu to Variable Instancers
This commit is contained in:
parent
81e35f17fe
commit
85f72abf8a
@ -1,3 +1,4 @@
|
||||
using UnityEngine;
|
||||
<%IF TYPE_HAS_NAMESPACE%>
|
||||
using {TYPE_NAMESPACE};
|
||||
<%ENDIF%>
|
||||
@ -12,5 +13,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `{TYPE}`. Inherits from `AtomVariableInstancer<{TYPE_NAME}Variable, {TYPE}, {TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Function>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/{TYPE_NAME} Instancer")]
|
||||
public class {TYPE_NAME}VariableInstancer : AtomVariableInstancer<{TYPE_NAME}Variable, {TYPE}, {TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Function> { }
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
@ -5,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `bool`. Inherits from `AtomVariableInstancer<BoolVariable, bool, BoolEvent, BoolBoolEvent, BoolBoolFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/Bool Instancer")]
|
||||
public class BoolVariableInstancer : AtomVariableInstancer<BoolVariable, bool, BoolEvent, BoolBoolEvent, BoolBoolFunction> { }
|
||||
}
|
||||
|
@ -6,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `Collider2D`. Inherits from `AtomVariableInstancer<Collider2DVariable, Collider2D, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/Collider2D Instancer")]
|
||||
public class Collider2DVariableInstancer : AtomVariableInstancer<Collider2DVariable, Collider2D, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction> { }
|
||||
}
|
||||
|
@ -6,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `Collider`. Inherits from `AtomVariableInstancer<ColliderVariable, Collider, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/Collider Instancer")]
|
||||
public class ColliderVariableInstancer : AtomVariableInstancer<ColliderVariable, Collider, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction> { }
|
||||
}
|
||||
|
@ -6,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `Color`. Inherits from `AtomVariableInstancer<ColorVariable, Color, ColorEvent, ColorColorEvent, ColorColorFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/Color Instancer")]
|
||||
public class ColorVariableInstancer : AtomVariableInstancer<ColorVariable, Color, ColorEvent, ColorColorEvent, ColorColorFunction> { }
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
@ -5,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `float`. Inherits from `AtomVariableInstancer<FloatVariable, float, FloatEvent, FloatFloatEvent, FloatFloatFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/Float Instancer")]
|
||||
public class FloatVariableInstancer : AtomVariableInstancer<FloatVariable, float, FloatEvent, FloatFloatEvent, FloatFloatFunction> { }
|
||||
}
|
||||
|
@ -6,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `GameObject`. Inherits from `AtomVariableInstancer<GameObjectVariable, GameObject, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/GameObject Instancer")]
|
||||
public class GameObjectVariableInstancer : AtomVariableInstancer<GameObjectVariable, GameObject, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction> { }
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
@ -5,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `int`. Inherits from `AtomVariableInstancer<IntVariable, int, IntEvent, IntIntEvent, IntIntFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/Int Instancer")]
|
||||
public class IntVariableInstancer : AtomVariableInstancer<IntVariable, int, IntEvent, IntIntEvent, IntIntFunction> { }
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAtoms
|
||||
{
|
||||
@ -5,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `string`. Inherits from `AtomVariableInstancer<StringVariable, string, StringEvent, StringStringEvent, StringStringFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/String Instancer")]
|
||||
public class StringVariableInstancer : AtomVariableInstancer<StringVariable, string, StringEvent, StringStringEvent, StringStringFunction> { }
|
||||
}
|
||||
|
@ -6,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `Vector2`. Inherits from `AtomVariableInstancer<Vector2Variable, Vector2, Vector2Event, Vector2Vector2Event, Vector2Vector2Function>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/Vector2 Instancer")]
|
||||
public class Vector2VariableInstancer : AtomVariableInstancer<Vector2Variable, Vector2, Vector2Event, Vector2Vector2Event, Vector2Vector2Function> { }
|
||||
}
|
||||
|
@ -6,5 +6,6 @@ namespace UnityAtoms
|
||||
/// Variable Instancer of type `Vector3`. Inherits from `AtomVariableInstancer<Vector3Variable, Vector3, Vector3Event, Vector3Vector3Event, Vector3Vector3Function>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/Vector3 Instancer")]
|
||||
public class Vector3VariableInstancer : AtomVariableInstancer<Vector3Variable, Vector3, Vector3Event, Vector3Vector3Event, Vector3Vector3Function> { }
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
using UnityEngine;
|
||||
using UnityAtoms.Mobile;
|
||||
|
||||
namespace UnityAtoms.Mobile
|
||||
@ -6,5 +7,6 @@ namespace UnityAtoms.Mobile
|
||||
/// Variable Instancer of type `TouchUserInput`. Inherits from `AtomVariableInstancer<TouchUserInputVariable, TouchUserInput, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/TouchUserInput Instancer")]
|
||||
public class TouchUserInputVariableInstancer : AtomVariableInstancer<TouchUserInputVariable, TouchUserInput, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction> { }
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
using UnityEngine;
|
||||
using UnityAtoms.SceneMgmt;
|
||||
|
||||
namespace UnityAtoms.SceneMgmt
|
||||
@ -6,5 +7,6 @@ namespace UnityAtoms.SceneMgmt
|
||||
/// Variable Instancer of type `SceneField`. Inherits from `AtomVariableInstancer<SceneFieldVariable, SceneField, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction>`.
|
||||
/// </summary>
|
||||
[EditorIcon("atom-icon-hotpink")]
|
||||
[AddComponentMenu("Unity Atoms/Variable Instancers/SceneField Instancer")]
|
||||
public class SceneFieldVariableInstancer : AtomVariableInstancer<SceneFieldVariable, SceneField, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction> { }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user