C# 클래스 MBEmitterType, Pharos

Base emitte type class
\sa \ref emtyperef \sa \ref codeextendemtype
상속: MBObject
파일 보기 프로젝트 열기: rstaewen/Pharos

공개 프로퍼티들

프로퍼티 타입 설명
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