summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-15 07:04:38 +0800
committerchai <chaifix@163.com>2020-10-15 07:04:38 +0800
commitb71d5611db087772179505ed10c82ca958900df7 (patch)
tree5160f6af41d45529e435550879e0c87ea59c09a8 /Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs
parentb1b14c45ce95dcf7b81867d68d6006345d98959e (diff)
+advanced inspector
Diffstat (limited to 'Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs')
-rw-r--r--Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs b/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs
new file mode 100644
index 00000000..a8b01074
--- /dev/null
+++ b/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs
@@ -0,0 +1,18 @@
+using UnityEngine;
+using System;
+using System.Collections;
+
+using AdvancedInspector;
+
+[AdvancedInspector]
+public class AIExample21_Bypass : MonoBehaviour
+{
+ // Some class - often in .dll - do now have AdvancedInspector attributes.
+ // It is possible to force them to behave as if they were flagged with the Bypass attribute.
+ // IMPORTANT: Some Unity classes are not meant to be inspected, and may break.
+ // The Advanced Inspector should be rock solid in those case and flag invalid data field as read only.
+ // The GUIStyle is one example of a class that has no editor for it.
+ // The Bypass attribute automaticly inspect every public fields and properties.
+ [Inspect, Bypass]
+ public GUIStyle skin = new GUIStyle();
+}