Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1.  
  2. using Sirenix.OdinInspector;
  3. using UnityEngine;
  4.  
  5. public class TestMono : MonoBehaviour
  6. {
  7.     public enum EnumData
  8.     {
  9.         A,
  10.         B,
  11.         C
  12.     }
  13.    
  14.     [ToggleGroup("hasCustomFadeDistance", 0, "Custom fade distance")]
  15.     public bool hasCustomFadeDistance = false;
  16.  
  17.     [ToggleGroup("hasCustomFadeDistance"), LabelText("Offset")]
  18.     public float customFadeDistance = 0f;
  19.  
  20.  
  21.     [LabelText("One"), LabelWidth(50f), EnumPaging]
  22.     public EnumData EnumOneValue = EnumData.A;
  23.    
  24.     [LabelText("Two"), LabelWidth(50f), EnumPaging]
  25.     public EnumData EnumTwoValue = EnumData.A;
  26.    
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement