Tanoda
GILES.Interface.pb_ComponentEditor Class Reference
Inheritance diagram for GILES.Interface.pb_ComponentEditor:
GILES.Interface.pb_AutoStageItemEditor GILES.Interface.pb_CameraEditor GILES.Interface.pb_GameObjectEditor GILES.Interface.pb_MeshRendererEditor GILES.Interface.pb_OffsetHolderEditor GILES.Interface.pb_PositionerEditor GILES.Interface.pb_RenameObjectEditor GILES.Interface.pb_TransformEditor GILES.Interface.pb_VideoPlayerEditor GILES.Interface.pb_VisualOffsetEditor GILES.Interface.pb_meshColliderEditor

Public Member Functions

void SetComponent (Component target)
 
virtual void UpdateGUI ()
 

Static Public Attributes

static readonly HashSet< string > ignoreProperties
 

Protected Member Functions

virtual void InitializeGUI ()
 

Protected Attributes

Component target
 The UnityEngine.Component being edited. More...
 

Detailed Description

Base class for Component editors. This implements a generic component editor when no suitable override is found.

To have a component use your custom editor, either append the pb_ComponentEditorResolver.builtinComponentEditors array or inherit pb_ICustomEditor from your script and instantiate a prefab with the editor.

Note: If subclassing and making use of pb_TypeInspector delegates to set and get values, you will need to manually notify pb_ComponentDiff of changes to prefabs. See pb_TransformEditor for an example. If using pb_TypeInspector with reflection, this is not necesssary as it is done automatically.

Definition at line 22 of file pb_ComponentEditor.cs.

Member Function Documentation

◆ InitializeGUI()

◆ SetComponent()

void GILES.Interface.pb_ComponentEditor.SetComponent ( Component  target)

Initialize this editor with a component target. This rebuilds the GUI automatically.

Definition at line 38 of file pb_ComponentEditor.cs.

◆ UpdateGUI()

virtual void GILES.Interface.pb_ComponentEditor.UpdateGUI ( )
virtual

Update the inspector GUI.

Definition at line 51 of file pb_ComponentEditor.cs.

Member Data Documentation

◆ ignoreProperties

readonly HashSet<string> GILES.Interface.pb_ComponentEditor.ignoreProperties
static
Initial value:
= new HashSet<string>()
{
"tag",
"name",
"hideFlags",
"useGUILayout"
}

Definition at line 27 of file pb_ComponentEditor.cs.

◆ target

Component GILES.Interface.pb_ComponentEditor.target
protected

The UnityEngine.Component being edited.

Definition at line 25 of file pb_ComponentEditor.cs.


The documentation for this class was generated from the following file: