mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
23 lines
553 B
C#
23 lines
553 B
C#
using TriInspector;
|
|
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))]
|
|
public Vector3 showWhenToggleIsTrue;
|
|
|
|
[ShowIf(nameof(toggle), false)]
|
|
public Vector3 showWhenToggleIsFalse;
|
|
|
|
[ShowIf(nameof(someEnum), SomeEnum.Two)]
|
|
public Vector3 showWhenSomeEnumIsTwo;
|
|
|
|
public enum SomeEnum { One, Two, Three }
|
|
} |