Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Documentation~/Operator-SkinnedMeshIndexCount.md
2024-08-26 23:07:20 +03:00

2.1 KiB

Get Skinned Mesh Index Count

Menu Path: Operator > Sampling > Get Skinned Mesh Index Count

Use the Get Skinned Mesh Index Count Operator to get the number of indices in a skinned mesh.

Operator settings

Property Type Description
Source Enum (Inspector) Specify the mesh type to input.

Operator properties

Input Type Description
Skinned Mesh Renderer Skinned Mesh Renderer Specify the Skinned Mesh Renderer component to input. This is a reference to a component in your scene. To assign a Skinned Mesh Renderer, create a Skinned Mesh Renderer property in the Blackboard and expose it.

This property only appears if you set Source to Skinned Mesh Renderer.
Output Type Description
Count UInt The number of indices in the mesh. If the mesh uses default triangle topology, you can divide the value by three to get the number of triangles.

Limitations

If the mesh isn't readable, this Operator returns 0. For information on how to make a mesh readable in the Editor, refer to the Import Settings for a model file.