Table of Contents

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

protected T component

Field Value

T

componentsProperty

protected SerializedProperty componentsProperty

Field Value

SerializedProperty

context

protected GameObject context

Field Value

GameObject

guid

protected string guid

Field Value

string

inStage

protected bool inStage

Field Value

bool

instanceId

protected int instanceId

Field Value

int

isAsset

protected bool isAsset

Field Value

bool

isInstance

protected bool isInstance

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

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

IterateOnChildren(Action<SerializedProperty>, Transform)

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 oldStage)

Parameters

oldStage PrefabStage

OnPrefabStageOpened(PrefabStage)

protected virtual void OnPrefabStageOpened(PrefabStage newStage)

Parameters

newStage 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()