Свойство | Тип | Описание | |
---|---|---|---|
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 |
public GetHeading ( MBParticle, PT ) : Vector3 | ||
PT | MBParticle, | The new Particle with its position already set |
Результат | Vector3 |
public GetPosition ( MBParticle, PT ) : Vector3 | ||
PT | MBParticle, | The new particle. Usually this isn't needed |
Результат | Vector3 |
public ScaleToFitScreen ( bool scaleX, bool scaleY ) : void | ||
scaleX | bool | True to scale the x axis |
scaleY | bool | True to scale the y axis |
Результат | void |