docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Normals

    Provides functions to help calculate normals and tangents for a mesh.

    Inheritance
    object
    Normals
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.ProBuilder
    Assembly: Unity.ProBuilder.dll
    Syntax
    public static class Normals

    Methods

    CalculateNormals(ProBuilderMesh)

    Calculates the normals for a mesh, taking into account smoothing groups.

    Declaration
    public static void CalculateNormals(ProBuilderMesh mesh)
    Parameters
    Type Name Description
    ProBuilderMesh mesh

    The mesh to calculate normals for.

    CalculateTangents(ProBuilderMesh)

    Calculates the tangents for a mesh.

    Declaration
    public static void CalculateTangents(ProBuilderMesh mesh)
    Parameters
    Type Name Description
    ProBuilderMesh mesh

    The mesh to calculate tangents for.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)