Particle Playground - Script Reference  3.0.1
Framework for controlling particles in the Unity Engine.
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
ParticlePlayground.PlaygroundBrushC Class Reference

Holds information about a brush used for source painting. More...

Public Member Functions

void SetTexture (Texture2D newTexture)
 Sets the texture of this brush. More...
 
void Construct ()
 Caches the color information from this brush. More...
 
Color32 GetColor (int index)
 Returns color at index of Brush. More...
 
void SetColor (Color32 c, int index)
 Sets color at index of Brush. More...
 
PlaygroundBrushC Clone ()
 Clones this PlaygroundBrush. More...
 

Public Attributes

Texture2D texture
 The texture to construct this Brush from. More...
 
float scale = 1f
 The scale of this Brush (measured in Units). More...
 
BRUSHDETAILC detail = BRUSHDETAILC.High
 The detail level of this brush. More...
 
float distance = 10000
 The distance the brush reaches. More...
 
Color32[] color
 Color data of this brush. More...
 
int colorLength
 The length of color array. More...
 

Detailed Description

Holds information about a brush used for source painting.

Member Function Documentation

PlaygroundBrushC ParticlePlayground.PlaygroundBrushC.Clone ( )

Clones this PlaygroundBrush.

void ParticlePlayground.PlaygroundBrushC.Construct ( )

Caches the color information from this brush.

Color32 ParticlePlayground.PlaygroundBrushC.GetColor ( int  index)

Returns color at index of Brush.

Returns
The color.
Parameters
indexIndex.
void ParticlePlayground.PlaygroundBrushC.SetColor ( Color32  c,
int  index 
)

Sets color at index of Brush.

Parameters
cColor.
indexIndex.
void ParticlePlayground.PlaygroundBrushC.SetTexture ( Texture2D  newTexture)

Sets the texture of this brush.

Parameters
newTextureNew texture.

Member Data Documentation

Color32 [] ParticlePlayground.PlaygroundBrushC.color

Color data of this brush.

int ParticlePlayground.PlaygroundBrushC.colorLength

The length of color array.

BRUSHDETAILC ParticlePlayground.PlaygroundBrushC.detail = BRUSHDETAILC.High

The detail level of this brush.

float ParticlePlayground.PlaygroundBrushC.distance = 10000

The distance the brush reaches.

float ParticlePlayground.PlaygroundBrushC.scale = 1f

The scale of this Brush (measured in Units).

Texture2D ParticlePlayground.PlaygroundBrushC.texture

The texture to construct this Brush from.


The documentation for this class was generated from the following file: