Library of meshes.
    public class MeshLibrary : Resource

Library of meshes. Contains a list of Mesh resources, each with name and ID. Useful for GridMap or painting Terrain.

Inheritance Chain


    public MeshLibrary()


    public void Clear()

Clear the library.

    public void CreateItem(int id)

Create a new item in the library, supplied an id.

    public int FindItemByName(string name)

    public int[] GetItemList()

Return the list of items.

    public Mesh GetItemMesh(int id)

Return the mesh of the item.

    public string GetItemName(int id)

Return the name of the item.

    public NavigationMesh GetItemNavmesh(int id)

    public Texture GetItemPreview(int id)

    public object[] GetItemShapes(int id)

    public int GetLastUnusedItemId()

Get an unused id for a new item.

    public void RemoveItem(int id)

Remove the item.

    public void SetItemMesh(int id, Mesh mesh)

Set the mesh of the item.

    public void SetItemName(int id, string name)

Set the name of the item.

    public void SetItemNavmesh(int id, NavigationMesh navmesh)

    public void SetItemPreview(int id, Texture texture)

    public void SetItemShapes(int id, object[] shapes)