Interhaptics SDK for Unity 1.6
Loading...
Searching...
No Matches
ConditionalHideAttribute.cs
Go to the documentation of this file.
1/* ​
2* Copyright (c) 2023 Go Touch VR SAS. All rights reserved. ​
3* ​
4*/
5
7{
8 using UnityEngine;
9
10 public class ConditionalHideAttribute : PropertyAttribute
11 {
12 public string ConditionalSourceField { get; private set; }
13 public bool HideInInspector { get; private set; }
14
15 public ConditionalHideAttribute(string conditionalSourceField, bool hideInInspector = false)
16 {
17 ConditionalSourceField = conditionalSourceField;
18 HideInInspector = hideInInspector;
19 }
20 }
21}
ConditionalHideAttribute(string conditionalSourceField, bool hideInInspector=false)