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.ParticleProjectionC Class Reference

Holds information for Source Projection. More...

Public Member Functions

void Initialize ()
 Initializes this ParticleProjection object. More...
 
void Construct (Texture2D image, Transform transform)
 Builds source data. More...
 
void UpdateSource ()
 Updates source matrix. More...
 
void Update ()
 Projects all particle sources (only call this if you need to set all particles at once). More...
 
void Update (int index)
 Projects a single particle source position. More...
 
Color32 GetColor (int index)
 Returns color at index of ParticleProjection. More...
 
Vector3 GetPosition (int index)
 Returns position at index of ParticleProjection. More...
 
Vector3 GetNormal (int index)
 Returns normal at index of ParticleProjection. More...
 
Transform GetParent (int index)
 Returns parent at index of ParticleProjection. More...
 
bool HasProjection (int index)
 Returns projection status at index of ParticleProjection. More...
 
ParticleProjectionC Clone ()
 Returns a copy of this ParticleProjectionC object. More...
 

Public Attributes

Texture2D projectionTexture
 The texture to project. More...
 
Vector2 projectionOrigin
 The origin offset in Units. More...
 
Transform projectionTransform
 Transform to project from. More...
 
Matrix4x4 projectionMatrix
 Matrix to project from. More...
 
Vector3 projectionPosition
 Position of projection source. More...
 
Vector3 projectionDirection
 Direction of projection source. More...
 
Quaternion projectionRotation
 Rotation of projection source. More...
 
float projectionDistance = 1000f
 The distance in Units the projection travels. More...
 
float projectionScale = .1f
 The scale of projection in Units. More...
 
LayerMask projectionMask = -1
 Layers seen by projection. More...
 
COLLISIONTYPEC collisionType
 Determines if 3d- or 2d colliders are seen by projection. More...
 
float minDepth = -1f
 Minimum depth of 2d colliders seen by projection. More...
 
float maxDepth = 1f
 Maximum depth of 2d colliders seen by projection. More...
 
float surfaceOffset = 0f
 The offset from projected surface. More...
 
bool liveUpdate = true
 Update this projector each frame. More...
 
bool hasRefreshed = false
 Is this projector finished refreshing? More...
 
bool initialized = false
 Is this projector ready? More...
 
int colorLength
 The length of color array. More...
 
int positionLength
 The length of position array. More...
 

Detailed Description

Holds information for Source Projection.

Member Function Documentation

ParticleProjectionC ParticlePlayground.ParticleProjectionC.Clone ( )

Returns a copy of this ParticleProjectionC object.

void ParticlePlayground.ParticleProjectionC.Construct ( Texture2D  image,
Transform  transform 
)

Builds source data.

Parameters
imageImage.
transformTransform.
Color32 ParticlePlayground.ParticleProjectionC.GetColor ( int  index)

Returns color at index of ParticleProjection.

Returns
The color.
Parameters
indexIndex.
Vector3 ParticlePlayground.ParticleProjectionC.GetNormal ( int  index)

Returns normal at index of ParticleProjection.

Returns
The normal.
Parameters
indexIndex.
Transform ParticlePlayground.ParticleProjectionC.GetParent ( int  index)

Returns parent at index of ParticleProjection.

Returns
The parent.
Parameters
indexIndex.
Vector3 ParticlePlayground.ParticleProjectionC.GetPosition ( int  index)

Returns position at index of ParticleProjection.

Returns
The position.
Parameters
indexIndex.
bool ParticlePlayground.ParticleProjectionC.HasProjection ( int  index)

Returns projection status at index of ParticleProjection.

Returns
true if this instance has projection the specified index; otherwise, false.
Parameters
indexIndex.
void ParticlePlayground.ParticleProjectionC.Initialize ( )

Initializes this ParticleProjection object.

void ParticlePlayground.ParticleProjectionC.Update ( )

Projects all particle sources (only call this if you need to set all particles at once).

void ParticlePlayground.ParticleProjectionC.Update ( int  index)

Projects a single particle source position.

Parameters
indexIndex.
void ParticlePlayground.ParticleProjectionC.UpdateSource ( )

Updates source matrix.

Member Data Documentation

COLLISIONTYPEC ParticlePlayground.ParticleProjectionC.collisionType

Determines if 3d- or 2d colliders are seen by projection.

int ParticlePlayground.ParticleProjectionC.colorLength

The length of color array.

bool ParticlePlayground.ParticleProjectionC.hasRefreshed = false

Is this projector finished refreshing?

bool ParticlePlayground.ParticleProjectionC.initialized = false

Is this projector ready?

bool ParticlePlayground.ParticleProjectionC.liveUpdate = true

Update this projector each frame.

float ParticlePlayground.ParticleProjectionC.maxDepth = 1f

Maximum depth of 2d colliders seen by projection.

float ParticlePlayground.ParticleProjectionC.minDepth = -1f

Minimum depth of 2d colliders seen by projection.

int ParticlePlayground.ParticleProjectionC.positionLength

The length of position array.

Vector3 ParticlePlayground.ParticleProjectionC.projectionDirection

Direction of projection source.

float ParticlePlayground.ParticleProjectionC.projectionDistance = 1000f

The distance in Units the projection travels.

LayerMask ParticlePlayground.ParticleProjectionC.projectionMask = -1

Layers seen by projection.

Matrix4x4 ParticlePlayground.ParticleProjectionC.projectionMatrix

Matrix to project from.

Vector2 ParticlePlayground.ParticleProjectionC.projectionOrigin

The origin offset in Units.

Vector3 ParticlePlayground.ParticleProjectionC.projectionPosition

Position of projection source.

Quaternion ParticlePlayground.ParticleProjectionC.projectionRotation

Rotation of projection source.

float ParticlePlayground.ParticleProjectionC.projectionScale = .1f

The scale of projection in Units.

Texture2D ParticlePlayground.ParticleProjectionC.projectionTexture

The texture to project.

Transform ParticlePlayground.ParticleProjectionC.projectionTransform

Transform to project from.

float ParticlePlayground.ParticleProjectionC.surfaceOffset = 0f

The offset from projected surface.


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