C# Класс ObjectHelper

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
children List
components List
foldout bool
mine GameObject
parent ObjectHelper,

Открытые методы

Метод Описание
BubbleRefresh ( ) : void
Copy ( bool toMine ) : void
DestroyAndClearRefs ( Object obj, bool isMine ) : void
DoRefresh ( ) : IEnumerator
DoRefresh ( OnRefreshComplete onComplete ) : IEnumerator
Draw ( ) : void

Default draw for drawing the root. Should only be called on root object NOTE: Why is width not 0?

Draw ( float width ) : void

Draw this node in the tree.

ExpandDiffs ( ) : bool
FindComp ( Object find, bool isMine ) : ComponentHelper,
FindObj ( Object find, bool isMine ) : ObjectHelper,
FindRefs ( Object source, bool isMine, List properties ) : void
GetDrawCount ( ) : int
GetObjectSpouse ( GameObject obj, bool isMine ) : GameObject

Get the spouse (counterpart) of an object within this tree. If the spouse is missing, copy the object and return the copy

Refresh ( ) : IEnumerable

Refresh is a very crucial function. Not only does it refresh the abstracted lists of ObjectHelpers and ComponentHelpers to reflect the actual scene, it is responsible for actually comparing objects

SetFoldoutRecur ( bool state ) : void
UnsetFlagRecursive ( ) : void

Приватные методы

Метод Описание
ComponentIsFiltered ( System type ) : bool
Copy ( GameObject original, bool isMine ) : GameObject

Do the actual GameObject copy. This is generalized because the process is totally symmetrical. Come to think of it so is the other version of Copy. I can probably merge these back together.

DrawObject ( bool isMine, float width ) : void
GetObject ( bool isMine ) : GameObject
SameObject ( GameObject mine, GameObject theirs ) : bool

Описание методов

BubbleRefresh() публичный Метод

public BubbleRefresh ( ) : void
Результат void

Copy() публичный Метод

public Copy ( bool toMine ) : void
toMine bool
Результат void

DestroyAndClearRefs() публичный Метод

public DestroyAndClearRefs ( Object obj, bool isMine ) : void
obj UnityEngine.Object
isMine bool
Результат void

DoRefresh() публичный Метод

public DoRefresh ( ) : IEnumerator
Результат IEnumerator

DoRefresh() публичный Метод

public DoRefresh ( OnRefreshComplete onComplete ) : IEnumerator
onComplete OnRefreshComplete
Результат IEnumerator

Draw() публичный Метод

Default draw for drawing the root. Should only be called on root object NOTE: Why is width not 0?
public Draw ( ) : void
Результат void

Draw() публичный Метод

Draw this node in the tree.
public Draw ( float width ) : void
width float
Результат void

ExpandDiffs() публичный Метод

public ExpandDiffs ( ) : bool
Результат bool

FindComp() публичный Метод

public FindComp ( Object find, bool isMine ) : ComponentHelper,
find UnityEngine.Object
isMine bool
Результат ComponentHelper,

FindObj() публичный Метод

public FindObj ( Object find, bool isMine ) : ObjectHelper,
find UnityEngine.Object
isMine bool
Результат ObjectHelper,

FindRefs() публичный Метод

public FindRefs ( Object source, bool isMine, List properties ) : void
source UnityEngine.Object
isMine bool
properties List
Результат void

GetDrawCount() публичный Метод

public GetDrawCount ( ) : int
Результат int

GetObjectSpouse() публичный Метод

Get the spouse (counterpart) of an object within this tree. If the spouse is missing, copy the object and return the copy
public GetObjectSpouse ( GameObject obj, bool isMine ) : GameObject
obj GameObject The object we're looking for
isMine bool Whether the object came from Mine (left)
Результат GameObject

Refresh() публичный Метод

Refresh is a very crucial function. Not only does it refresh the abstracted lists of ObjectHelpers and ComponentHelpers to reflect the actual scene, it is responsible for actually comparing objects
public Refresh ( ) : IEnumerable
Результат IEnumerable

SetFoldoutRecur() публичный Метод

public SetFoldoutRecur ( bool state ) : void
state bool
Результат void

UnsetFlagRecursive() публичный Метод

public UnsetFlagRecursive ( ) : void
Результат void

Описание свойств

children публичное свойство

public List children
Результат List

components публичное свойство

public List components
Результат List

foldout публичное свойство

public bool foldout
Результат bool

mine публичное свойство

public GameObject mine
Результат GameObject

parent публичное свойство

public ObjectHelper, parent
Результат ObjectHelper,