C# 클래스 MBObject, Pharos

Base class that all Magical Box components (except particles) inherit from
상속: MonoBehaviour, System.IComparable
파일 보기 프로젝트 열기: rstaewen/Pharos 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Muted bool
Scale Vector3

보호된 프로퍼티들

프로퍼티 타입 설명
mChildren List
mParent MBObject,
mParticleSystem MBParticleSystem,
mTransform Transform

공개 메소드들

메소드 설명
CompareTo ( object obj ) : int
Destroy ( ) : void

Destroys this object

Because all Magical Box objects are part of a cached particle system hierarchy, you need to call this instead of just deleting the GameObject

Matches ( ) : bool

Gets whether class is of one of the given types

Purge ( ) : void

Recursively clear resources. Useful for parameters that load textures etc...

This is called by the editor when you export to a prefabs and on Reset()

Reset ( ) : void
SetParent ( MBObject, parent ) : void

Sets a new parent for this object

mbReloadHierarchy ( ) : void

Force this object and all child objects to refetch parent and reload/recache their stuff

This is used to update the cached hierarchy after changes were made

this ( int childIndex ) : MBObject,

Gets a child by its index

this ( string childName ) : MBObject,

Gets a child by its name

보호된 메소드들

메소드 설명
OnDisable ( ) : void
OnDrawGizmos ( ) : void

By default draw the corresponding gizmo icon (with name of TypeName)

ShouldDrawGizmos returns whether gizmos should be drawn or not, depending of the current editor settings

OnDrawGizmosSelected ( ) : void

By default draw the corresponding gizmo icon (with name of TypeName)

ShouldDrawGizmos returns whether gizmos should be drawn or not, depending of the current editor settings

OnEnable ( ) : void

메소드 상세

CompareTo() 공개 메소드

public CompareTo ( object obj ) : int
obj object
리턴 int

Destroy() 공개 메소드

Destroys this object
Because all Magical Box objects are part of a cached particle system hierarchy, you need to call this instead of just deleting the GameObject
public Destroy ( ) : void
리턴 void

Matches() 공개 메소드

Gets whether class is of one of the given types
public Matches ( ) : bool
리턴 bool

OnDisable() 보호된 메소드

protected OnDisable ( ) : void
리턴 void

OnDrawGizmos() 보호된 메소드

By default draw the corresponding gizmo icon (with name of TypeName)
ShouldDrawGizmos returns whether gizmos should be drawn or not, depending of the current editor settings
protected OnDrawGizmos ( ) : void
리턴 void

OnDrawGizmosSelected() 보호된 메소드

By default draw the corresponding gizmo icon (with name of TypeName)
ShouldDrawGizmos returns whether gizmos should be drawn or not, depending of the current editor settings
protected OnDrawGizmosSelected ( ) : void
리턴 void

OnEnable() 보호된 메소드

protected OnEnable ( ) : void
리턴 void

Purge() 공개 메소드

Recursively clear resources. Useful for parameters that load textures etc...
This is called by the editor when you export to a prefabs and on Reset()
public Purge ( ) : void
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

SetParent() 공개 메소드

Sets a new parent for this object
public SetParent ( MBObject, parent ) : void
parent MBObject,
리턴 void

mbReloadHierarchy() 공개 메소드

Force this object and all child objects to refetch parent and reload/recache their stuff
This is used to update the cached hierarchy after changes were made
public mbReloadHierarchy ( ) : void
리턴 void

this() 공개 메소드

Gets a child by its index
public this ( int childIndex ) : MBObject,
childIndex int
리턴 MBObject,

this() 공개 메소드

Gets a child by its name
public this ( string childName ) : MBObject,
childName string
리턴 MBObject,

프로퍼티 상세

Muted 공개적으로 프로퍼티

Whether this object is muted or not
Muted objects won't be processed and rendered
public bool Muted
리턴 bool

Scale 공개적으로 프로퍼티

Gets or sets object's scale
public Vector3 Scale
리턴 Vector3

mChildren 보호되어 있는 프로퍼티

protected List mChildren
리턴 List

mParent 보호되어 있는 프로퍼티

protected MBObject, mParent
리턴 MBObject,

mParticleSystem 보호되어 있는 프로퍼티

protected MBParticleSystem, mParticleSystem
리턴 MBParticleSystem,

mTransform 보호되어 있는 프로퍼티

protected Transform mTransform
리턴 Transform