VertExmotion is the main class. require MeshFilter or SkinMeshRenderer
§ AddSensor() [1/2]
Add a sensor to the list
- Parameters
-
§ AddSensor() [2/2]
Add a linked sensor to the list
- Parameters
-
§ ApplyMotionData()
void Kalagaan.VertExmotionBase.ApplyMotionData |
( |
| ) |
|
§ ClassExists()
static bool Kalagaan.VertExmotionBase.ClassExists |
( |
string |
className | ) |
|
|
static |
ClassExists.
- Returns
true
, if class Exist, false
otherwise.
- Parameters
-
§ ClassType()
static System.Type Kalagaan.VertExmotionBase.ClassType |
( |
string |
className | ) |
|
|
static |
§ CleanShaderProperties()
void Kalagaan.VertExmotionBase.CleanShaderProperties |
( |
| ) |
|
§ CreateSensor() [1/2]
§ CreateSensor() [2/2]
§ DisableMotion()
void Kalagaan.VertExmotionBase.DisableMotion |
( |
| ) |
|
Clear all motion data.
Send all parameters to shader.
§ GetMesh()
Mesh Kalagaan.VertExmotionBase.GetMesh |
( |
| ) |
|
§ GetScaleFactor()
static float Kalagaan.VertExmotionBase.GetScaleFactor |
( |
Transform |
t | ) |
|
|
static |
§ IgnoreCollision()
void Kalagaan.VertExmotionBase.IgnoreCollision |
( |
Collider |
collider, |
|
|
bool |
ignore |
|
) |
| |
Ignore collider from colliding with sensors' collision zones
- Parameters
-
§ IgnoreFrame()
void Kalagaan.VertExmotionBase.IgnoreFrame |
( |
| ) |
|
Ignore current frame motion.
§ InitMesh()
void Kalagaan.VertExmotionBase.InitMesh |
( |
| ) |
|
Check render on current gameObject.
Initialise m_mesh reference.
§ InitVertices()
void Kalagaan.VertExmotionBase.InitVertices |
( |
| ) |
|
Check vertex color array.
Initialise vertices weights.
§ LateUpdate()
void Kalagaan.VertExmotionBase.LateUpdate |
( |
| ) |
|
§ Link() [1/2]
Link a sensor to the previous in the list
- Parameters
-
§ Link() [2/2]
void Kalagaan.VertExmotionBase.Link |
( |
int |
sensorId | ) |
|
Link a sensor to the previous in the list
- Parameters
-
§ RemoveSensor()
§ ResetMotion()
void Kalagaan.VertExmotionBase.ResetMotion |
( |
| ) |
|
§ SetMesh()
void Kalagaan.VertExmotionBase.SetMesh |
( |
Mesh |
m | ) |
|
§ SetTimeScale()
void Kalagaan.VertExmotionBase.SetTimeScale |
( |
float |
timeScale | ) |
|
Sets the time scale on each sensor.
- Parameters
-
§ UnLink() [1/2]
Unlink a sensor
- Parameters
-
§ UnLink() [2/2]
void Kalagaan.VertExmotionBase.UnLink |
( |
int |
sensorId | ) |
|
Unlink a sensor
- Parameters
-
§ Update()
void Kalagaan.VertExmotionBase.Update |
( |
| ) |
|
§ UpdateShaders()
void Kalagaan.VertExmotionBase.UpdateShaders |
( |
| ) |
|
§ className
string Kalagaan.VertExmotionBase.className = "VertExmotion" |
§ m_dontCheckShaderCompatibility
bool Kalagaan.VertExmotionBase.m_dontCheckShaderCompatibility = false |
§ m_editMode
bool Kalagaan.VertExmotionBase.m_editMode = true |
§ m_editorParams
§ m_executeOnLateUpdate
bool Kalagaan.VertExmotionBase.m_executeOnLateUpdate = true |
§ m_hideUnselectedMaterialID
bool Kalagaan.VertExmotionBase.m_hideUnselectedMaterialID = false |
§ m_initialShaders
Shader [] Kalagaan.VertExmotionBase.m_initialShaders |
editor use only used to switch current shader by editor shader
§ m_matPropBlk
MaterialPropertyBlock Kalagaan.VertExmotionBase.m_matPropBlk |
§ m_mesh
Mesh Kalagaan.VertExmotionBase.m_mesh |
mesh reference meshFilter or SkinMeshRenderer
§ m_meshCopy
bool Kalagaan.VertExmotionBase.m_meshCopy = false |
§ m_normalCorrection
float Kalagaan.VertExmotionBase.m_normalCorrection = 0f |
§ m_normalSmooth
float Kalagaan.VertExmotionBase.m_normalSmooth = .2f |
§ m_params
§ m_sensorsLinks
List<float> Kalagaan.VertExmotionBase.m_sensorsLinks = new List<float>() |
§ m_shaderAxisScaleX
Vector4 [] Kalagaan.VertExmotionBase.m_shaderAxisScaleX |
§ m_shaderAxisScaleY
Vector4 [] Kalagaan.VertExmotionBase.m_shaderAxisScaleY |
§ m_shaderAxisScaleZ
Vector4 [] Kalagaan.VertExmotionBase.m_shaderAxisScaleZ |
§ m_shaderLink
float [] Kalagaan.VertExmotionBase.m_shaderLink |
§ m_shaderMotionAxis
Vector4 [] Kalagaan.VertExmotionBase.m_shaderMotionAxis |
§ m_shaderMotionDirection
Vector4 [] Kalagaan.VertExmotionBase.m_shaderMotionDirection |
§ m_shaderParamNames
Dictionary<string,List<string> > Kalagaan.VertExmotionBase.m_shaderParamNames = new Dictionary<string, List<string>> () |
Shader parameters names dictionnary disable string allocation for shader array name
§ m_shaderRCT
Vector4 [] Kalagaan.VertExmotionBase.m_shaderRCT |
§ m_shaderSensorPos
Vector4 [] Kalagaan.VertExmotionBase.m_shaderSensorPos |
§ m_shaderSpeed
Vector4 [] Kalagaan.VertExmotionBase.m_shaderSpeed |
§ m_shaderSquashStrech
Vector4 [] Kalagaan.VertExmotionBase.m_shaderSquashStrech |
§ m_shareMesh
bool Kalagaan.VertExmotionBase.m_shareMesh = false |
shared material WIP shared mesh WIP
§ m_showEditorPanel
bool Kalagaan.VertExmotionBase.m_showEditorPanel = true |
§ m_showMaterialIDWireFrame
bool Kalagaan.VertExmotionBase.m_showMaterialIDWireFrame = false |
§ m_version
string Kalagaan.VertExmotionBase.m_version = "1.8.6" |
§ m_vertexColors
Color32 [] Kalagaan.VertExmotionBase.m_vertexColors |
vertices weights
0->static 1->softboby
only green parameter is used
todo : add 3 other weight layers using RBA channels
§ m_VertExmotionSensors
Sensors list
sensor parameters are sent to shader each Update
§ MAX_SENSOR
int Kalagaan.VertExmotionBase.MAX_SENSOR = 20 |
|
static |
number of sensor available by material limit of 4 for shader model 2 (mobile compatibility)
§ version
string Kalagaan.VertExmotionBase.version = "1.8.6" |
|
static |
§ renderer
new Renderer Kalagaan.VertExmotionBase.renderer |
|
get |
§ Sensors
The documentation for this class was generated from the following file: