Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Documentation~/Operator-SkinnedMeshVertexCount.md

26 lines
1.9 KiB
Markdown
Raw Normal View History

2024-08-26 13:07:20 -07:00
# Get Skinned Mesh Vertex Count
Menu Path: **Operator > Sampling > Get Skinned Mesh Vertex Count**
Use the **Get Skinned Mesh Vertex Count** Operator to get the number of vertices in a skinned mesh.
## Operator settings
| **Property** | **Type** | **Description** |
| ------------ | -------- | ------------------------------------------------------------ |
| **Source** | Enum | **(Inspector)** Specify the mesh type to input.<ul><li>**Mesh**: Input a mesh asset. The Operator becomes a [Get Mesh Vertex Count](Operator-MeshVertexCount.md) Operator.</li><li>**Skinned Mesh Renderer**: Input a [Skinned Mesh Renderer](https://docs.unity3d.com/Manual/class-SkinnedMeshRenderer.html) component. The Operator becomes a [Get Skinned Mesh Vertex Count](Operator-SkinnedMeshVertexCount.md) Operator.</li></ul> |
### 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](Blackboard.md) and expose it.<br/><br/>This property only appears if you set **Source** to **Skinned Mesh Renderer**. |
| **Output** | **Type** | **Description** |
| ---------- | -------- | --------------------------------------- |
| **count** | UInt | The number of vertices in the mesh. |
## Limitations
If the mesh isn't [readable](https://docs.unity3d.com/ScriptReference/Mesh-isReadable.html), 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](https://docs.unity3d.com/Manual/FBXImporter-Model.html).