MeshSmoother Class

Definition

Component which can be used to automatically generate smoothed normals on a mesh and pack those normals into a UV set. Smoothed normals can be used for a variety of effects including extruding disjoint meshes along a vertex normal. This behavior is designed to be used in conjunction with the MRTK/Standard shader which assumes smoothed normals are packed into the 3rd UV set.

C++
public ref class MeshSmoother : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
MeshSmoother
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.HelpURLAttribute UnityEngine.RequireComponentAttribute

Constructors

Methods

SmoothNormals()

Performs normal smoothing on the current mesh filter associated with this component synchronously. This method will not try and re-smooth meshes which have already been smoothed.

SmoothNormalsAsync()

Performs normal smoothing on the current mesh filter associated with this component asynchronously. This method will not try and re-smooth meshes which have already been smoothed.

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0