Class InspectComponentWindow<T>
- Namespace
- Coherence.Editor
- Assembly
- Coherence.Editor.dll
public class InspectComponentWindow<T> : EditorWindow where T : Component
Type Parameters
T
- Inheritance
-
InspectComponentWindow<T>
- Derived
-
Constructors
InspectComponentWindow()
public InspectComponentWindow()
Fields
component
Field Value
- T
componentsProperty
protected SerializedProperty componentsProperty
Field Value
- SerializedProperty
context
protected GameObject context
Field Value
- GameObject
guid
Field Value
- string
inStage
Field Value
- bool
instanceId
Field Value
- int
isAsset
Field Value
- bool
isInstance
protected bool isInstance
Field Value
- bool
isResources
protected bool isResources
Field Value
- bool
isValidInstance
protected bool isValidInstance
Field Value
- bool
searchString
public string searchString
Field Value
- string
serializedGameObject
protected SerializedObject serializedGameObject
Field Value
- SerializedObject
serializedObject
protected SerializedObject serializedObject
Field Value
- SerializedObject
stage
protected PrefabStage stage
Field Value
- PrefabStage
Properties
Component
public T Component { get; set; }
Property Value
- T
Context
public GameObject Context { get; set; }
Property Value
- GameObject
Methods
DrawSearchField(string)
protected string DrawSearchField(string searchString)
Parameters
searchString
string
Returns
- string
IncludedInSearchFilter(string, bool)
protected bool IncludedInSearchFilter(string content, bool exactMatch = false)
Parameters
content
string
exactMatch
bool
Returns
- bool
IterateComponents(Action<SerializedProperty>)
protected void IterateComponents(Action<SerializedProperty> fn)
Parameters
fn
Action<SerializedProperty>
IterateComponents(Action<SerializedProperty>, SerializedProperty)
protected void IterateComponents(Action<SerializedProperty> fn, SerializedProperty componentsProperty)
Parameters
fn
Action<SerializedProperty>
componentsProperty
SerializedProperty
IterateComponents(Action<SerializedProperty>, GameObject)
protected void IterateComponents(Action<SerializedProperty> fn, GameObject gameObject)
Parameters
fn
Action<SerializedProperty>
gameObject
GameObject
protected void IterateOnChildren(Action<SerializedProperty> fn, Transform root)
Parameters
fn
Action<SerializedProperty>
root
Transform
OnActiveSelectionChanged()
protected virtual void OnActiveSelectionChanged()
OnComponentsChanged()
protected virtual void OnComponentsChanged()
OnDestroy()
protected virtual void OnDestroy()
OnDisable()
protected virtual void OnDisable()
OnEnable()
protected virtual void OnEnable()
OnFocus()
protected virtual void OnFocus()
OnGUI()
protected virtual void OnGUI()
OnHierarchyChange()
protected virtual void OnHierarchyChange()
OnPrefabStageClosing(PrefabStage)
protected virtual void OnPrefabStageClosing(PrefabStage stage)
Parameters
stage
PrefabStage
OnPrefabStageOpened(PrefabStage)
protected virtual void OnPrefabStageOpened(PrefabStage stage)
Parameters
stage
PrefabStage
OnSelectionChanged()
protected virtual void OnSelectionChanged()
OnUndoRedo()
protected virtual void OnUndoRedo()
Refresh(bool)
public virtual void Refresh(bool forceNewSelection = false)
Parameters
forceNewSelection
bool
Refresh(T)
public virtual void Refresh(T component)
Parameters
component
T
TryReloadFromGUID()
protected void TryReloadFromGUID()
UpdateFlags()
protected virtual void UpdateFlags()