Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.AI;
- using UnityEngine.VFX;
- using UnityEngine.UI;
- using UnityEngine.ParticleSystemJobs;
- using UnityEngine.EventSystems;
- using UnityEngine.Animations;
- using UnityEngine.U2D;
- using UnityEngine.Playables;
- using UnityEngine.Rendering;
- using UnityEngine.Tilemaps;
- using UnityEngine.Video;
- namespace GraphProcessor
- {
- [Serializable]
- public class ExposedParameter : ISerializationCallbackReceiver
- {
- [Serializable]
- public class Settings
- {
- public bool isHidden = false;
- public bool expanded = false;
- [SerializeField]
- internal string guid = null;
- public override bool Equals(object obj)
- {
- if (obj is Settings s && s != null)
- return Equals(s);
- else
- return false;
- }
- public virtual bool Equals(Settings param)
- => isHidden == param.isHidden && expanded == param.expanded;
- public override int GetHashCode() => base.GetHashCode();
- }
- public string guid; // unique id to keep track of the parameter
- public string name;
- [Obsolete("Use GetValueType()")]
- public string type;
- [Obsolete("Use value instead")]
- public SerializableObject serializedValue;
- public bool input = true;
- [SerializeReference]
- public Settings settings;
- public string shortType => GetValueType()?.Name;
- public void Initialize(string name, object value)
- {
- guid = Guid.NewGuid().ToString(); // Generated once and unique per parameter
- settings = CreateSettings();
- settings.guid = guid;
- this.name = name;
- this.value = value;
- }
- void ISerializationCallbackReceiver.OnAfterDeserialize()
- {
- // SerializeReference migration step:
- #pragma warning disable CS0618
- if (serializedValue?.value != null) // old serialization system can't serialize null values
- {
- value = serializedValue.value;
- Debug.Log("Migrated: " + serializedValue.value + " | " + serializedValue.serializedName);
- serializedValue.value = null;
- }
- #pragma warning restore CS0618
- }
- void ISerializationCallbackReceiver.OnBeforeSerialize() { }
- protected virtual Settings CreateSettings() => new Settings();
- public virtual object value { get; set; }
- public virtual Type GetValueType() => value == null ? typeof(object) : value.GetType();
- static Dictionary<Type, Type> exposedParameterTypeCache = new Dictionary<Type, Type>();
- internal ExposedParameter Migrate()
- {
- if (exposedParameterTypeCache.Count == 0)
- {
- foreach (var type in AppDomain.CurrentDomain.GetAllTypes())
- {
- if (type.IsSubclassOf(typeof(ExposedParameter)) && !type.IsAbstract)
- {
- var paramType = Activator.CreateInstance(type) as ExposedParameter;
- exposedParameterTypeCache[paramType.GetValueType()] = type;
- }
- }
- }
- #pragma warning disable CS0618 // Use of obsolete fields
- var oldType = Type.GetType(type);
- #pragma warning restore CS0618
- if (oldType == null || !exposedParameterTypeCache.TryGetValue(oldType, out var newParamType))
- return null;
- var newParam = Activator.CreateInstance(newParamType) as ExposedParameter;
- newParam.guid = guid;
- newParam.name = name;
- newParam.input = input;
- newParam.settings = newParam.CreateSettings();
- newParam.settings.guid = guid;
- return newParam;
- }
- public static bool operator ==(ExposedParameter param1, ExposedParameter param2)
- {
- if (ReferenceEquals(param1, null) && ReferenceEquals(param2, null))
- return true;
- if (ReferenceEquals(param1, param2))
- return true;
- if (ReferenceEquals(param1, null))
- return false;
- if (ReferenceEquals(param2, null))
- return false;
- return param1.Equals(param2);
- }
- public static bool operator !=(ExposedParameter param1, ExposedParameter param2) => !(param1 == param2);
- public bool Equals(ExposedParameter parameter) => guid == parameter.guid;
- public override bool Equals(object obj)
- {
- if ((obj == null) || !this.GetType().Equals(obj.GetType()))
- return false;
- else
- return Equals((ExposedParameter)obj);
- }
- public override int GetHashCode() => guid.GetHashCode();
- public ExposedParameter Clone()
- {
- var clonedParam = Activator.CreateInstance(GetType()) as ExposedParameter;
- clonedParam.guid = guid;
- clonedParam.name = name;
- clonedParam.input = input;
- clonedParam.settings = settings;
- clonedParam.value = value;
- return clonedParam;
- }
- }
- #region BehaviourGraph
- [System.Serializable]
- public class _GraphBehaviour : ExposedParameter
- {
- [SerializeField] MonoBehaviour val;
- public override object value { get => val; set => val = (MonoBehaviour) value; }
- public override Type GetValueType() => typeof(MonoBehaviour);
- }
- #endregion
- // Due to polymorphic constraints with [SerializeReference] we need to explicitly create a class for
- // every parameter type available in the graph (i.e. templating doesn't work)
- [System.Serializable]
- public class ColorParameter : ExposedParameter
- {
- public enum ColorMode
- {
- Default,
- HDR
- }
- [Serializable]
- public class ColorSettings : Settings
- {
- public ColorMode mode;
- public override bool Equals(Settings param)
- => base.Equals(param) && mode == ((ColorSettings)param).mode;
- }
- [SerializeField] Color val;
- public override object value { get => val; set => val = (Color)value; }
- protected override Settings CreateSettings() => new ColorSettings();
- }
- [System.Serializable]
- public class FloatParameter : ExposedParameter
- {
- public enum FloatMode
- {
- Default,
- Slider,
- }
- [Serializable]
- public class FloatSettings : Settings
- {
- public FloatMode mode;
- public float min = 0;
- public float max = 1;
- public override bool Equals(Settings param)
- => base.Equals(param) && mode == ((FloatSettings)param).mode && min == ((FloatSettings)param).min && max == ((FloatSettings)param).max;
- }
- [SerializeField] float val;
- public override object value { get => val; set => val = (float)value; }
- protected override Settings CreateSettings() => new FloatSettings();
- }
- [System.Serializable]
- public class Vector2Parameter : ExposedParameter
- {
- public enum Vector2Mode
- {
- Default,
- MinMaxSlider,
- }
- [Serializable]
- public class Vector2Settings : Settings
- {
- public Vector2Mode mode;
- public float min = 0;
- public float max = 1;
- public override bool Equals(Settings param)
- => base.Equals(param) && mode == ((Vector2Settings)param).mode && min == ((Vector2Settings)param).min && max == ((Vector2Settings)param).max;
- }
- [SerializeField] Vector2 val;
- public override object value { get => val; set => val = (Vector2)value; }
- protected override Settings CreateSettings() => new Vector2Settings();
- }
- [System.Serializable]
- public class Vector3Parameter : ExposedParameter
- {
- [SerializeField] Vector3 val;
- public override object value { get => val; set => val = (Vector3)value; }
- }
- [System.Serializable]
- public class Vector4Parameter : ExposedParameter
- {
- [SerializeField] Vector4 val;
- public override object value { get => val; set => val = (Vector4)value; }
- }
- [System.Serializable]
- public class IntParameter : ExposedParameter
- {
- public enum IntMode
- {
- Default,
- Slider,
- }
- [Serializable]
- public class IntSettings : Settings
- {
- public IntMode mode;
- public int min = 0;
- public int max = 10;
- public override bool Equals(Settings param)
- => base.Equals(param) && mode == ((IntSettings)param).mode && min == ((IntSettings)param).min && max == ((IntSettings)param).max;
- }
- [SerializeField] int val;
- public override object value { get => val; set => val = (int)value; }
- protected override Settings CreateSettings() => new IntSettings();
- }
- [System.Serializable]
- public class Vector2IntParameter : ExposedParameter
- {
- [SerializeField] Vector2Int val;
- public override object value { get => val; set => val = (Vector2Int)value; }
- }
- [System.Serializable]
- public class Vector3IntParameter : ExposedParameter
- {
- [SerializeField] Vector3Int val;
- public override object value { get => val; set => val = (Vector3Int)value; }
- }
- [System.Serializable]
- public class DoubleParameter : ExposedParameter
- {
- [SerializeField] Double val;
- public override object value { get => val; set => val = (Double)value; }
- }
- [System.Serializable]
- public class LongParameter : ExposedParameter
- {
- [SerializeField] long val;
- public override object value { get => val; set => val = (long)value; }
- }
- [System.Serializable]
- public class StringParameter : ExposedParameter
- {
- [SerializeField] string val;
- public override object value { get => val; set => val = (string)value; }
- public override Type GetValueType() => typeof(String);
- }
- [System.Serializable]
- public class RectParameter : ExposedParameter
- {
- [SerializeField] Rect val;
- public override object value { get => val; set => val = (Rect)value; }
- }
- [System.Serializable]
- public class RectIntParameter : ExposedParameter
- {
- [SerializeField] RectInt val;
- public override object value { get => val; set => val = (RectInt)value; }
- }
- [System.Serializable]
- public class BoundsParameter : ExposedParameter
- {
- [SerializeField] Bounds val;
- public override object value { get => val; set => val = (Bounds)value; }
- }
- [System.Serializable]
- public class BoundsIntParameter : ExposedParameter
- {
- [SerializeField] BoundsInt val;
- public override object value { get => val; set => val = (BoundsInt)value; }
- }
- [System.Serializable]
- public class AnimationCurveParameter : ExposedParameter
- {
- [SerializeField] AnimationCurve val;
- public override object value { get => val; set => val = (AnimationCurve)value; }
- public override Type GetValueType() => typeof(AnimationCurve);
- }
- [System.Serializable]
- public class GradientParameter : ExposedParameter
- {
- public enum GradientColorMode
- {
- Default,
- HDR,
- }
- [Serializable]
- public class GradientSettings : Settings
- {
- public GradientColorMode mode;
- public override bool Equals(Settings param)
- => base.Equals(param) && mode == ((GradientSettings)param).mode;
- }
- [SerializeField] Gradient val;
- [SerializeField, GradientUsage(true)] Gradient hdrVal;
- public override object value { get => val; set => val = (Gradient)value; }
- public override Type GetValueType() => typeof(Gradient);
- protected override Settings CreateSettings() => new GradientSettings();
- }
- [System.Serializable]
- public class GameObjectParameter : ExposedParameter
- {
- [SerializeField] GameObject val;
- public override object value { get => val; set => val = (GameObject)value; }
- public override Type GetValueType() => typeof(GameObject);
- }
- [System.Serializable]
- public class BoolParameter : ExposedParameter
- {
- [SerializeField] bool val;
- public override object value { get => val; set => val = (bool)value; }
- }
- [System.Serializable]
- public class Texture2DParameter : ExposedParameter
- {
- [SerializeField] Texture2D val;
- public override object value { get => val; set => val = (Texture2D)value; }
- public override Type GetValueType() => typeof(Texture2D);
- }
- [System.Serializable]
- public class RenderTextureParameter : ExposedParameter
- {
- [SerializeField] RenderTexture val;
- public override object value { get => val; set => val = (RenderTexture)value; }
- public override Type GetValueType() => typeof(RenderTexture);
- }
- [System.Serializable]
- public class MeshParameter : ExposedParameter
- {
- [SerializeField] Mesh val;
- public override object value { get => val; set => val = (Mesh)value; }
- public override Type GetValueType() => typeof(Mesh);
- }
- [System.Serializable]
- public class MaterialParameter : ExposedParameter
- {
- [SerializeField] Material val;
- public override object value { get => val; set => val = (Material)value; }
- public override Type GetValueType() => typeof(Material);
- }
- [System.Serializable]
- public class _RigiBody : ExposedParameter
- {
- [SerializeField] Rigidbody val;
- public override object value { get => val; set => val = (Rigidbody)value; }
- public override Type GetValueType() => typeof(Rigidbody);
- }
- [System.Serializable]
- public class _Rigidbody2d : ExposedParameter
- {
- [SerializeField] Rigidbody2D val;
- public override object value { get => val; set => val = (Rigidbody2D)value; }
- public override Type GetValueType() => typeof(Rigidbody2D);
- }
- [System.Serializable]
- public class _AudioChorusFilter : ExposedParameter
- {
- [SerializeField] AudioChorusFilter val;
- public override object value { get => val; set => val = (AudioChorusFilter)value; }
- public override Type GetValueType() => typeof(AudioChorusFilter);
- }
- #region Audio
- [System.Serializable]
- public class _AudioDistortionFilter : ExposedParameter
- {
- [SerializeField] AudioDistortionFilter val;
- public override object value { get => val; set => val = (AudioDistortionFilter)value; }
- public override Type GetValueType() => typeof(AudioDistortionFilter);
- }
- [System.Serializable]
- public class _AudioEchoFilter : ExposedParameter
- {
- [SerializeField] AudioEchoFilter val;
- public override object value { get => val; set => val = (AudioEchoFilter)value; }
- public override Type GetValueType() => typeof(AudioEchoFilter);
- }
- [System.Serializable]
- public class _AudioHighPassFilter : ExposedParameter
- {
- [SerializeField] AudioHighPassFilter val;
- public override object value { get => val; set => val = (AudioHighPassFilter)value; }
- public override Type GetValueType() => typeof(AudioHighPassFilter);
- }
- [System.Serializable]
- public class _AudioListener : ExposedParameter
- {
- [SerializeField] AudioListener val;
- public override object value { get => val; set => val = (AudioListener)value; }
- public override Type GetValueType() => typeof(AudioListener);
- }
- [System.Serializable]
- public class _AudioLowPassFilter : ExposedParameter
- {
- [SerializeField] AudioLowPassFilter val;
- public override object value { get => val; set => val = (AudioLowPassFilter)value; }
- public override Type GetValueType() => typeof(AudioLowPassFilter);
- }
- [System.Serializable]
- public class _AudioReverbFilter : ExposedParameter
- {
- [SerializeField] AudioReverbFilter val;
- public override object value { get => val; set => val = (AudioReverbFilter)value; }
- public override Type GetValueType() => typeof(AudioReverbFilter);
- }
- [System.Serializable]
- public class _AudioReverbZone : ExposedParameter
- {
- [SerializeField] AudioReverbZone val;
- public override object value { get => val; set => val = (AudioReverbZone)value; }
- public override Type GetValueType() => typeof(AudioReverbZone);
- }
- [System.Serializable]
- public class _AudioSource : ExposedParameter
- {
- [SerializeField] AudioSource val;
- public override object value { get => val; set => val = (AudioSource)value; }
- public override Type GetValueType() => typeof(AudioSource);
- }
- #endregion
- #region Event
- [System.Serializable]
- public class _EventSystem : ExposedParameter
- {
- [SerializeField] EventSystem val;
- public override object value { get => val; set => val = (EventSystem)value; }
- public override Type GetValueType() => typeof(EventSystem);
- }
- [System.Serializable]
- public class _EventTrigger : ExposedParameter
- {
- [SerializeField] EventTrigger val;
- public override object value { get => val; set => val = (EventTrigger)value; }
- public override Type GetValueType() => typeof(EventTrigger);
- }
- [System.Serializable]
- public class _GraphicRaycaster : ExposedParameter
- {
- [SerializeField] GraphicRaycaster val;
- public override object value { get => val; set => val = (GraphicRaycaster)value; }
- public override Type GetValueType() => typeof(GraphicRaycaster);
- }
- [System.Serializable]
- public class _Physics2DRaycaster : ExposedParameter
- {
- [SerializeField] Physics2DRaycaster val;
- public override object value { get => val; set => val = (Physics2DRaycaster)value; }
- public override Type GetValueType() => typeof(Physics2DRaycaster);
- }
- [System.Serializable]
- public class _StandaloneInputModule : ExposedParameter
- {
- [SerializeField] StandaloneInputModule val;
- public override object value { get => val; set => val = (StandaloneInputModule)value; }
- public override Type GetValueType() => typeof(StandaloneInputModule);
- }
- [System.Serializable]
- public class _TouchInputModule : ExposedParameter
- {
- [SerializeField] TouchInputModule val;
- public override object value { get => val; set => val = (TouchInputModule)value; }
- public override Type GetValueType() => typeof(TouchInputModule);
- }
- #endregion
- #region Layout
- [System.Serializable]
- public class _AspectRatioFitter : ExposedParameter
- {
- [SerializeField] AspectRatioFitter val;
- public override object value { get => val; set => val = (AspectRatioFitter)value; }
- public override Type GetValueType() => typeof(AspectRatioFitter);
- }
- [System.Serializable]
- public class _Canvas : ExposedParameter
- {
- [SerializeField] Canvas val;
- public override object value { get => val; set => val = (Canvas)value; }
- public override Type GetValueType() => typeof(Canvas);
- }
- [System.Serializable]
- public class _CanvasGroup : ExposedParameter
- {
- [SerializeField] CanvasGroup val;
- public override object value { get => val; set => val = (CanvasGroup)value; }
- public override Type GetValueType() => typeof(CanvasGroup);
- }
- [System.Serializable]
- public class _CanvasScaler : ExposedParameter
- {
- [SerializeField] CanvasScaler val;
- public override object value { get => val; set => val = (CanvasScaler)value; }
- public override Type GetValueType() => typeof(CanvasScaler);
- }
- [System.Serializable]
- public class _ContentSizeFilter : ExposedParameter
- {
- [SerializeField] ContentSizeFitter val;
- public override object value { get => val; set => val = (ContentSizeFitter)value; }
- public override Type GetValueType() => typeof(ContentSizeFitter);
- }
- [System.Serializable]
- public class _GridLayoutGroup : ExposedParameter
- {
- [SerializeField] GridLayoutGroup val;
- public override object value { get => val; set => val = (GridLayoutGroup)value; }
- public override Type GetValueType() => typeof(GridLayoutGroup);
- }
- [System.Serializable]
- public class _HorizontalLayoutGroup : ExposedParameter
- {
- [SerializeField] HorizontalLayoutGroup val;
- public override object value { get => val; set => val = (HorizontalLayoutGroup)value; }
- public override Type GetValueType() => typeof(HorizontalLayoutGroup);
- }
- [System.Serializable]
- public class _LayoutElement : ExposedParameter
- {
- [SerializeField] LayoutElement val;
- public override object value { get => val; set => val = (LayoutElement)value; }
- public override Type GetValueType() => typeof(LayoutElement);
- }
- [System.Serializable]
- public class _RectTransform : ExposedParameter
- {
- [SerializeField] RectTransform val;
- public override object value { get => val; set => val = (RectTransform)value; }
- public override Type GetValueType() => typeof(RectTransform);
- }
- [System.Serializable]
- public class _VerticalLayoutGroup : ExposedParameter
- {
- [SerializeField] VerticalLayoutGroup val;
- public override object value { get => val; set => val = (VerticalLayoutGroup)value; }
- public override Type GetValueType() => typeof(VerticalLayoutGroup);
- }
- [System.Serializable]
- public class _MeshFilter : ExposedParameter
- {
- [SerializeField] MeshFilter val;
- public override object value { get => val; set => val = (MeshFilter)value; }
- public override Type GetValueType() => typeof(MeshFilter);
- }
- [System.Serializable]
- public class _SkinnedMeshRenderer : ExposedParameter
- {
- [SerializeField] SkinnedMeshRenderer val;
- public override object value { get => val; set => val = (SkinnedMeshRenderer)value; }
- public override Type GetValueType() => typeof(SkinnedMeshRenderer);
- }
- #endregion
- #region Miscellaneous
- [System.Serializable]
- public class _AimConstrains : ExposedParameter
- {
- [SerializeField] AimConstraint val;
- public override object value { get => val; set => val = (AimConstraint)value; }
- public override Type GetValueType() => typeof(AimConstraint);
- }
- [System.Serializable]
- public class _Animation : ExposedParameter
- {
- [SerializeField] Animation val;
- public override object value { get => val; set => val = (Animation)value; }
- public override Type GetValueType() => typeof(Animation);
- }
- [System.Serializable]
- public class _Animator : ExposedParameter
- {
- [SerializeField] Animator val;
- public override object value { get => val; set => val = (Animator)value; }
- public override Type GetValueType() => typeof(Animator);
- }
- [System.Serializable]
- public class _BillboardRenderer : ExposedParameter
- {
- [SerializeField] BillboardRenderer val;
- public override object value { get => val; set => val = (BillboardRenderer)value; }
- public override Type GetValueType() => typeof(BillboardRenderer);
- }
- [System.Serializable]
- public class _Grid : ExposedParameter
- {
- [SerializeField] Grid val;
- public override object value { get => val; set => val = (Grid)value; }
- public override Type GetValueType() => typeof(Grid);
- }
- [System.Serializable]
- public class _LookAtConstrains : ExposedParameter
- {
- [SerializeField] LookAtConstraint val;
- public override object value { get => val; set => val = (LookAtConstraint)value; }
- public override Type GetValueType() => typeof(LookAtConstraint);
- }
- [System.Serializable]
- public class _ParentConstrains : ExposedParameter
- {
- [SerializeField] ParentConstraint val;
- public override object value { get => val; set => val = (ParentConstraint)value; }
- public override Type GetValueType() => typeof(ParentConstraint);
- }
- [System.Serializable]
- public class _ParticleSystemForceField : ExposedParameter
- {
- [SerializeField] ParticleSystemForceField val;
- public override object value { get => val; set => val = (ParticleSystemForceField)value; }
- public override Type GetValueType() => typeof(ParticleSystemForceField);
- }
- [System.Serializable]
- public class _PositionConstrains : ExposedParameter
- {
- [SerializeField] PositionConstraint val;
- public override object value { get => val; set => val = (PositionConstraint)value; }
- public override Type GetValueType() => typeof(PositionConstraint);
- }
- [System.Serializable]
- public class _RotationConstraint : ExposedParameter
- {
- [SerializeField] RotationConstraint val;
- public override object value { get => val; set => val = (RotationConstraint)value; }
- public override Type GetValueType() => typeof(RotationConstraint);
- }
- [System.Serializable]
- public class _ScaleConstraint : ExposedParameter
- {
- [SerializeField] ScaleConstraint val;
- public override object value { get => val; set => val = (ScaleConstraint)value; }
- public override Type GetValueType() => typeof(ScaleConstraint);
- }
- [System.Serializable]
- public class _SpriteMask : ExposedParameter
- {
- [SerializeField] SpriteMask val;
- public override object value { get => val; set => val = (SpriteMask)value; }
- public override Type GetValueType() => typeof(SpriteMask);
- }
- [System.Serializable]
- public class _SpriteShapeRenderer : ExposedParameter
- {
- [SerializeField] SpriteShapeRenderer val;
- public override object value { get => val; set => val = (SpriteShapeRenderer)value; }
- public override Type GetValueType() => typeof(SpriteShapeRenderer);
- }
- [System.Serializable]
- public class _Terrain : ExposedParameter
- {
- [SerializeField] Terrain val;
- public override object value { get => val; set => val = (Terrain)value; }
- public override Type GetValueType() => typeof(Terrain);
- }
- [System.Serializable]
- public class _WindZone : ExposedParameter
- {
- [SerializeField] WindZone val;
- public override object value { get => val; set => val = (WindZone)value; }
- public override Type GetValueType() => typeof(WindZone);
- }
- #endregion
- #region Navegation
- [System.Serializable]
- public class _NavMeshAgent : ExposedParameter
- {
- [SerializeField] NavMeshAgent val;
- public override object value { get => val; set => val = (NavMeshAgent)value; }
- public override Type GetValueType() => typeof(NavMeshAgent);
- }
- [System.Serializable]
- public class _NavMeshObstacle : ExposedParameter
- {
- [SerializeField] NavMeshObstacle val;
- public override object value { get => val; set => val = (NavMeshObstacle)value; }
- public override Type GetValueType() => typeof(NavMeshObstacle);
- }
- [System.Serializable]
- public class _OffMeshLink : ExposedParameter
- {
- [SerializeField] OffMeshLink val;
- public override object value { get => val; set => val = (OffMeshLink)value; }
- public override Type GetValueType() => typeof(OffMeshLink);
- }
- #endregion
- #region Physics2D
- [System.Serializable]
- public class _AreaEffector2D : ExposedParameter
- {
- [SerializeField] AreaEffector2D val;
- public override object value { get => val; set => val = (AreaEffector2D)value; }
- public override Type GetValueType() => typeof(AreaEffector2D);
- }
- [System.Serializable]
- public class _BoxCollider2D : ExposedParameter
- {
- [SerializeField] BoxCollider2D val;
- public override object value { get => val; set => val = (BoxCollider2D)value; }
- public override Type GetValueType() => typeof(BoxCollider2D);
- }
- [System.Serializable]
- public class _BuoyancyEffector2D : ExposedParameter
- {
- [SerializeField] BuoyancyEffector2D val;
- public override object value { get => val; set => val = (BuoyancyEffector2D)value; }
- public override Type GetValueType() => typeof(BuoyancyEffector2D);
- }
- [System.Serializable]
- public class _CapsuleCollider2D : ExposedParameter
- {
- [SerializeField] CapsuleCollider2D val;
- public override object value { get => val; set => val = (CapsuleCollider2D)value; }
- public override Type GetValueType() => typeof(CapsuleCollider2D);
- }
- [System.Serializable]
- public class _CircleCollider2D : ExposedParameter
- {
- [SerializeField] CircleCollider2D val;
- public override object value { get => val; set => val = (CircleCollider2D)value; }
- public override Type GetValueType() => typeof(CircleCollider2D);
- }
- [System.Serializable]
- public class _CompositeCollider2D : ExposedParameter
- {
- [SerializeField] CompositeCollider2D val;
- public override object value { get => val; set => val = (CompositeCollider2D)value; }
- public override Type GetValueType() => typeof(CompositeCollider2D);
- }
- [System.Serializable]
- public class _ConstantForce2D : ExposedParameter
- {
- [SerializeField] ConstantForce2D val;
- public override object value { get => val; set => val = (ConstantForce2D)value; }
- public override Type GetValueType() => typeof(ConstantForce2D);
- }
- #if UNITY_2021_1_OR_NEWER
- [System.Serializable]
- public class _CustomCollider2D : ExposedParameter
- {
- [SerializeField] CustomCollider2D val;
- public override object value { get => val; set => val = (CustomCollider2D)value; }
- public override Type GetValueType() => typeof(CustomCollider2D);
- }
- #endif
- [System.Serializable]
- public class _DistanceJoint2D : ExposedParameter
- {
- [SerializeField] DistanceJoint2D val;
- public override object value { get => val; set => val = (DistanceJoint2D)value; }
- public override Type GetValueType() => typeof(DistanceJoint2D);
- }
- [System.Serializable]
- public class _EdgeCollider2D : ExposedParameter
- {
- [SerializeField] EdgeCollider2D val;
- public override object value { get => val; set => val = (EdgeCollider2D)value; }
- public override Type GetValueType() => typeof(EdgeCollider2D);
- }
- [System.Serializable]
- public class _FixedJoint2D : ExposedParameter
- {
- [SerializeField] FixedJoint2D val;
- public override object value { get => val; set => val = (FixedJoint2D)value; }
- public override Type GetValueType() => typeof(FixedJoint2D);
- }
- [System.Serializable]
- public class _FrictionJoint2D : ExposedParameter
- {
- [SerializeField] FrictionJoint2D val;
- public override object value { get => val; set => val = (FrictionJoint2D)value; }
- public override Type GetValueType() => typeof(FrictionJoint2D);
- }
- [System.Serializable]
- public class _HingeJoint2D : ExposedParameter
- {
- [SerializeField] HingeJoint2D val;
- public override object value { get => val; set => val = (HingeJoint2D)value; }
- public override Type GetValueType() => typeof(HingeJoint2D);
- }
- [System.Serializable]
- public class _PlatformEffector2D : ExposedParameter
- {
- [SerializeField] PlatformEffector2D val;
- public override object value { get => val; set => val = (PlatformEffector2D)value; }
- public override Type GetValueType() => typeof(PlatformEffector2D);
- }
- [System.Serializable]
- public class _PointEffector2D : ExposedParameter
- {
- [SerializeField] PointEffector2D val;
- public override object value { get => val; set => val = (PointEffector2D)value; }
- public override Type GetValueType() => typeof(PointEffector2D);
- }
- [System.Serializable]
- public class _PolygonCollider2D : ExposedParameter
- {
- [SerializeField] PolygonCollider2D val;
- public override object value { get => val; set => val = (PolygonCollider2D)value; }
- public override Type GetValueType() => typeof(PolygonCollider2D);
- }
- [System.Serializable]
- public class _RelativeJoint2D : ExposedParameter
- {
- [SerializeField] RelativeJoint2D val;
- public override object value { get => val; set => val = (RelativeJoint2D)value; }
- public override Type GetValueType() => typeof(RelativeJoint2D);
- }
- [System.Serializable]
- public class _Rigidbody2D : ExposedParameter
- {
- [SerializeField] Rigidbody2D val;
- public override object value { get => val; set => val = (Rigidbody2D)value; }
- public override Type GetValueType() => typeof(Rigidbody2D);
- }
- [System.Serializable]
- public class _SliderJoint2D : ExposedParameter
- {
- [SerializeField] SliderJoint2D val;
- public override object value { get => val; set => val = (SliderJoint2D)value; }
- public override Type GetValueType() => typeof(SliderJoint2D);
- }
- [System.Serializable]
- public class _SpringJoint2D : ExposedParameter
- {
- [SerializeField] SpringJoint2D val;
- public override object value { get => val; set => val = (SpringJoint2D)value; }
- public override Type GetValueType() => typeof(SpringJoint2D);
- }
- [System.Serializable]
- public class _SurfaceEffector2D : ExposedParameter
- {
- [SerializeField] SurfaceEffector2D val;
- public override object value { get => val; set => val = (SurfaceEffector2D)value; }
- public override Type GetValueType() => typeof(SurfaceEffector2D);
- }
- [System.Serializable]
- public class _TargetJoint2D : ExposedParameter
- {
- [SerializeField] TargetJoint2D val;
- public override object value { get => val; set => val = (TargetJoint2D)value; }
- public override Type GetValueType() => typeof(TargetJoint2D);
- }
- [System.Serializable]
- public class _WheelJoint2D : ExposedParameter
- {
- [SerializeField] WheelJoint2D val;
- public override object value { get => val; set => val = (WheelJoint2D)value; }
- public override Type GetValueType() => typeof(WheelJoint2D);
- }
- [System.Serializable]
- public class _Collider2D : ExposedParameter
- {
- [SerializeField] Collider2D val;
- public override object value { get => val; set => val = (Collider2D)value; }
- public override Type GetValueType() => typeof(Collider2D);
- }
- #endregion
- #region RigidBody3D
- [System.Serializable]
- public class _ArticulationBody : ExposedParameter
- {
- [SerializeField] ArticulationBody val;
- public override object value { get => val; set => val = (ArticulationBody)value; }
- public override Type GetValueType() => typeof(ArticulationBody);
- }
- [System.Serializable]
- public class _BoxCollider : ExposedParameter
- {
- [SerializeField] BoxCollider val;
- public override object value { get => val; set => val = (BoxCollider)value; }
- public override Type GetValueType() => typeof(BoxCollider);
- }
- [System.Serializable]
- public class _CapsuleCollider : ExposedParameter
- {
- [SerializeField] CapsuleCollider val;
- public override object value { get => val; set => val = (CapsuleCollider)value; }
- public override Type GetValueType() => typeof(CapsuleCollider);
- }
- [System.Serializable]
- public class _CharacterController : ExposedParameter
- {
- [SerializeField] CharacterController val;
- public override object value { get => val; set => val = (CharacterController)value; }
- public override Type GetValueType() => typeof(CharacterController);
- }
- [System.Serializable]
- public class _CharacterJoint : ExposedParameter
- {
- [SerializeField] CharacterController val;
- public override object value { get => val; set => val = (CharacterController)value; }
- public override Type GetValueType() => typeof(CharacterController);
- }
- [System.Serializable]
- public class _Cloth : ExposedParameter
- {
- [SerializeField] Cloth val;
- public override object value { get => val; set => val = (Cloth)value; }
- public override Type GetValueType() => typeof(Cloth);
- }
- [System.Serializable]
- public class _ConfigurableJoint : ExposedParameter
- {
- [SerializeField] ConfigurableJoint val;
- public override object value { get => val; set => val = (ConfigurableJoint)value; }
- public override Type GetValueType() => typeof(ConfigurableJoint);
- }
- [System.Serializable]
- public class _ConstantForce : ExposedParameter
- {
- [SerializeField] ConstantForce val;
- public override object value { get => val; set => val = (ConstantForce)value; }
- public override Type GetValueType() => typeof(ConstantForce);
- }
- [System.Serializable]
- public class _FixedJoint : ExposedParameter
- {
- [SerializeField] FixedJoint val;
- public override object value { get => val; set => val = (FixedJoint)value; }
- public override Type GetValueType() => typeof(FixedJoint);
- }
- [System.Serializable]
- public class _HingeJoint : ExposedParameter
- {
- [SerializeField] HingeJoint val;
- public override object value { get => val; set => val = (HingeJoint)value; }
- public override Type GetValueType() => typeof(HingeJoint);
- }
- [System.Serializable]
- public class _MeshCollider : ExposedParameter
- {
- [SerializeField] MeshCollider val;
- public override object value { get => val; set => val = (MeshCollider)value; }
- public override Type GetValueType() => typeof(MeshCollider);
- }
- [System.Serializable]
- public class _Rigidbody : ExposedParameter
- {
- [SerializeField] Rigidbody val;
- public override object value { get => val; set => val = (Rigidbody)value; }
- public override Type GetValueType() => typeof(Rigidbody);
- }
- [System.Serializable]
- public class _SphereCollider : ExposedParameter
- {
- [SerializeField] SphereCollider val;
- public override object value { get => val; set => val = (SphereCollider)value; }
- public override Type GetValueType() => typeof(SphereCollider);
- }
- [System.Serializable]
- public class _SpringJoint : ExposedParameter
- {
- [SerializeField] SpringJoint val;
- public override object value { get => val; set => val = (SpringJoint)value; }
- public override Type GetValueType() => typeof(SpringJoint);
- }
- [System.Serializable]
- public class _TerrainCollider : ExposedParameter
- {
- [SerializeField] TerrainCollider val;
- public override object value { get => val; set => val = (TerrainCollider)value; }
- public override Type GetValueType() => typeof(TerrainCollider);
- }
- [System.Serializable]
- public class _WheelCollider : ExposedParameter
- {
- [SerializeField] WheelCollider val;
- public override object value { get => val; set => val = (WheelCollider)value; }
- public override Type GetValueType() => typeof(WheelCollider);
- }
- [System.Serializable]
- public class _Collider : ExposedParameter
- {
- [SerializeField] Collider val;
- public override object value { get => val; set => val = (Collider)value; }
- public override Type GetValueType() => typeof(Collider);
- }
- #endregion
- #region Playables
- [System.Serializable]
- public class _PlayableDirector : ExposedParameter
- {
- [SerializeField] PlayableDirector val;
- public override object value { get => val; set => val = (PlayableDirector)value; }
- public override Type GetValueType() => typeof(PlayableDirector);
- }
- #endregion
- #region Rendering
- [System.Serializable]
- public class _Camera : ExposedParameter
- {
- [SerializeField] Camera val;
- public override object value { get => val; set => val = (Camera)value; }
- public override Type GetValueType() => typeof(Camera);
- }
- [System.Serializable]
- public class _CanvasRenderer : ExposedParameter
- {
- [SerializeField] CanvasRenderer val;
- public override object value { get => val; set => val = (CanvasRenderer)value; }
- public override Type GetValueType() => typeof(CanvasRenderer);
- }
- [System.Serializable]
- public class _FlareLayer : ExposedParameter
- {
- [SerializeField] FlareLayer val;
- public override object value { get => val; set => val = (FlareLayer)value; }
- public override Type GetValueType() => typeof(FlareLayer);
- }
- [System.Serializable]
- public class _Light : ExposedParameter
- {
- [SerializeField] Light val;
- public override object value { get => val; set => val = (Light)value; }
- public override Type GetValueType() => typeof(Light);
- }
- [System.Serializable]
- public class _LightProbeGroup : ExposedParameter
- {
- [SerializeField] LightProbeGroup val;
- public override object value { get => val; set => val = (LightProbeGroup)value; }
- public override Type GetValueType() => typeof(LightProbeGroup);
- }
- [System.Serializable]
- public class _LightProbeProxyVolume : ExposedParameter
- {
- [SerializeField] LightProbeProxyVolume val;
- public override object value { get => val; set => val = (LightProbeProxyVolume)value; }
- public override Type GetValueType() => typeof(LightProbeProxyVolume);
- }
- [System.Serializable]
- public class _LODGroup : ExposedParameter
- {
- [SerializeField] LODGroup val;
- public override object value { get => val; set => val = (LODGroup)value; }
- public override Type GetValueType() => typeof(LODGroup);
- }
- [System.Serializable]
- public class _OcclusionArea : ExposedParameter
- {
- [SerializeField] OcclusionArea val;
- public override object value { get => val; set => val = (OcclusionArea)value; }
- public override Type GetValueType() => typeof(OcclusionArea);
- }
- [System.Serializable]
- public class _OcclusionPortal : ExposedParameter
- {
- [SerializeField] OcclusionPortal val;
- public override object value { get => val; set => val = (OcclusionPortal)value; }
- public override Type GetValueType() => typeof(OcclusionPortal);
- }
- [System.Serializable]
- public class _ReflectionProbe : ExposedParameter
- {
- [SerializeField] ReflectionProbe val;
- public override object value { get => val; set => val = (ReflectionProbe)value; }
- public override Type GetValueType() => typeof(ReflectionProbe);
- }
- [System.Serializable]
- public class _Skybox : ExposedParameter
- {
- [SerializeField] Skybox val;
- public override object value { get => val; set => val = (Skybox)value; }
- public override Type GetValueType() => typeof(Skybox);
- }
- [System.Serializable]
- public class _SortingGroup : ExposedParameter
- {
- [SerializeField] SortingGroup val;
- public override object value { get => val; set => val = (SortingGroup)value; }
- public override Type GetValueType() => typeof(SortingGroup);
- }
- [System.Serializable]
- public class _SpriteRenderer : ExposedParameter
- {
- [SerializeField] SpriteRenderer val;
- public override object value { get => val; set => val = (SpriteRenderer)value; }
- public override Type GetValueType() => typeof(SpriteRenderer);
- }
- [System.Serializable]
- public class _StreamingController : ExposedParameter
- {
- [SerializeField] StreamingController val;
- public override object value { get => val; set => val = (StreamingController)value; }
- public override Type GetValueType() => typeof(StreamingController);
- }
- #endregion
- #region TileMap
- [System.Serializable]
- public class _Tilemap : ExposedParameter
- {
- [SerializeField] Tilemap val;
- public override object value { get => val; set => val = (Tilemap)value; }
- public override Type GetValueType() => typeof(Tilemap);
- }
- [System.Serializable]
- public class _TilemapCollider2D : ExposedParameter
- {
- [SerializeField] TilemapCollider2D val;
- public override object value { get => val; set => val = (TilemapCollider2D)value; }
- public override Type GetValueType() => typeof(TilemapCollider2D);
- }
- [System.Serializable]
- public class _TilemapRenderer : ExposedParameter
- {
- [SerializeField] TilemapRenderer val;
- public override object value { get => val; set => val = (TilemapRenderer)value; }
- public override Type GetValueType() => typeof(TilemapRenderer);
- }
- #endregion
- #region UI
- [System.Serializable]
- public class _Button : ExposedParameter
- {
- [SerializeField] Button val;
- public override object value { get => val; set => val = (Button)value; }
- public override Type GetValueType() => typeof(Button);
- }
- [System.Serializable]
- public class _Outline : ExposedParameter
- {
- [SerializeField] Outline val;
- public override object value { get => val; set => val = (Outline)value; }
- public override Type GetValueType() => typeof(Outline);
- }
- [System.Serializable]
- public class _PositionAsUV1 : ExposedParameter
- {
- [SerializeField] PositionAsUV1 val;
- public override object value { get => val; set => val = (PositionAsUV1)value; }
- public override Type GetValueType() => typeof(PositionAsUV1);
- }
- [System.Serializable]
- public class _Shadow : ExposedParameter
- {
- [SerializeField] Shadow val;
- public override object value { get => val; set => val = (Shadow)value; }
- public override Type GetValueType() => typeof(Shadow);
- }
- [System.Serializable]
- public class _Mask : ExposedParameter
- {
- [SerializeField] Mask val;
- public override object value { get => val; set => val = (Mask)value; }
- public override Type GetValueType() => typeof(Mask);
- }
- [System.Serializable]
- public class _Image : ExposedParameter
- {
- [SerializeField] Image val;
- public override object value { get => val; set => val = (Image)value; }
- public override Type GetValueType() => typeof(Image);
- }
- [System.Serializable]
- public class _RawImage : ExposedParameter
- {
- [SerializeField] RawImage val;
- public override object value { get => val; set => val = (RawImage)value; }
- public override Type GetValueType() => typeof(RawImage);
- }
- [System.Serializable]
- public class _Scrollbar : ExposedParameter
- {
- [SerializeField] Scrollbar val;
- public override object value { get => val; set => val = (Scrollbar)value; }
- public override Type GetValueType() => typeof(Scrollbar);
- }
- [System.Serializable]
- public class _ScrollRect : ExposedParameter
- {
- [SerializeField] ScrollRect val;
- public override object value { get => val; set => val = (ScrollRect)value; }
- public override Type GetValueType() => typeof(ScrollRect);
- }
- [System.Serializable]
- public class _RectMask2D : ExposedParameter
- {
- [SerializeField] RectMask2D val;
- public override object value { get => val; set => val = (RectMask2D)value; }
- public override Type GetValueType() => typeof(RectMask2D);
- }
- [System.Serializable]
- public class _Selectable : ExposedParameter
- {
- [SerializeField] Selectable val;
- public override object value { get => val; set => val = (Selectable)value; }
- public override Type GetValueType() => typeof(Selectable);
- }
- [System.Serializable]
- public class _Slider : ExposedParameter
- {
- [SerializeField] Slider val;
- public override object value { get => val; set => val = (Slider)value; }
- public override Type GetValueType() => typeof(Slider);
- }
- [System.Serializable]
- public class _Toggle : ExposedParameter
- {
- [SerializeField] Toggle val;
- public override object value { get => val; set => val = (Toggle)value; }
- public override Type GetValueType() => typeof(Toggle);
- }
- [System.Serializable]
- public class _ToggleGroup : ExposedParameter
- {
- [SerializeField] ToggleGroup val;
- public override object value { get => val; set => val = (ToggleGroup)value; }
- public override Type GetValueType() => typeof(ToggleGroup);
- }
- [System.Serializable]
- public class _Text : ExposedParameter
- {
- [SerializeField] Text val;
- public override object value { get => val; set => val = (Text)value; }
- public override Type GetValueType() => typeof(Text);
- }
- [System.Serializable]
- public class _Dropdown : ExposedParameter
- {
- [SerializeField] _Dropdown val;
- public override object value { get => val; set => val = (_Dropdown)value; }
- public override Type GetValueType() => typeof(_Dropdown);
- }
- [System.Serializable]
- public class _InputField : ExposedParameter
- {
- [SerializeField] InputField val;
- public override object value { get => val; set => val = (InputField)value; }
- public override Type GetValueType() => typeof(InputField);
- }
- #endregion
- #region VideoPlayer
- [System.Serializable]
- public class _VideoPlayer : ExposedParameter
- {
- [SerializeField] VideoPlayer val;
- public override object value { get => val; set => val = (VideoPlayer)value; }
- public override Type GetValueType() => typeof(VideoPlayer);
- }
- #endregion
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement