C# Class FluidParticle, UnityFluid2D

Inheritance: MonoBehaviour
Show file Open project: hiroakioishi/UnityFluid2D Class Usage Examples

Public Properties

Property Type Description
Fluid2D Fluid2D,
KernelShader Shader
LifeTimeMax float
LifeTimeMin float
ParticleColor Color
ParticleNum int
RandomSeed float
RenderMat Material

Public Methods

Method Description
OnGUI ( ) : void
Render ( ) : void
Setup ( ) : void
Start ( ) : void
Step ( ) : void
Update ( ) : void
_createBuffer ( RenderTexture &rt_, int bufferWidth_, int bufferHeight_ ) : void
_createBuffers ( ) : void
_createMaterial ( Material &mat_, Shader shader_ ) : void
_createMaterials ( ) : void
_createMesh ( ) : void
_destroyBuffer ( RenderTexture &buffer_ ) : void
_destroyBuffers ( ) : void
_destroyMaterial ( Material &mat_ ) : void
_destroyMaterials ( ) : void
_resetBuffer ( RenderTexture &rt_ ) : void
_resetBuffers ( ) : void
_swapBuffer ( RenderTexture buffer_ ) : void

Method Details

OnGUI() public method

public OnGUI ( ) : void
return void

Render() public method

public Render ( ) : void
return void

Setup() public method

public Setup ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Step() public method

public Step ( ) : void
return void

Update() public method

public Update ( ) : void
return void

_createBuffer() public method

public _createBuffer ( RenderTexture &rt_, int bufferWidth_, int bufferHeight_ ) : void
rt_ RenderTexture
bufferWidth_ int
bufferHeight_ int
return void

_createBuffers() public method

public _createBuffers ( ) : void
return void

_createMaterial() public method

public _createMaterial ( Material &mat_, Shader shader_ ) : void
mat_ Material
shader_ Shader
return void

_createMaterials() public method

public _createMaterials ( ) : void
return void

_createMesh() public method

public _createMesh ( ) : void
return void

_destroyBuffer() public method

public _destroyBuffer ( RenderTexture &buffer_ ) : void
buffer_ RenderTexture
return void

_destroyBuffers() public method

public _destroyBuffers ( ) : void
return void

_destroyMaterial() public method

public _destroyMaterial ( Material &mat_ ) : void
mat_ Material
return void

_destroyMaterials() public method

public _destroyMaterials ( ) : void
return void

_resetBuffer() public method

public _resetBuffer ( RenderTexture &rt_ ) : void
rt_ RenderTexture
return void

_resetBuffers() public method

public _resetBuffers ( ) : void
return void

_swapBuffer() public method

public _swapBuffer ( RenderTexture buffer_ ) : void
buffer_ RenderTexture
return void

Property Details

Fluid2D public property

public Fluid2D, Fluid2D
return Fluid2D,

KernelShader public property

public Shader KernelShader
return Shader

LifeTimeMax public property

public float LifeTimeMax
return float

LifeTimeMin public property

public float LifeTimeMin
return float

ParticleColor public property

public Color ParticleColor
return Color

ParticleNum public property

public int ParticleNum
return int

RandomSeed public property

public float RandomSeed
return float

RenderMat public property

public Material RenderMat
return Material