C# Класс MBEmitterType, Pharos

Base emitte type class
\sa \ref emtyperef \sa \ref codeextendemtype
Наследование: MBObject
Показать файл Открыть проект

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

Свойство Тип Описание
FitScreenHeight bool
FitScreenWidth bool
FixedHeading Vector3
FixedHeadingIsGlobal bool
GizmoColor1 Color
GizmoColor2 Color
GizmoColor3 Color
Heading MBEmitterTypeHeading
HeadingArc float
InverseHeading bool

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

Метод Описание
GetHeading ( MBParticle, PT ) : Vector3

Gets the initial heading of the new particle

GetPosition ( MBParticle, PT ) : Vector3

Gets a point inside the shape of this Emittertype

This is called by the emitter to get a spawn point for a new particle

OnDestroy ( ) : void
OnPlay ( ) : void

Called when the emitter starts playing

Override this to initialize an EmitterType

Reset ( ) : void

Resets to default values

ScaleToFitScreen ( ) : void

Scales the emitter to fit the viewport dimensions using ParticleSystem's Camera

This is useful for 2D emitters like MBRectEmitter

ScaleToFitScreen ( bool scaleX, bool scaleY ) : void

Scales the emitter to fit the viewport dimensions using ParticleSystem's Camera

Validate ( ) : void

Validate/Check/Limit fields and properties here

This is called by the editor after values were changed by the user.

mbReloadHierarchy ( ) : void

Защищенные методы

Метод Описание
DoGizmos ( ) : void

Gizmo drawing method, called by OnDrawGizmos and OnDrawGizmosSelected. Place your gizmo code here!

Gizmo-Visibility will be set by the user in the editor

OnDrawGizmos ( ) : void
OnDrawGizmosSelected ( ) : void

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

DoGizmos() защищенный Метод

Gizmo drawing method, called by OnDrawGizmos and OnDrawGizmosSelected. Place your gizmo code here!
Gizmo-Visibility will be set by the user in the editor
protected DoGizmos ( ) : void
Результат void

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

Gets the initial heading of the new particle
public GetHeading ( MBParticle, PT ) : Vector3
PT MBParticle, The new Particle with its position already set
Результат Vector3

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

Gets a point inside the shape of this Emittertype
This is called by the emitter to get a spawn point for a new particle
public GetPosition ( MBParticle, PT ) : Vector3
PT MBParticle, The new particle. Usually this isn't needed
Результат Vector3

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

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

OnDrawGizmos() защищенный Метод

protected OnDrawGizmos ( ) : void
Результат void

OnDrawGizmosSelected() защищенный Метод

protected OnDrawGizmosSelected ( ) : void
Результат void

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

Called when the emitter starts playing
Override this to initialize an EmitterType
public OnPlay ( ) : void
Результат void

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

Resets to default values
public Reset ( ) : void
Результат void

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

Scales the emitter to fit the viewport dimensions using ParticleSystem's Camera
This is useful for 2D emitters like MBRectEmitter
public ScaleToFitScreen ( ) : void
Результат void

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

Scales the emitter to fit the viewport dimensions using ParticleSystem's Camera
public ScaleToFitScreen ( bool scaleX, bool scaleY ) : void
scaleX bool True to scale the x axis
scaleY bool True to scale the y axis
Результат void

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

Validate/Check/Limit fields and properties here
This is called by the editor after values were changed by the user.
public Validate ( ) : void
Результат void

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

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

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

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

Whether the emitter type scales the y-axis to fit into viewport on play
public bool FitScreenHeight
Результат bool

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

Whether the emitter type scales the x-axis to fit into viewport on play
public bool FitScreenWidth
Результат bool

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

Heading vector used when Heading is set to MBEmitterTypeHeading.Fixed
public Vector3 FixedHeading
Результат Vector3

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

Whether Fixed takes emitter rotation into account or not
public bool FixedHeadingIsGlobal
Результат bool

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

Color used by EmitterType visualization
public Color GizmoColor1
Результат Color

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

Color used by EmitterType visualization;
public Color GizmoColor2
Результат Color

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

Color used by EmitterType visualization;
public Color GizmoColor3
Результат Color

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

The initial heading of emitted particles
public MBEmitterTypeHeading Heading
Результат MBEmitterTypeHeading

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

Heading arc used for several heading modes
public float HeadingArc
Результат float

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

Whether the initial heading will be inversed
public bool InverseHeading
Результат bool