Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ModelImporterNormalSmoothingSource

Source of smoothing information for calculation of normals in ModelImporter.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Enum
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public enum ModelImporterNormalSmoothingSource

Remarks

Describes how Unity calculates whether edges have hard or smooth normals (from smoothing groups or the angle between faces). By default, Unity uses smoothing groups if they are present. If not, it uses angles.

Fields

Value

Description

FromAngleUse the angle between adjacent faces to determine if an edge is smooth or hard.
FromSmoothingGroupsUse smoothing groups to determine which edges are smooth and which are hard.
NoneDo not create hard edges.
PreferSmoothingGroupsUse smoothing groups if they are present in the Model file, otherwise use angle (default).