Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Class SerializedMesh

    Serializable representation of a mesh. Used to store simulation mesh data without keeping mesh references in game files.

    Inheritance
    object
    SerializedMesh
    Namespace: NWH.DWP2.WaterObjects
    Assembly: NWH.DWP2.dll
    Syntax
    [Serializable]
    public class SerializedMesh

    Fields

    | Edit this page View Source

    triangles

    Triangle indices of the mesh.

    Declaration
    [SerializeField]
    public int[] triangles
    Field Value
    Type Description
    int[]
    | Edit this page View Source

    vertices

    Vertex positions of the mesh.

    Declaration
    [SerializeField]
    public Vector3[] vertices
    Field Value
    Type Description
    Vector3[]

    Methods

    | Edit this page View Source

    Deserialize()

    Deserializes the stored data back into a Mesh object.

    Declaration
    public Mesh Deserialize()
    Returns
    Type Description
    Mesh

    Reconstructed mesh or null if data is invalid.

    | Edit this page View Source

    Serialize(Mesh)

    Serializes a mesh into vertex and triangle arrays.

    Declaration
    public void Serialize(Mesh mesh)
    Parameters
    Type Name Description
    Mesh mesh

    Mesh to serialize.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics