Add AddComponentMenu to Variable Instancers

This commit is contained in:
Adam Ramberg 2020-02-23 23:13:30 +01:00
parent 81e35f17fe
commit 85f72abf8a
13 changed files with 20 additions and 0 deletions

View File

@ -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&lt;{TYPE_NAME}Variable, {TYPE}, {TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Event, {TYPE_NAME}{TYPE_NAME}Function&gt;`.
/// </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> { }
}

View File

@ -1,3 +1,4 @@
using UnityEngine;
namespace UnityAtoms
{
@ -5,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `bool`. Inherits from `AtomVariableInstancer&lt;BoolVariable, bool, BoolEvent, BoolBoolEvent, BoolBoolFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/Bool Instancer")]
public class BoolVariableInstancer : AtomVariableInstancer<BoolVariable, bool, BoolEvent, BoolBoolEvent, BoolBoolFunction> { }
}

View File

@ -6,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `Collider2D`. Inherits from `AtomVariableInstancer&lt;Collider2DVariable, Collider2D, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/Collider2D Instancer")]
public class Collider2DVariableInstancer : AtomVariableInstancer<Collider2DVariable, Collider2D, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction> { }
}

View File

@ -6,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `Collider`. Inherits from `AtomVariableInstancer&lt;ColliderVariable, Collider, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/Collider Instancer")]
public class ColliderVariableInstancer : AtomVariableInstancer<ColliderVariable, Collider, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction> { }
}

View File

@ -6,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `Color`. Inherits from `AtomVariableInstancer&lt;ColorVariable, Color, ColorEvent, ColorColorEvent, ColorColorFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/Color Instancer")]
public class ColorVariableInstancer : AtomVariableInstancer<ColorVariable, Color, ColorEvent, ColorColorEvent, ColorColorFunction> { }
}

View File

@ -1,3 +1,4 @@
using UnityEngine;
namespace UnityAtoms
{
@ -5,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `float`. Inherits from `AtomVariableInstancer&lt;FloatVariable, float, FloatEvent, FloatFloatEvent, FloatFloatFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/Float Instancer")]
public class FloatVariableInstancer : AtomVariableInstancer<FloatVariable, float, FloatEvent, FloatFloatEvent, FloatFloatFunction> { }
}

View File

@ -6,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `GameObject`. Inherits from `AtomVariableInstancer&lt;GameObjectVariable, GameObject, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/GameObject Instancer")]
public class GameObjectVariableInstancer : AtomVariableInstancer<GameObjectVariable, GameObject, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction> { }
}

View File

@ -1,3 +1,4 @@
using UnityEngine;
namespace UnityAtoms
{
@ -5,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `int`. Inherits from `AtomVariableInstancer&lt;IntVariable, int, IntEvent, IntIntEvent, IntIntFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/Int Instancer")]
public class IntVariableInstancer : AtomVariableInstancer<IntVariable, int, IntEvent, IntIntEvent, IntIntFunction> { }
}

View File

@ -1,3 +1,4 @@
using UnityEngine;
namespace UnityAtoms
{
@ -5,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `string`. Inherits from `AtomVariableInstancer&lt;StringVariable, string, StringEvent, StringStringEvent, StringStringFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/String Instancer")]
public class StringVariableInstancer : AtomVariableInstancer<StringVariable, string, StringEvent, StringStringEvent, StringStringFunction> { }
}

View File

@ -6,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `Vector2`. Inherits from `AtomVariableInstancer&lt;Vector2Variable, Vector2, Vector2Event, Vector2Vector2Event, Vector2Vector2Function&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/Vector2 Instancer")]
public class Vector2VariableInstancer : AtomVariableInstancer<Vector2Variable, Vector2, Vector2Event, Vector2Vector2Event, Vector2Vector2Function> { }
}

View File

@ -6,5 +6,6 @@ namespace UnityAtoms
/// Variable Instancer of type `Vector3`. Inherits from `AtomVariableInstancer&lt;Vector3Variable, Vector3, Vector3Event, Vector3Vector3Event, Vector3Vector3Function&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/Vector3 Instancer")]
public class Vector3VariableInstancer : AtomVariableInstancer<Vector3Variable, Vector3, Vector3Event, Vector3Vector3Event, Vector3Vector3Function> { }
}

View File

@ -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&lt;TouchUserInputVariable, TouchUserInput, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/TouchUserInput Instancer")]
public class TouchUserInputVariableInstancer : AtomVariableInstancer<TouchUserInputVariable, TouchUserInput, TouchUserInputEvent, TouchUserInputTouchUserInputEvent, TouchUserInputTouchUserInputFunction> { }
}

View File

@ -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&lt;SceneFieldVariable, SceneField, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction&gt;`.
/// </summary>
[EditorIcon("atom-icon-hotpink")]
[AddComponentMenu("Unity Atoms/Variable Instancers/SceneField Instancer")]
public class SceneFieldVariableInstancer : AtomVariableInstancer<SceneFieldVariable, SceneField, SceneFieldEvent, SceneFieldSceneFieldEvent, SceneFieldSceneFieldFunction> { }
}