2022-12-09 10:43:19 -05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using TriInspector;
|
2022-07-03 10:59:35 -04:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class Conditionals_ShowIfSample : ScriptableObject
|
|
|
|
|
{
|
|
|
|
|
public Material material;
|
|
|
|
|
public bool toggle;
|
|
|
|
|
public SomeEnum someEnum;
|
|
|
|
|
|
|
|
|
|
[ShowIf(nameof(material), null)]
|
|
|
|
|
public Vector3 showWhenMaterialIsNull;
|
|
|
|
|
|
|
|
|
|
[ShowIf(nameof(toggle))]
|
2022-12-09 10:43:19 -05:00
|
|
|
|
public List<Vector3> showWhenToggleIsTrue;
|
2022-07-03 10:59:35 -04:00
|
|
|
|
|
|
|
|
|
[ShowIf(nameof(toggle), false)]
|
|
|
|
|
public Vector3 showWhenToggleIsFalse;
|
|
|
|
|
|
|
|
|
|
[ShowIf(nameof(someEnum), SomeEnum.Two)]
|
|
|
|
|
public Vector3 showWhenSomeEnumIsTwo;
|
|
|
|
|
|
|
|
|
|
public enum SomeEnum { One, Two, Three }
|
|
|
|
|
}
|