summaryrefslogtreecommitdiff
path: root/Assets/ThirdParty/AdvancedInspector/Examples/CSharp/AIExample21_Bypass.cs
blob: a8b010742f3ab83dc0800ac69343d5b8bc283a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
}