C# Class FluidParticle, UnityFluid2D

Inheritance: MonoBehaviour
Datei anzeigen 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_oe property

public Fluid2D, Fluid2D
return Fluid2D,

KernelShader public_oe property

public Shader KernelShader
return Shader

LifeTimeMax public_oe property

public float LifeTimeMax
return float

LifeTimeMin public_oe property

public float LifeTimeMin
return float

ParticleColor public_oe property

public Color ParticleColor
return Color

ParticleNum public_oe property

public int ParticleNum
return int

RandomSeed public_oe property

public float RandomSeed
return float

RenderMat public_oe property

public Material RenderMat
return Material