C# Class MBObject, Pharos

Base class that all Magical Box components (except particles) inherit from
Inheritance: MonoBehaviour, System.IComparable
Afficher le fichier Open project: rstaewen/Pharos Class Usage Examples

Méthodes publiques

Свойство Type Description
Muted bool
Scale Vector3

Protected Properties

Свойство Type Description
mChildren List
mParent MBObject,
mParticleSystem MBParticleSystem,
mTransform Transform

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

CompareTo() public méthode

public CompareTo ( object obj ) : int
obj object
Résultat int

Destroy() public méthode

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
Résultat void

Matches() public méthode

Gets whether class is of one of the given types
public Matches ( ) : bool
Résultat bool

OnDisable() protected méthode

protected OnDisable ( ) : void
Résultat void

OnDrawGizmos() protected méthode

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
Résultat void

OnDrawGizmosSelected() protected méthode

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
Résultat void

OnEnable() protected méthode

protected OnEnable ( ) : void
Résultat void

Purge() public méthode

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
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

SetParent() public méthode

Sets a new parent for this object
public SetParent ( MBObject, parent ) : void
parent MBObject,
Résultat void

mbReloadHierarchy() public méthode

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
Résultat void

this() public méthode

Gets a child by its index
public this ( int childIndex ) : MBObject,
childIndex int
Résultat MBObject,

this() public méthode

Gets a child by its name
public this ( string childName ) : MBObject,
childName string
Résultat MBObject,

Property Details

Muted public_oe property

Whether this object is muted or not
Muted objects won't be processed and rendered
public bool Muted
Résultat bool

Scale public_oe property

Gets or sets object's scale
public Vector3 Scale
Résultat Vector3

mChildren protected_oe property

protected List mChildren
Résultat List

mParent protected_oe property

protected MBObject, mParent
Résultat MBObject,

mParticleSystem protected_oe property

protected MBParticleSystem, mParticleSystem
Résultat MBParticleSystem,

mTransform protected_oe property

protected Transform mTransform
Résultat Transform