From b71d5611db087772179505ed10c82ca958900df7 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 15 Oct 2020 07:04:38 +0800 Subject: +advanced inspector --- .../Examples/CSharp/AIExample21_Bypass.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs (limited to 'Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs') 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(); +} -- cgit v1.1-26-g67d0