Advertisement
Diamond32_Tutoriales

Untitled

Jun 10th, 2022
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.13 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.AI;
  5. using UnityEngine.VFX;
  6. using UnityEngine.UI;
  7. using UnityEngine.ParticleSystemJobs;
  8. using UnityEngine.EventSystems;
  9. using UnityEngine.Animations;
  10. using UnityEngine.U2D;
  11. using UnityEngine.Playables;
  12. using UnityEngine.Rendering;
  13. using UnityEngine.Tilemaps;
  14. using UnityEngine.Video;
  15.  
  16. namespace GraphProcessor
  17. {
  18. [Serializable]
  19. public class ExposedParameter : ISerializationCallbackReceiver
  20. {
  21. [Serializable]
  22. public class Settings
  23. {
  24. public bool isHidden = false;
  25. public bool expanded = false;
  26.  
  27. [SerializeField]
  28. internal string guid = null;
  29.  
  30. public override bool Equals(object obj)
  31. {
  32. if (obj is Settings s && s != null)
  33. return Equals(s);
  34. else
  35. return false;
  36. }
  37.  
  38. public virtual bool Equals(Settings param)
  39. => isHidden == param.isHidden && expanded == param.expanded;
  40.  
  41. public override int GetHashCode() => base.GetHashCode();
  42. }
  43.  
  44. public string guid; // unique id to keep track of the parameter
  45. public string name;
  46. [Obsolete("Use GetValueType()")]
  47. public string type;
  48. [Obsolete("Use value instead")]
  49. public SerializableObject serializedValue;
  50. public bool input = true;
  51. [SerializeReference]
  52. public Settings settings;
  53. public string shortType => GetValueType()?.Name;
  54.  
  55. public void Initialize(string name, object value)
  56. {
  57. guid = Guid.NewGuid().ToString(); // Generated once and unique per parameter
  58. settings = CreateSettings();
  59. settings.guid = guid;
  60. this.name = name;
  61. this.value = value;
  62. }
  63.  
  64. void ISerializationCallbackReceiver.OnAfterDeserialize()
  65. {
  66. // SerializeReference migration step:
  67. #pragma warning disable CS0618
  68. if (serializedValue?.value != null) // old serialization system can't serialize null values
  69. {
  70. value = serializedValue.value;
  71. Debug.Log("Migrated: " + serializedValue.value + " | " + serializedValue.serializedName);
  72. serializedValue.value = null;
  73. }
  74. #pragma warning restore CS0618
  75. }
  76.  
  77. void ISerializationCallbackReceiver.OnBeforeSerialize() { }
  78.  
  79. protected virtual Settings CreateSettings() => new Settings();
  80.  
  81. public virtual object value { get; set; }
  82. public virtual Type GetValueType() => value == null ? typeof(object) : value.GetType();
  83.  
  84. static Dictionary<Type, Type> exposedParameterTypeCache = new Dictionary<Type, Type>();
  85. internal ExposedParameter Migrate()
  86. {
  87. if (exposedParameterTypeCache.Count == 0)
  88. {
  89. foreach (var type in AppDomain.CurrentDomain.GetAllTypes())
  90. {
  91. if (type.IsSubclassOf(typeof(ExposedParameter)) && !type.IsAbstract)
  92. {
  93. var paramType = Activator.CreateInstance(type) as ExposedParameter;
  94. exposedParameterTypeCache[paramType.GetValueType()] = type;
  95. }
  96. }
  97. }
  98. #pragma warning disable CS0618 // Use of obsolete fields
  99. var oldType = Type.GetType(type);
  100. #pragma warning restore CS0618
  101. if (oldType == null || !exposedParameterTypeCache.TryGetValue(oldType, out var newParamType))
  102. return null;
  103.  
  104. var newParam = Activator.CreateInstance(newParamType) as ExposedParameter;
  105.  
  106. newParam.guid = guid;
  107. newParam.name = name;
  108. newParam.input = input;
  109. newParam.settings = newParam.CreateSettings();
  110. newParam.settings.guid = guid;
  111.  
  112. return newParam;
  113.  
  114. }
  115.  
  116. public static bool operator ==(ExposedParameter param1, ExposedParameter param2)
  117. {
  118. if (ReferenceEquals(param1, null) && ReferenceEquals(param2, null))
  119. return true;
  120. if (ReferenceEquals(param1, param2))
  121. return true;
  122. if (ReferenceEquals(param1, null))
  123. return false;
  124. if (ReferenceEquals(param2, null))
  125. return false;
  126.  
  127. return param1.Equals(param2);
  128. }
  129.  
  130. public static bool operator !=(ExposedParameter param1, ExposedParameter param2) => !(param1 == param2);
  131.  
  132. public bool Equals(ExposedParameter parameter) => guid == parameter.guid;
  133.  
  134. public override bool Equals(object obj)
  135. {
  136. if ((obj == null) || !this.GetType().Equals(obj.GetType()))
  137. return false;
  138. else
  139. return Equals((ExposedParameter)obj);
  140. }
  141.  
  142. public override int GetHashCode() => guid.GetHashCode();
  143.  
  144. public ExposedParameter Clone()
  145. {
  146. var clonedParam = Activator.CreateInstance(GetType()) as ExposedParameter;
  147.  
  148. clonedParam.guid = guid;
  149. clonedParam.name = name;
  150. clonedParam.input = input;
  151. clonedParam.settings = settings;
  152. clonedParam.value = value;
  153.  
  154. return clonedParam;
  155. }
  156. }
  157.  
  158.  
  159. #region BehaviourGraph
  160. [System.Serializable]
  161. public class _GraphBehaviour : ExposedParameter
  162. {
  163. [SerializeField] MonoBehaviour val;
  164.  
  165. public override object value { get => val; set => val = (MonoBehaviour) value; }
  166. public override Type GetValueType() => typeof(MonoBehaviour);
  167. }
  168. #endregion
  169.  
  170.  
  171. // Due to polymorphic constraints with [SerializeReference] we need to explicitly create a class for
  172. // every parameter type available in the graph (i.e. templating doesn't work)
  173. [System.Serializable]
  174. public class ColorParameter : ExposedParameter
  175. {
  176. public enum ColorMode
  177. {
  178. Default,
  179. HDR
  180. }
  181.  
  182. [Serializable]
  183. public class ColorSettings : Settings
  184. {
  185. public ColorMode mode;
  186.  
  187. public override bool Equals(Settings param)
  188. => base.Equals(param) && mode == ((ColorSettings)param).mode;
  189. }
  190.  
  191. [SerializeField] Color val;
  192.  
  193. public override object value { get => val; set => val = (Color)value; }
  194. protected override Settings CreateSettings() => new ColorSettings();
  195. }
  196.  
  197. [System.Serializable]
  198. public class FloatParameter : ExposedParameter
  199. {
  200. public enum FloatMode
  201. {
  202. Default,
  203. Slider,
  204. }
  205.  
  206. [Serializable]
  207. public class FloatSettings : Settings
  208. {
  209. public FloatMode mode;
  210. public float min = 0;
  211. public float max = 1;
  212.  
  213. public override bool Equals(Settings param)
  214. => base.Equals(param) && mode == ((FloatSettings)param).mode && min == ((FloatSettings)param).min && max == ((FloatSettings)param).max;
  215. }
  216.  
  217. [SerializeField] float val;
  218.  
  219. public override object value { get => val; set => val = (float)value; }
  220. protected override Settings CreateSettings() => new FloatSettings();
  221. }
  222.  
  223. [System.Serializable]
  224. public class Vector2Parameter : ExposedParameter
  225. {
  226. public enum Vector2Mode
  227. {
  228. Default,
  229. MinMaxSlider,
  230. }
  231.  
  232. [Serializable]
  233. public class Vector2Settings : Settings
  234. {
  235. public Vector2Mode mode;
  236. public float min = 0;
  237. public float max = 1;
  238.  
  239. public override bool Equals(Settings param)
  240. => base.Equals(param) && mode == ((Vector2Settings)param).mode && min == ((Vector2Settings)param).min && max == ((Vector2Settings)param).max;
  241. }
  242.  
  243. [SerializeField] Vector2 val;
  244.  
  245. public override object value { get => val; set => val = (Vector2)value; }
  246. protected override Settings CreateSettings() => new Vector2Settings();
  247. }
  248.  
  249. [System.Serializable]
  250. public class Vector3Parameter : ExposedParameter
  251. {
  252. [SerializeField] Vector3 val;
  253.  
  254. public override object value { get => val; set => val = (Vector3)value; }
  255. }
  256.  
  257. [System.Serializable]
  258. public class Vector4Parameter : ExposedParameter
  259. {
  260. [SerializeField] Vector4 val;
  261.  
  262. public override object value { get => val; set => val = (Vector4)value; }
  263. }
  264.  
  265. [System.Serializable]
  266. public class IntParameter : ExposedParameter
  267. {
  268. public enum IntMode
  269. {
  270. Default,
  271. Slider,
  272. }
  273.  
  274. [Serializable]
  275. public class IntSettings : Settings
  276. {
  277. public IntMode mode;
  278. public int min = 0;
  279. public int max = 10;
  280.  
  281. public override bool Equals(Settings param)
  282. => base.Equals(param) && mode == ((IntSettings)param).mode && min == ((IntSettings)param).min && max == ((IntSettings)param).max;
  283. }
  284.  
  285. [SerializeField] int val;
  286.  
  287. public override object value { get => val; set => val = (int)value; }
  288. protected override Settings CreateSettings() => new IntSettings();
  289. }
  290.  
  291. [System.Serializable]
  292. public class Vector2IntParameter : ExposedParameter
  293. {
  294. [SerializeField] Vector2Int val;
  295.  
  296. public override object value { get => val; set => val = (Vector2Int)value; }
  297. }
  298.  
  299. [System.Serializable]
  300. public class Vector3IntParameter : ExposedParameter
  301. {
  302. [SerializeField] Vector3Int val;
  303.  
  304. public override object value { get => val; set => val = (Vector3Int)value; }
  305. }
  306.  
  307. [System.Serializable]
  308. public class DoubleParameter : ExposedParameter
  309. {
  310. [SerializeField] Double val;
  311.  
  312. public override object value { get => val; set => val = (Double)value; }
  313. }
  314.  
  315. [System.Serializable]
  316. public class LongParameter : ExposedParameter
  317. {
  318. [SerializeField] long val;
  319.  
  320. public override object value { get => val; set => val = (long)value; }
  321. }
  322.  
  323. [System.Serializable]
  324. public class StringParameter : ExposedParameter
  325. {
  326. [SerializeField] string val;
  327.  
  328. public override object value { get => val; set => val = (string)value; }
  329. public override Type GetValueType() => typeof(String);
  330. }
  331.  
  332. [System.Serializable]
  333. public class RectParameter : ExposedParameter
  334. {
  335. [SerializeField] Rect val;
  336.  
  337. public override object value { get => val; set => val = (Rect)value; }
  338. }
  339.  
  340. [System.Serializable]
  341. public class RectIntParameter : ExposedParameter
  342. {
  343. [SerializeField] RectInt val;
  344.  
  345. public override object value { get => val; set => val = (RectInt)value; }
  346. }
  347.  
  348. [System.Serializable]
  349. public class BoundsParameter : ExposedParameter
  350. {
  351. [SerializeField] Bounds val;
  352.  
  353. public override object value { get => val; set => val = (Bounds)value; }
  354. }
  355.  
  356. [System.Serializable]
  357. public class BoundsIntParameter : ExposedParameter
  358. {
  359. [SerializeField] BoundsInt val;
  360.  
  361. public override object value { get => val; set => val = (BoundsInt)value; }
  362. }
  363.  
  364. [System.Serializable]
  365. public class AnimationCurveParameter : ExposedParameter
  366. {
  367. [SerializeField] AnimationCurve val;
  368.  
  369. public override object value { get => val; set => val = (AnimationCurve)value; }
  370. public override Type GetValueType() => typeof(AnimationCurve);
  371. }
  372.  
  373. [System.Serializable]
  374. public class GradientParameter : ExposedParameter
  375. {
  376. public enum GradientColorMode
  377. {
  378. Default,
  379. HDR,
  380. }
  381.  
  382. [Serializable]
  383. public class GradientSettings : Settings
  384. {
  385. public GradientColorMode mode;
  386.  
  387. public override bool Equals(Settings param)
  388. => base.Equals(param) && mode == ((GradientSettings)param).mode;
  389. }
  390.  
  391. [SerializeField] Gradient val;
  392. [SerializeField, GradientUsage(true)] Gradient hdrVal;
  393.  
  394. public override object value { get => val; set => val = (Gradient)value; }
  395. public override Type GetValueType() => typeof(Gradient);
  396. protected override Settings CreateSettings() => new GradientSettings();
  397. }
  398.  
  399. [System.Serializable]
  400. public class GameObjectParameter : ExposedParameter
  401. {
  402. [SerializeField] GameObject val;
  403.  
  404. public override object value { get => val; set => val = (GameObject)value; }
  405. public override Type GetValueType() => typeof(GameObject);
  406. }
  407.  
  408. [System.Serializable]
  409. public class BoolParameter : ExposedParameter
  410. {
  411. [SerializeField] bool val;
  412.  
  413. public override object value { get => val; set => val = (bool)value; }
  414. }
  415.  
  416. [System.Serializable]
  417. public class Texture2DParameter : ExposedParameter
  418. {
  419. [SerializeField] Texture2D val;
  420.  
  421. public override object value { get => val; set => val = (Texture2D)value; }
  422. public override Type GetValueType() => typeof(Texture2D);
  423. }
  424.  
  425. [System.Serializable]
  426. public class RenderTextureParameter : ExposedParameter
  427. {
  428. [SerializeField] RenderTexture val;
  429.  
  430. public override object value { get => val; set => val = (RenderTexture)value; }
  431. public override Type GetValueType() => typeof(RenderTexture);
  432. }
  433.  
  434. [System.Serializable]
  435. public class MeshParameter : ExposedParameter
  436. {
  437. [SerializeField] Mesh val;
  438.  
  439. public override object value { get => val; set => val = (Mesh)value; }
  440. public override Type GetValueType() => typeof(Mesh);
  441. }
  442.  
  443. [System.Serializable]
  444. public class MaterialParameter : ExposedParameter
  445. {
  446. [SerializeField] Material val;
  447.  
  448. public override object value { get => val; set => val = (Material)value; }
  449. public override Type GetValueType() => typeof(Material);
  450. }
  451.  
  452.  
  453. [System.Serializable]
  454. public class _RigiBody : ExposedParameter
  455. {
  456. [SerializeField] Rigidbody val;
  457.  
  458. public override object value { get => val; set => val = (Rigidbody)value; }
  459. public override Type GetValueType() => typeof(Rigidbody);
  460. }
  461.  
  462. [System.Serializable]
  463. public class _Rigidbody2d : ExposedParameter
  464. {
  465. [SerializeField] Rigidbody2D val;
  466.  
  467. public override object value { get => val; set => val = (Rigidbody2D)value; }
  468. public override Type GetValueType() => typeof(Rigidbody2D);
  469. }
  470.  
  471. [System.Serializable]
  472. public class _AudioChorusFilter : ExposedParameter
  473. {
  474. [SerializeField] AudioChorusFilter val;
  475.  
  476. public override object value { get => val; set => val = (AudioChorusFilter)value; }
  477. public override Type GetValueType() => typeof(AudioChorusFilter);
  478. }
  479.  
  480. #region Audio
  481. [System.Serializable]
  482. public class _AudioDistortionFilter : ExposedParameter
  483. {
  484. [SerializeField] AudioDistortionFilter val;
  485.  
  486. public override object value { get => val; set => val = (AudioDistortionFilter)value; }
  487. public override Type GetValueType() => typeof(AudioDistortionFilter);
  488. }
  489.  
  490. [System.Serializable]
  491. public class _AudioEchoFilter : ExposedParameter
  492. {
  493. [SerializeField] AudioEchoFilter val;
  494.  
  495. public override object value { get => val; set => val = (AudioEchoFilter)value; }
  496. public override Type GetValueType() => typeof(AudioEchoFilter);
  497. }
  498.  
  499. [System.Serializable]
  500. public class _AudioHighPassFilter : ExposedParameter
  501. {
  502. [SerializeField] AudioHighPassFilter val;
  503.  
  504. public override object value { get => val; set => val = (AudioHighPassFilter)value; }
  505. public override Type GetValueType() => typeof(AudioHighPassFilter);
  506. }
  507.  
  508. [System.Serializable]
  509. public class _AudioListener : ExposedParameter
  510. {
  511. [SerializeField] AudioListener val;
  512.  
  513. public override object value { get => val; set => val = (AudioListener)value; }
  514. public override Type GetValueType() => typeof(AudioListener);
  515. }
  516.  
  517. [System.Serializable]
  518. public class _AudioLowPassFilter : ExposedParameter
  519. {
  520. [SerializeField] AudioLowPassFilter val;
  521.  
  522. public override object value { get => val; set => val = (AudioLowPassFilter)value; }
  523. public override Type GetValueType() => typeof(AudioLowPassFilter);
  524. }
  525.  
  526. [System.Serializable]
  527. public class _AudioReverbFilter : ExposedParameter
  528. {
  529. [SerializeField] AudioReverbFilter val;
  530.  
  531. public override object value { get => val; set => val = (AudioReverbFilter)value; }
  532. public override Type GetValueType() => typeof(AudioReverbFilter);
  533. }
  534.  
  535. [System.Serializable]
  536. public class _AudioReverbZone : ExposedParameter
  537. {
  538. [SerializeField] AudioReverbZone val;
  539.  
  540. public override object value { get => val; set => val = (AudioReverbZone)value; }
  541. public override Type GetValueType() => typeof(AudioReverbZone);
  542. }
  543.  
  544. [System.Serializable]
  545. public class _AudioSource : ExposedParameter
  546. {
  547. [SerializeField] AudioSource val;
  548.  
  549. public override object value { get => val; set => val = (AudioSource)value; }
  550. public override Type GetValueType() => typeof(AudioSource);
  551. }
  552. #endregion
  553.  
  554. #region Event
  555. [System.Serializable]
  556. public class _EventSystem : ExposedParameter
  557. {
  558. [SerializeField] EventSystem val;
  559.  
  560. public override object value { get => val; set => val = (EventSystem)value; }
  561. public override Type GetValueType() => typeof(EventSystem);
  562. }
  563.  
  564. [System.Serializable]
  565. public class _EventTrigger : ExposedParameter
  566. {
  567. [SerializeField] EventTrigger val;
  568.  
  569. public override object value { get => val; set => val = (EventTrigger)value; }
  570. public override Type GetValueType() => typeof(EventTrigger);
  571. }
  572.  
  573.  
  574. [System.Serializable]
  575. public class _GraphicRaycaster : ExposedParameter
  576. {
  577. [SerializeField] GraphicRaycaster val;
  578.  
  579. public override object value { get => val; set => val = (GraphicRaycaster)value; }
  580. public override Type GetValueType() => typeof(GraphicRaycaster);
  581. }
  582.  
  583. [System.Serializable]
  584. public class _Physics2DRaycaster : ExposedParameter
  585. {
  586. [SerializeField] Physics2DRaycaster val;
  587.  
  588. public override object value { get => val; set => val = (Physics2DRaycaster)value; }
  589. public override Type GetValueType() => typeof(Physics2DRaycaster);
  590. }
  591.  
  592. [System.Serializable]
  593. public class _StandaloneInputModule : ExposedParameter
  594. {
  595. [SerializeField] StandaloneInputModule val;
  596.  
  597. public override object value { get => val; set => val = (StandaloneInputModule)value; }
  598. public override Type GetValueType() => typeof(StandaloneInputModule);
  599. }
  600.  
  601. [System.Serializable]
  602. public class _TouchInputModule : ExposedParameter
  603. {
  604. [SerializeField] TouchInputModule val;
  605.  
  606. public override object value { get => val; set => val = (TouchInputModule)value; }
  607. public override Type GetValueType() => typeof(TouchInputModule);
  608. }
  609. #endregion
  610.  
  611.  
  612.  
  613. #region Layout
  614. [System.Serializable]
  615. public class _AspectRatioFitter : ExposedParameter
  616. {
  617. [SerializeField] AspectRatioFitter val;
  618.  
  619. public override object value { get => val; set => val = (AspectRatioFitter)value; }
  620. public override Type GetValueType() => typeof(AspectRatioFitter);
  621. }
  622.  
  623. [System.Serializable]
  624. public class _Canvas : ExposedParameter
  625. {
  626. [SerializeField] Canvas val;
  627.  
  628. public override object value { get => val; set => val = (Canvas)value; }
  629. public override Type GetValueType() => typeof(Canvas);
  630. }
  631.  
  632. [System.Serializable]
  633. public class _CanvasGroup : ExposedParameter
  634. {
  635. [SerializeField] CanvasGroup val;
  636.  
  637. public override object value { get => val; set => val = (CanvasGroup)value; }
  638. public override Type GetValueType() => typeof(CanvasGroup);
  639. }
  640.  
  641. [System.Serializable]
  642. public class _CanvasScaler : ExposedParameter
  643. {
  644. [SerializeField] CanvasScaler val;
  645.  
  646. public override object value { get => val; set => val = (CanvasScaler)value; }
  647. public override Type GetValueType() => typeof(CanvasScaler);
  648. }
  649.  
  650. [System.Serializable]
  651. public class _ContentSizeFilter : ExposedParameter
  652. {
  653. [SerializeField] ContentSizeFitter val;
  654.  
  655. public override object value { get => val; set => val = (ContentSizeFitter)value; }
  656. public override Type GetValueType() => typeof(ContentSizeFitter);
  657. }
  658.  
  659. [System.Serializable]
  660. public class _GridLayoutGroup : ExposedParameter
  661. {
  662. [SerializeField] GridLayoutGroup val;
  663.  
  664. public override object value { get => val; set => val = (GridLayoutGroup)value; }
  665. public override Type GetValueType() => typeof(GridLayoutGroup);
  666. }
  667.  
  668. [System.Serializable]
  669. public class _HorizontalLayoutGroup : ExposedParameter
  670. {
  671. [SerializeField] HorizontalLayoutGroup val;
  672.  
  673. public override object value { get => val; set => val = (HorizontalLayoutGroup)value; }
  674. public override Type GetValueType() => typeof(HorizontalLayoutGroup);
  675. }
  676.  
  677. [System.Serializable]
  678. public class _LayoutElement : ExposedParameter
  679. {
  680. [SerializeField] LayoutElement val;
  681.  
  682. public override object value { get => val; set => val = (LayoutElement)value; }
  683. public override Type GetValueType() => typeof(LayoutElement);
  684. }
  685.  
  686. [System.Serializable]
  687. public class _RectTransform : ExposedParameter
  688. {
  689. [SerializeField] RectTransform val;
  690.  
  691. public override object value { get => val; set => val = (RectTransform)value; }
  692. public override Type GetValueType() => typeof(RectTransform);
  693. }
  694.  
  695. [System.Serializable]
  696. public class _VerticalLayoutGroup : ExposedParameter
  697. {
  698. [SerializeField] VerticalLayoutGroup val;
  699.  
  700. public override object value { get => val; set => val = (VerticalLayoutGroup)value; }
  701. public override Type GetValueType() => typeof(VerticalLayoutGroup);
  702. }
  703.  
  704. [System.Serializable]
  705. public class _MeshFilter : ExposedParameter
  706. {
  707. [SerializeField] MeshFilter val;
  708.  
  709. public override object value { get => val; set => val = (MeshFilter)value; }
  710. public override Type GetValueType() => typeof(MeshFilter);
  711. }
  712.  
  713. [System.Serializable]
  714. public class _SkinnedMeshRenderer : ExposedParameter
  715. {
  716. [SerializeField] SkinnedMeshRenderer val;
  717.  
  718. public override object value { get => val; set => val = (SkinnedMeshRenderer)value; }
  719. public override Type GetValueType() => typeof(SkinnedMeshRenderer);
  720. }
  721.  
  722. #endregion
  723.  
  724.  
  725. #region Miscellaneous
  726. [System.Serializable]
  727. public class _AimConstrains : ExposedParameter
  728. {
  729. [SerializeField] AimConstraint val;
  730.  
  731. public override object value { get => val; set => val = (AimConstraint)value; }
  732. public override Type GetValueType() => typeof(AimConstraint);
  733. }
  734.  
  735. [System.Serializable]
  736. public class _Animation : ExposedParameter
  737. {
  738. [SerializeField] Animation val;
  739.  
  740. public override object value { get => val; set => val = (Animation)value; }
  741. public override Type GetValueType() => typeof(Animation);
  742. }
  743.  
  744. [System.Serializable]
  745. public class _Animator : ExposedParameter
  746. {
  747. [SerializeField] Animator val;
  748.  
  749. public override object value { get => val; set => val = (Animator)value; }
  750. public override Type GetValueType() => typeof(Animator);
  751. }
  752.  
  753. [System.Serializable]
  754. public class _BillboardRenderer : ExposedParameter
  755. {
  756. [SerializeField] BillboardRenderer val;
  757.  
  758. public override object value { get => val; set => val = (BillboardRenderer)value; }
  759. public override Type GetValueType() => typeof(BillboardRenderer);
  760. }
  761.  
  762. [System.Serializable]
  763. public class _Grid : ExposedParameter
  764. {
  765. [SerializeField] Grid val;
  766.  
  767. public override object value { get => val; set => val = (Grid)value; }
  768. public override Type GetValueType() => typeof(Grid);
  769. }
  770.  
  771. [System.Serializable]
  772. public class _LookAtConstrains : ExposedParameter
  773. {
  774. [SerializeField] LookAtConstraint val;
  775.  
  776. public override object value { get => val; set => val = (LookAtConstraint)value; }
  777. public override Type GetValueType() => typeof(LookAtConstraint);
  778. }
  779.  
  780. [System.Serializable]
  781. public class _ParentConstrains : ExposedParameter
  782. {
  783. [SerializeField] ParentConstraint val;
  784.  
  785. public override object value { get => val; set => val = (ParentConstraint)value; }
  786. public override Type GetValueType() => typeof(ParentConstraint);
  787. }
  788.  
  789. [System.Serializable]
  790. public class _ParticleSystemForceField : ExposedParameter
  791. {
  792. [SerializeField] ParticleSystemForceField val;
  793.  
  794. public override object value { get => val; set => val = (ParticleSystemForceField)value; }
  795. public override Type GetValueType() => typeof(ParticleSystemForceField);
  796. }
  797.  
  798. [System.Serializable]
  799. public class _PositionConstrains : ExposedParameter
  800. {
  801. [SerializeField] PositionConstraint val;
  802.  
  803. public override object value { get => val; set => val = (PositionConstraint)value; }
  804. public override Type GetValueType() => typeof(PositionConstraint);
  805. }
  806.  
  807. [System.Serializable]
  808. public class _RotationConstraint : ExposedParameter
  809. {
  810. [SerializeField] RotationConstraint val;
  811.  
  812. public override object value { get => val; set => val = (RotationConstraint)value; }
  813. public override Type GetValueType() => typeof(RotationConstraint);
  814. }
  815.  
  816. [System.Serializable]
  817. public class _ScaleConstraint : ExposedParameter
  818. {
  819. [SerializeField] ScaleConstraint val;
  820.  
  821. public override object value { get => val; set => val = (ScaleConstraint)value; }
  822. public override Type GetValueType() => typeof(ScaleConstraint);
  823. }
  824.  
  825. [System.Serializable]
  826. public class _SpriteMask : ExposedParameter
  827. {
  828. [SerializeField] SpriteMask val;
  829.  
  830. public override object value { get => val; set => val = (SpriteMask)value; }
  831. public override Type GetValueType() => typeof(SpriteMask);
  832. }
  833.  
  834. [System.Serializable]
  835. public class _SpriteShapeRenderer : ExposedParameter
  836. {
  837. [SerializeField] SpriteShapeRenderer val;
  838.  
  839. public override object value { get => val; set => val = (SpriteShapeRenderer)value; }
  840. public override Type GetValueType() => typeof(SpriteShapeRenderer);
  841. }
  842.  
  843. [System.Serializable]
  844. public class _Terrain : ExposedParameter
  845. {
  846. [SerializeField] Terrain val;
  847.  
  848. public override object value { get => val; set => val = (Terrain)value; }
  849. public override Type GetValueType() => typeof(Terrain);
  850. }
  851.  
  852. [System.Serializable]
  853. public class _WindZone : ExposedParameter
  854. {
  855. [SerializeField] WindZone val;
  856.  
  857. public override object value { get => val; set => val = (WindZone)value; }
  858. public override Type GetValueType() => typeof(WindZone);
  859. }
  860. #endregion
  861.  
  862. #region Navegation
  863. [System.Serializable]
  864. public class _NavMeshAgent : ExposedParameter
  865. {
  866. [SerializeField] NavMeshAgent val;
  867.  
  868. public override object value { get => val; set => val = (NavMeshAgent)value; }
  869. public override Type GetValueType() => typeof(NavMeshAgent);
  870. }
  871.  
  872. [System.Serializable]
  873. public class _NavMeshObstacle : ExposedParameter
  874. {
  875. [SerializeField] NavMeshObstacle val;
  876.  
  877. public override object value { get => val; set => val = (NavMeshObstacle)value; }
  878. public override Type GetValueType() => typeof(NavMeshObstacle);
  879. }
  880.  
  881. [System.Serializable]
  882. public class _OffMeshLink : ExposedParameter
  883. {
  884. [SerializeField] OffMeshLink val;
  885.  
  886. public override object value { get => val; set => val = (OffMeshLink)value; }
  887. public override Type GetValueType() => typeof(OffMeshLink);
  888. }
  889. #endregion
  890.  
  891.  
  892. #region Physics2D
  893. [System.Serializable]
  894. public class _AreaEffector2D : ExposedParameter
  895. {
  896. [SerializeField] AreaEffector2D val;
  897.  
  898. public override object value { get => val; set => val = (AreaEffector2D)value; }
  899. public override Type GetValueType() => typeof(AreaEffector2D);
  900. }
  901.  
  902. [System.Serializable]
  903. public class _BoxCollider2D : ExposedParameter
  904. {
  905. [SerializeField] BoxCollider2D val;
  906.  
  907. public override object value { get => val; set => val = (BoxCollider2D)value; }
  908. public override Type GetValueType() => typeof(BoxCollider2D);
  909. }
  910.  
  911. [System.Serializable]
  912. public class _BuoyancyEffector2D : ExposedParameter
  913. {
  914. [SerializeField] BuoyancyEffector2D val;
  915.  
  916. public override object value { get => val; set => val = (BuoyancyEffector2D)value; }
  917. public override Type GetValueType() => typeof(BuoyancyEffector2D);
  918. }
  919.  
  920. [System.Serializable]
  921. public class _CapsuleCollider2D : ExposedParameter
  922. {
  923. [SerializeField] CapsuleCollider2D val;
  924.  
  925. public override object value { get => val; set => val = (CapsuleCollider2D)value; }
  926. public override Type GetValueType() => typeof(CapsuleCollider2D);
  927. }
  928.  
  929. [System.Serializable]
  930. public class _CircleCollider2D : ExposedParameter
  931. {
  932. [SerializeField] CircleCollider2D val;
  933.  
  934. public override object value { get => val; set => val = (CircleCollider2D)value; }
  935. public override Type GetValueType() => typeof(CircleCollider2D);
  936. }
  937.  
  938. [System.Serializable]
  939. public class _CompositeCollider2D : ExposedParameter
  940. {
  941. [SerializeField] CompositeCollider2D val;
  942.  
  943. public override object value { get => val; set => val = (CompositeCollider2D)value; }
  944. public override Type GetValueType() => typeof(CompositeCollider2D);
  945. }
  946.  
  947. [System.Serializable]
  948. public class _ConstantForce2D : ExposedParameter
  949. {
  950. [SerializeField] ConstantForce2D val;
  951.  
  952. public override object value { get => val; set => val = (ConstantForce2D)value; }
  953. public override Type GetValueType() => typeof(ConstantForce2D);
  954. }
  955.  
  956. #if UNITY_2021_1_OR_NEWER
  957. [System.Serializable]
  958. public class _CustomCollider2D : ExposedParameter
  959. {
  960. [SerializeField] CustomCollider2D val;
  961.  
  962. public override object value { get => val; set => val = (CustomCollider2D)value; }
  963. public override Type GetValueType() => typeof(CustomCollider2D);
  964. }
  965. #endif
  966.  
  967. [System.Serializable]
  968. public class _DistanceJoint2D : ExposedParameter
  969. {
  970. [SerializeField] DistanceJoint2D val;
  971.  
  972. public override object value { get => val; set => val = (DistanceJoint2D)value; }
  973. public override Type GetValueType() => typeof(DistanceJoint2D);
  974. }
  975.  
  976. [System.Serializable]
  977. public class _EdgeCollider2D : ExposedParameter
  978. {
  979. [SerializeField] EdgeCollider2D val;
  980.  
  981. public override object value { get => val; set => val = (EdgeCollider2D)value; }
  982. public override Type GetValueType() => typeof(EdgeCollider2D);
  983. }
  984.  
  985. [System.Serializable]
  986. public class _FixedJoint2D : ExposedParameter
  987. {
  988. [SerializeField] FixedJoint2D val;
  989.  
  990. public override object value { get => val; set => val = (FixedJoint2D)value; }
  991. public override Type GetValueType() => typeof(FixedJoint2D);
  992. }
  993.  
  994. [System.Serializable]
  995. public class _FrictionJoint2D : ExposedParameter
  996. {
  997. [SerializeField] FrictionJoint2D val;
  998.  
  999. public override object value { get => val; set => val = (FrictionJoint2D)value; }
  1000. public override Type GetValueType() => typeof(FrictionJoint2D);
  1001. }
  1002.  
  1003. [System.Serializable]
  1004. public class _HingeJoint2D : ExposedParameter
  1005. {
  1006. [SerializeField] HingeJoint2D val;
  1007.  
  1008. public override object value { get => val; set => val = (HingeJoint2D)value; }
  1009. public override Type GetValueType() => typeof(HingeJoint2D);
  1010. }
  1011.  
  1012. [System.Serializable]
  1013. public class _PlatformEffector2D : ExposedParameter
  1014. {
  1015. [SerializeField] PlatformEffector2D val;
  1016.  
  1017. public override object value { get => val; set => val = (PlatformEffector2D)value; }
  1018. public override Type GetValueType() => typeof(PlatformEffector2D);
  1019. }
  1020.  
  1021. [System.Serializable]
  1022. public class _PointEffector2D : ExposedParameter
  1023. {
  1024. [SerializeField] PointEffector2D val;
  1025.  
  1026. public override object value { get => val; set => val = (PointEffector2D)value; }
  1027. public override Type GetValueType() => typeof(PointEffector2D);
  1028. }
  1029.  
  1030. [System.Serializable]
  1031. public class _PolygonCollider2D : ExposedParameter
  1032. {
  1033. [SerializeField] PolygonCollider2D val;
  1034.  
  1035. public override object value { get => val; set => val = (PolygonCollider2D)value; }
  1036. public override Type GetValueType() => typeof(PolygonCollider2D);
  1037. }
  1038.  
  1039. [System.Serializable]
  1040. public class _RelativeJoint2D : ExposedParameter
  1041. {
  1042. [SerializeField] RelativeJoint2D val;
  1043.  
  1044. public override object value { get => val; set => val = (RelativeJoint2D)value; }
  1045. public override Type GetValueType() => typeof(RelativeJoint2D);
  1046. }
  1047.  
  1048. [System.Serializable]
  1049. public class _Rigidbody2D : ExposedParameter
  1050. {
  1051. [SerializeField] Rigidbody2D val;
  1052.  
  1053. public override object value { get => val; set => val = (Rigidbody2D)value; }
  1054. public override Type GetValueType() => typeof(Rigidbody2D);
  1055. }
  1056.  
  1057. [System.Serializable]
  1058. public class _SliderJoint2D : ExposedParameter
  1059. {
  1060. [SerializeField] SliderJoint2D val;
  1061.  
  1062. public override object value { get => val; set => val = (SliderJoint2D)value; }
  1063. public override Type GetValueType() => typeof(SliderJoint2D);
  1064. }
  1065.  
  1066. [System.Serializable]
  1067. public class _SpringJoint2D : ExposedParameter
  1068. {
  1069. [SerializeField] SpringJoint2D val;
  1070.  
  1071. public override object value { get => val; set => val = (SpringJoint2D)value; }
  1072. public override Type GetValueType() => typeof(SpringJoint2D);
  1073. }
  1074.  
  1075. [System.Serializable]
  1076. public class _SurfaceEffector2D : ExposedParameter
  1077. {
  1078. [SerializeField] SurfaceEffector2D val;
  1079.  
  1080. public override object value { get => val; set => val = (SurfaceEffector2D)value; }
  1081. public override Type GetValueType() => typeof(SurfaceEffector2D);
  1082. }
  1083.  
  1084. [System.Serializable]
  1085. public class _TargetJoint2D : ExposedParameter
  1086. {
  1087. [SerializeField] TargetJoint2D val;
  1088.  
  1089. public override object value { get => val; set => val = (TargetJoint2D)value; }
  1090. public override Type GetValueType() => typeof(TargetJoint2D);
  1091. }
  1092.  
  1093. [System.Serializable]
  1094. public class _WheelJoint2D : ExposedParameter
  1095. {
  1096. [SerializeField] WheelJoint2D val;
  1097.  
  1098. public override object value { get => val; set => val = (WheelJoint2D)value; }
  1099. public override Type GetValueType() => typeof(WheelJoint2D);
  1100. }
  1101.  
  1102. [System.Serializable]
  1103. public class _Collider2D : ExposedParameter
  1104. {
  1105. [SerializeField] Collider2D val;
  1106.  
  1107. public override object value { get => val; set => val = (Collider2D)value; }
  1108. public override Type GetValueType() => typeof(Collider2D);
  1109. }
  1110. #endregion
  1111.  
  1112.  
  1113.  
  1114. #region RigidBody3D
  1115. [System.Serializable]
  1116. public class _ArticulationBody : ExposedParameter
  1117. {
  1118. [SerializeField] ArticulationBody val;
  1119.  
  1120. public override object value { get => val; set => val = (ArticulationBody)value; }
  1121. public override Type GetValueType() => typeof(ArticulationBody);
  1122. }
  1123.  
  1124. [System.Serializable]
  1125. public class _BoxCollider : ExposedParameter
  1126. {
  1127. [SerializeField] BoxCollider val;
  1128.  
  1129. public override object value { get => val; set => val = (BoxCollider)value; }
  1130. public override Type GetValueType() => typeof(BoxCollider);
  1131. }
  1132.  
  1133. [System.Serializable]
  1134. public class _CapsuleCollider : ExposedParameter
  1135. {
  1136. [SerializeField] CapsuleCollider val;
  1137.  
  1138. public override object value { get => val; set => val = (CapsuleCollider)value; }
  1139. public override Type GetValueType() => typeof(CapsuleCollider);
  1140. }
  1141.  
  1142. [System.Serializable]
  1143. public class _CharacterController : ExposedParameter
  1144. {
  1145. [SerializeField] CharacterController val;
  1146.  
  1147. public override object value { get => val; set => val = (CharacterController)value; }
  1148. public override Type GetValueType() => typeof(CharacterController);
  1149. }
  1150.  
  1151. [System.Serializable]
  1152. public class _CharacterJoint : ExposedParameter
  1153. {
  1154. [SerializeField] CharacterController val;
  1155.  
  1156. public override object value { get => val; set => val = (CharacterController)value; }
  1157. public override Type GetValueType() => typeof(CharacterController);
  1158. }
  1159.  
  1160. [System.Serializable]
  1161. public class _Cloth : ExposedParameter
  1162. {
  1163. [SerializeField] Cloth val;
  1164.  
  1165. public override object value { get => val; set => val = (Cloth)value; }
  1166. public override Type GetValueType() => typeof(Cloth);
  1167. }
  1168.  
  1169.  
  1170. [System.Serializable]
  1171. public class _ConfigurableJoint : ExposedParameter
  1172. {
  1173. [SerializeField] ConfigurableJoint val;
  1174.  
  1175. public override object value { get => val; set => val = (ConfigurableJoint)value; }
  1176. public override Type GetValueType() => typeof(ConfigurableJoint);
  1177. }
  1178.  
  1179. [System.Serializable]
  1180. public class _ConstantForce : ExposedParameter
  1181. {
  1182. [SerializeField] ConstantForce val;
  1183.  
  1184. public override object value { get => val; set => val = (ConstantForce)value; }
  1185. public override Type GetValueType() => typeof(ConstantForce);
  1186. }
  1187.  
  1188. [System.Serializable]
  1189. public class _FixedJoint : ExposedParameter
  1190. {
  1191. [SerializeField] FixedJoint val;
  1192.  
  1193. public override object value { get => val; set => val = (FixedJoint)value; }
  1194. public override Type GetValueType() => typeof(FixedJoint);
  1195. }
  1196.  
  1197. [System.Serializable]
  1198. public class _HingeJoint : ExposedParameter
  1199. {
  1200. [SerializeField] HingeJoint val;
  1201.  
  1202. public override object value { get => val; set => val = (HingeJoint)value; }
  1203. public override Type GetValueType() => typeof(HingeJoint);
  1204. }
  1205.  
  1206. [System.Serializable]
  1207. public class _MeshCollider : ExposedParameter
  1208. {
  1209. [SerializeField] MeshCollider val;
  1210.  
  1211. public override object value { get => val; set => val = (MeshCollider)value; }
  1212. public override Type GetValueType() => typeof(MeshCollider);
  1213. }
  1214.  
  1215. [System.Serializable]
  1216. public class _Rigidbody : ExposedParameter
  1217. {
  1218. [SerializeField] Rigidbody val;
  1219.  
  1220. public override object value { get => val; set => val = (Rigidbody)value; }
  1221. public override Type GetValueType() => typeof(Rigidbody);
  1222. }
  1223.  
  1224. [System.Serializable]
  1225. public class _SphereCollider : ExposedParameter
  1226. {
  1227. [SerializeField] SphereCollider val;
  1228.  
  1229. public override object value { get => val; set => val = (SphereCollider)value; }
  1230. public override Type GetValueType() => typeof(SphereCollider);
  1231. }
  1232.  
  1233. [System.Serializable]
  1234. public class _SpringJoint : ExposedParameter
  1235. {
  1236. [SerializeField] SpringJoint val;
  1237.  
  1238. public override object value { get => val; set => val = (SpringJoint)value; }
  1239. public override Type GetValueType() => typeof(SpringJoint);
  1240. }
  1241.  
  1242. [System.Serializable]
  1243. public class _TerrainCollider : ExposedParameter
  1244. {
  1245. [SerializeField] TerrainCollider val;
  1246.  
  1247. public override object value { get => val; set => val = (TerrainCollider)value; }
  1248. public override Type GetValueType() => typeof(TerrainCollider);
  1249. }
  1250.  
  1251. [System.Serializable]
  1252. public class _WheelCollider : ExposedParameter
  1253. {
  1254. [SerializeField] WheelCollider val;
  1255.  
  1256. public override object value { get => val; set => val = (WheelCollider)value; }
  1257. public override Type GetValueType() => typeof(WheelCollider);
  1258. }
  1259.  
  1260. [System.Serializable]
  1261. public class _Collider : ExposedParameter
  1262. {
  1263. [SerializeField] Collider val;
  1264.  
  1265. public override object value { get => val; set => val = (Collider)value; }
  1266. public override Type GetValueType() => typeof(Collider);
  1267. }
  1268. #endregion
  1269.  
  1270. #region Playables
  1271. [System.Serializable]
  1272. public class _PlayableDirector : ExposedParameter
  1273. {
  1274. [SerializeField] PlayableDirector val;
  1275.  
  1276. public override object value { get => val; set => val = (PlayableDirector)value; }
  1277. public override Type GetValueType() => typeof(PlayableDirector);
  1278. }
  1279. #endregion
  1280.  
  1281. #region Rendering
  1282. [System.Serializable]
  1283. public class _Camera : ExposedParameter
  1284. {
  1285. [SerializeField] Camera val;
  1286.  
  1287. public override object value { get => val; set => val = (Camera)value; }
  1288. public override Type GetValueType() => typeof(Camera);
  1289. }
  1290.  
  1291. [System.Serializable]
  1292. public class _CanvasRenderer : ExposedParameter
  1293. {
  1294. [SerializeField] CanvasRenderer val;
  1295.  
  1296. public override object value { get => val; set => val = (CanvasRenderer)value; }
  1297. public override Type GetValueType() => typeof(CanvasRenderer);
  1298. }
  1299.  
  1300. [System.Serializable]
  1301. public class _FlareLayer : ExposedParameter
  1302. {
  1303. [SerializeField] FlareLayer val;
  1304.  
  1305. public override object value { get => val; set => val = (FlareLayer)value; }
  1306. public override Type GetValueType() => typeof(FlareLayer);
  1307. }
  1308.  
  1309. [System.Serializable]
  1310. public class _Light : ExposedParameter
  1311. {
  1312. [SerializeField] Light val;
  1313.  
  1314. public override object value { get => val; set => val = (Light)value; }
  1315. public override Type GetValueType() => typeof(Light);
  1316. }
  1317.  
  1318. [System.Serializable]
  1319. public class _LightProbeGroup : ExposedParameter
  1320. {
  1321. [SerializeField] LightProbeGroup val;
  1322.  
  1323. public override object value { get => val; set => val = (LightProbeGroup)value; }
  1324. public override Type GetValueType() => typeof(LightProbeGroup);
  1325. }
  1326.  
  1327. [System.Serializable]
  1328. public class _LightProbeProxyVolume : ExposedParameter
  1329. {
  1330. [SerializeField] LightProbeProxyVolume val;
  1331.  
  1332. public override object value { get => val; set => val = (LightProbeProxyVolume)value; }
  1333. public override Type GetValueType() => typeof(LightProbeProxyVolume);
  1334. }
  1335.  
  1336. [System.Serializable]
  1337. public class _LODGroup : ExposedParameter
  1338. {
  1339. [SerializeField] LODGroup val;
  1340.  
  1341. public override object value { get => val; set => val = (LODGroup)value; }
  1342. public override Type GetValueType() => typeof(LODGroup);
  1343. }
  1344.  
  1345. [System.Serializable]
  1346. public class _OcclusionArea : ExposedParameter
  1347. {
  1348. [SerializeField] OcclusionArea val;
  1349.  
  1350. public override object value { get => val; set => val = (OcclusionArea)value; }
  1351. public override Type GetValueType() => typeof(OcclusionArea);
  1352. }
  1353.  
  1354. [System.Serializable]
  1355. public class _OcclusionPortal : ExposedParameter
  1356. {
  1357. [SerializeField] OcclusionPortal val;
  1358.  
  1359. public override object value { get => val; set => val = (OcclusionPortal)value; }
  1360. public override Type GetValueType() => typeof(OcclusionPortal);
  1361. }
  1362.  
  1363. [System.Serializable]
  1364. public class _ReflectionProbe : ExposedParameter
  1365. {
  1366. [SerializeField] ReflectionProbe val;
  1367.  
  1368. public override object value { get => val; set => val = (ReflectionProbe)value; }
  1369. public override Type GetValueType() => typeof(ReflectionProbe);
  1370. }
  1371.  
  1372. [System.Serializable]
  1373. public class _Skybox : ExposedParameter
  1374. {
  1375. [SerializeField] Skybox val;
  1376.  
  1377. public override object value { get => val; set => val = (Skybox)value; }
  1378. public override Type GetValueType() => typeof(Skybox);
  1379. }
  1380.  
  1381. [System.Serializable]
  1382. public class _SortingGroup : ExposedParameter
  1383. {
  1384. [SerializeField] SortingGroup val;
  1385.  
  1386. public override object value { get => val; set => val = (SortingGroup)value; }
  1387. public override Type GetValueType() => typeof(SortingGroup);
  1388. }
  1389.  
  1390. [System.Serializable]
  1391. public class _SpriteRenderer : ExposedParameter
  1392. {
  1393. [SerializeField] SpriteRenderer val;
  1394.  
  1395. public override object value { get => val; set => val = (SpriteRenderer)value; }
  1396. public override Type GetValueType() => typeof(SpriteRenderer);
  1397. }
  1398.  
  1399. [System.Serializable]
  1400. public class _StreamingController : ExposedParameter
  1401. {
  1402. [SerializeField] StreamingController val;
  1403.  
  1404. public override object value { get => val; set => val = (StreamingController)value; }
  1405. public override Type GetValueType() => typeof(StreamingController);
  1406. }
  1407. #endregion
  1408.  
  1409. #region TileMap
  1410. [System.Serializable]
  1411. public class _Tilemap : ExposedParameter
  1412. {
  1413. [SerializeField] Tilemap val;
  1414.  
  1415. public override object value { get => val; set => val = (Tilemap)value; }
  1416. public override Type GetValueType() => typeof(Tilemap);
  1417. }
  1418.  
  1419. [System.Serializable]
  1420. public class _TilemapCollider2D : ExposedParameter
  1421. {
  1422. [SerializeField] TilemapCollider2D val;
  1423.  
  1424. public override object value { get => val; set => val = (TilemapCollider2D)value; }
  1425. public override Type GetValueType() => typeof(TilemapCollider2D);
  1426. }
  1427.  
  1428. [System.Serializable]
  1429. public class _TilemapRenderer : ExposedParameter
  1430. {
  1431. [SerializeField] TilemapRenderer val;
  1432.  
  1433. public override object value { get => val; set => val = (TilemapRenderer)value; }
  1434. public override Type GetValueType() => typeof(TilemapRenderer);
  1435. }
  1436. #endregion
  1437.  
  1438. #region UI
  1439. [System.Serializable]
  1440. public class _Button : ExposedParameter
  1441. {
  1442. [SerializeField] Button val;
  1443.  
  1444. public override object value { get => val; set => val = (Button)value; }
  1445. public override Type GetValueType() => typeof(Button);
  1446. }
  1447.  
  1448. [System.Serializable]
  1449. public class _Outline : ExposedParameter
  1450. {
  1451. [SerializeField] Outline val;
  1452.  
  1453. public override object value { get => val; set => val = (Outline)value; }
  1454. public override Type GetValueType() => typeof(Outline);
  1455. }
  1456.  
  1457. [System.Serializable]
  1458. public class _PositionAsUV1 : ExposedParameter
  1459. {
  1460. [SerializeField] PositionAsUV1 val;
  1461.  
  1462. public override object value { get => val; set => val = (PositionAsUV1)value; }
  1463. public override Type GetValueType() => typeof(PositionAsUV1);
  1464. }
  1465.  
  1466. [System.Serializable]
  1467. public class _Shadow : ExposedParameter
  1468. {
  1469. [SerializeField] Shadow val;
  1470.  
  1471. public override object value { get => val; set => val = (Shadow)value; }
  1472. public override Type GetValueType() => typeof(Shadow);
  1473. }
  1474.  
  1475. [System.Serializable]
  1476. public class _Mask : ExposedParameter
  1477. {
  1478. [SerializeField] Mask val;
  1479.  
  1480. public override object value { get => val; set => val = (Mask)value; }
  1481. public override Type GetValueType() => typeof(Mask);
  1482. }
  1483.  
  1484. [System.Serializable]
  1485. public class _Image : ExposedParameter
  1486. {
  1487. [SerializeField] Image val;
  1488.  
  1489. public override object value { get => val; set => val = (Image)value; }
  1490. public override Type GetValueType() => typeof(Image);
  1491. }
  1492.  
  1493. [System.Serializable]
  1494. public class _RawImage : ExposedParameter
  1495. {
  1496. [SerializeField] RawImage val;
  1497.  
  1498. public override object value { get => val; set => val = (RawImage)value; }
  1499. public override Type GetValueType() => typeof(RawImage);
  1500. }
  1501.  
  1502. [System.Serializable]
  1503. public class _Scrollbar : ExposedParameter
  1504. {
  1505. [SerializeField] Scrollbar val;
  1506.  
  1507. public override object value { get => val; set => val = (Scrollbar)value; }
  1508. public override Type GetValueType() => typeof(Scrollbar);
  1509. }
  1510.  
  1511. [System.Serializable]
  1512. public class _ScrollRect : ExposedParameter
  1513. {
  1514. [SerializeField] ScrollRect val;
  1515.  
  1516. public override object value { get => val; set => val = (ScrollRect)value; }
  1517. public override Type GetValueType() => typeof(ScrollRect);
  1518. }
  1519.  
  1520. [System.Serializable]
  1521. public class _RectMask2D : ExposedParameter
  1522. {
  1523. [SerializeField] RectMask2D val;
  1524.  
  1525. public override object value { get => val; set => val = (RectMask2D)value; }
  1526. public override Type GetValueType() => typeof(RectMask2D);
  1527. }
  1528.  
  1529. [System.Serializable]
  1530. public class _Selectable : ExposedParameter
  1531. {
  1532. [SerializeField] Selectable val;
  1533.  
  1534. public override object value { get => val; set => val = (Selectable)value; }
  1535. public override Type GetValueType() => typeof(Selectable);
  1536. }
  1537.  
  1538. [System.Serializable]
  1539. public class _Slider : ExposedParameter
  1540. {
  1541. [SerializeField] Slider val;
  1542.  
  1543. public override object value { get => val; set => val = (Slider)value; }
  1544. public override Type GetValueType() => typeof(Slider);
  1545. }
  1546.  
  1547. [System.Serializable]
  1548. public class _Toggle : ExposedParameter
  1549. {
  1550. [SerializeField] Toggle val;
  1551.  
  1552. public override object value { get => val; set => val = (Toggle)value; }
  1553. public override Type GetValueType() => typeof(Toggle);
  1554. }
  1555.  
  1556. [System.Serializable]
  1557. public class _ToggleGroup : ExposedParameter
  1558. {
  1559. [SerializeField] ToggleGroup val;
  1560.  
  1561. public override object value { get => val; set => val = (ToggleGroup)value; }
  1562. public override Type GetValueType() => typeof(ToggleGroup);
  1563. }
  1564.  
  1565. [System.Serializable]
  1566. public class _Text : ExposedParameter
  1567. {
  1568. [SerializeField] Text val;
  1569.  
  1570. public override object value { get => val; set => val = (Text)value; }
  1571. public override Type GetValueType() => typeof(Text);
  1572. }
  1573.  
  1574. [System.Serializable]
  1575. public class _Dropdown : ExposedParameter
  1576. {
  1577. [SerializeField] _Dropdown val;
  1578.  
  1579. public override object value { get => val; set => val = (_Dropdown)value; }
  1580. public override Type GetValueType() => typeof(_Dropdown);
  1581. }
  1582.  
  1583. [System.Serializable]
  1584. public class _InputField : ExposedParameter
  1585. {
  1586. [SerializeField] InputField val;
  1587.  
  1588. public override object value { get => val; set => val = (InputField)value; }
  1589. public override Type GetValueType() => typeof(InputField);
  1590. }
  1591. #endregion
  1592.  
  1593. #region VideoPlayer
  1594. [System.Serializable]
  1595. public class _VideoPlayer : ExposedParameter
  1596. {
  1597. [SerializeField] VideoPlayer val;
  1598.  
  1599. public override object value { get => val; set => val = (VideoPlayer)value; }
  1600. public override Type GetValueType() => typeof(VideoPlayer);
  1601. }
  1602. #endregion
  1603.  
  1604. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement