private void OnEnable() { if (icon == null) { icon = target as Buildt_inIcon; } }
public override void OnInspectorGUI() { if (icon == null) { icon = target as Buildt_inIcon; } this.Label("Name\t" + icon.iconName); this.Button(() => { GUIUtility.systemCopyBuffer = icon.iconName; }, "Copy", GUILayout.Height(15)); this.Label("View\t"); this.Label(icon.content); }