C# 클래스 MBParameter, Pharos

Base class of all parameters
\sa \ref paramref \sa \ref codeextendparameter
상속: MBObject
파일 보기 프로젝트 열기: rstaewen/Pharos

공개 프로퍼티들

프로퍼티 타입 설명
AnimatedBirth bool
AnimatedLife bool
DeathReason MBDeathReason
GizmoColor1 Color
GizmoColor2 Color
Order int

공개 메소드들

메소드 설명
CompareTo ( object obj ) : int
Destroy ( ) : void
OnBirth ( MBParticle, PT ) : void

Sets a particle's initial parameters

This is called once on particle's birth. If AnimatedBirth is true you should animate values here (use PT.DeltaTime and PT.Emitter.AgePercent)

OnLifetime ( MBParticle, PT ) : bool

Change particle values over its lifetime

This is called each frame a particle exists. You should animate values using PT.AgePercent and PT.DeltaTime

OnPlay ( ) : void

Called on each MBEmitter.Play()

Use this to initialize your parameter

Reset ( ) : void

Restore default settings

Called by the user in the parameter editor

Validate ( ) : void

Validate/Check/Limit fields and properties here

This is called by the Editor window after values were changed.

보호된 메소드들

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

메소드 상세

CompareTo() 공개 메소드

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

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

OnBirth() 공개 메소드

Sets a particle's initial parameters
This is called once on particle's birth. If AnimatedBirth is true you should animate values here (use PT.DeltaTime and PT.Emitter.AgePercent)
public OnBirth ( MBParticle, PT ) : void
PT MBParticle,
리턴 void

OnDrawGizmos() 보호된 메소드

protected OnDrawGizmos ( ) : void
리턴 void

OnDrawGizmosSelected() 보호된 메소드

protected OnDrawGizmosSelected ( ) : void
리턴 void

OnLifetime() 공개 메소드

Change particle values over its lifetime
This is called each frame a particle exists. You should animate values using PT.AgePercent and PT.DeltaTime
public OnLifetime ( MBParticle, PT ) : bool
PT MBParticle,
리턴 bool

OnPlay() 공개 메소드

Called on each MBEmitter.Play()
Use this to initialize your parameter
public OnPlay ( ) : void
리턴 void

Reset() 공개 메소드

Restore default settings
Called by the user in the parameter editor
public Reset ( ) : void
리턴 void

Validate() 공개 메소드

Validate/Check/Limit fields and properties here
This is called by the Editor window after values were changed.
public Validate ( ) : void
리턴 void

프로퍼티 상세

AnimatedBirth 공개적으로 프로퍼티

Is this parameter animated over the emitter's duration?
Check this flag to determine if you need to handle curves or static values in OnBirth()
public bool AnimatedBirth
리턴 bool

AnimatedLife 공개적으로 프로퍼티

Does this parameter animate particle's over their lifetime?
If true OnLifeTime() will be called every frame the particle exists
public bool AnimatedLife
리턴 bool

DeathReason 공개적으로 프로퍼티

If this parameter causes the Particle to die (by returning false in OnLifetime()), set the reason here
public MBDeathReason DeathReason
리턴 MBDeathReason

GizmoColor1 공개적으로 프로퍼티

Color used by parameter visualization
public Color GizmoColor1
리턴 Color

GizmoColor2 공개적으로 프로퍼티

Color used by parameter visualization
public Color GizmoColor2
리턴 Color

Order 공개적으로 프로퍼티

Determines the order of execution
Parameters are applied in increasing Order. \sa \ref paramorder
public int Order
리턴 int