Astra Unity 2.6.6
Astra Unity Plugin
Astra.Asset.DecalProjection Class Reference
Inheritance diagram for Astra.Asset.DecalProjection:

Public Member Functions

void Recalculate ()
 
void UpdateMaterial ()
 

Public Attributes

Transform ProjectionSrc = null
 The object that is looking towards our projection surface (the projector object)
 
Vector3 ProjectionSrcOffset = Vector3.zero
 A translational offset applied to the ProjectionSrc before "look at" is triggered
 
Vector3 ProjectionScale = Vector3.one
 
bool ProjectionScaleUseSrc = false
 If true uses the source transform's localScale instead of ProjectionScale
 
bool LookTowardsDst = true
 Set to false if you manually calculate (or do not wish to rotate) the directional vector of the projector
 
Transform ProjectionDst = null
 Which object is "receiving" the projection onto it
 
Vector3 ProjectionDstOffset = Vector3.zero
 
Material ProjectionDstMaterial = null
 Which material are we syncing values into
 
string MaterialPropertyNameMatrix = "_ProjMatrix"
 
string MaterialPropertyNameDirection = "_ProjDirection"
 
string MaterialPropertyNameScale = "_ProjScale"
 
bool RecalcEveryFrame = true
 How frequently should we recalculate our value
 
Vector4 ProjectionDirection = Vector3.forward
 
Matrix4x4 ProjectionMatrix = Matrix4x4.identity
 

Protected Member Functions

void Start ()
 
void Update ()
 
void OnDrawGizmosSelected ()
 

Protected Attributes

Matrix4x4 orthoMatrix = Matrix4x4.identity
 

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