Curvy  4.1.0
CGMeshResource Class Reference
+ Inheritance diagram for CGMeshResource:
+ Collaboration diagram for CGMeshResource:

Detailed Description

Mesh Resource Component used by Curvy Generator

Properties

Collider Collider [get]
 
MeshRenderer Renderer [get]
 

Public Member Functions

bool ColliderMatches (CGColliderEnum type)
 
void OnAfterPop ()
 
void OnBeforePush ()
 
Mesh Prepare ()
 
void RemoveCollider ()
 
bool UpdateCollider (CGColliderEnum mode, bool convex, PhysicMaterial material, MeshColliderCookingOptions meshCookingOptions=MeshColliderCookingOptions.WeldColocatedVertices|MeshColliderCookingOptions.CookForFasterSimulation|MeshColliderCookingOptions.EnableMeshCleaning)
 Updates the collider if existing, and create a new one if not. More...
 

Member Function Documentation

bool ColliderMatches ( CGColliderEnum  type)
void OnAfterPop ( )
void OnBeforePush ( )
Mesh Prepare ( )
void RemoveCollider ( )
bool UpdateCollider ( CGColliderEnum  mode,
bool  convex,
PhysicMaterial  material,
MeshColliderCookingOptions  meshCookingOptions = MeshColliderCookingOptions.WeldColocatedVertices | MeshColliderCookingOptions.CookForFasterSimulation | MeshColliderCookingOptions.EnableMeshCleaning 
)

Updates the collider if existing, and create a new one if not.

Parameters
modeThe collider's type
convexUsed only when mode is CGColliderEnum.Mesh
materialThe collider's material
meshCookingOptionsUsed only when mode is CGColliderEnum.Mesh
Returns

Property Documentation

Collider Collider
get
MeshRenderer Renderer
get

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