SkinMeshRenderer
Class | Type | Name | Interface Description |
---|---|---|---|
MeshRenderer.Renderer | Variables | mesh: Mesh | Mesh corresponding to the Renderer |
Variables | mainMaterial: Material | null | The first material of the Renderer | |
Variables | mainPass (readonly): Pass | null | The first Pass of the first material of the Renderer | |
Functions | getBoundingBox(): AABB | Bounding box of the Renderer |
Examples
mesh: Mesh
const mesh = meshRenderer.mesh;
mainMaterial: Material | null
const material = meshRenderer.mainMaterial();
mainPass (readonly): Pass | null
const pass = meshRenderer.mainPass();
getBoundingBox(): AABB
const box = meshRenderer.getBoundingBox();