docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetMeshData

    GetMeshData(IList<GameObject>)

    Collect all source data (Renderers, meshs, materials)

    Declaration
    public static MeshData GetMeshData(this IList<GameObject> input)
    Parameters
    Type Name Description
    IList<GameObject> input

    Gameobjects that will be used

    Returns
    Type Description
    MeshData

    GetMeshData(GameObject, out Renderer, out Mesh, out Material[])

    Collect all source data (Renderers, meshs, materials)

    Declaration
    public static bool GetMeshData(this GameObject gameObject, out Renderer renderer, out Mesh mesh, out Material[] materials)
    Parameters
    Type Name Description
    GameObject gameObject

    Gameobjects that will be used

    Renderer renderer

    Collection to which renderers found will be stored

    Mesh mesh

    Collection to which meshs found will be stored

    Material[] materials

    Collection to which materials found will be stored

    Returns
    Type Description
    bool
    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)