MeshLibrary

Library of meshes.

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

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

clear
void clear()

Clear the library.

createItem
void createItem(long id)

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

findItemByName
long findItemByName(StringArg0 name)
getItemList
PoolIntArray getItemList()

Return the list of items.

getItemMesh
Ref!Mesh getItemMesh(long id)

Return the mesh of the item.

getItemName
String getItemName(long id)

Return the name of the item.

getItemNavmesh
Ref!NavigationMesh getItemNavmesh(long id)
getItemPreview
Ref!Texture getItemPreview(long id)
getItemShapes
Array getItemShapes(long id)
getLastUnusedItemId
long getLastUnusedItemId()

Get an unused id for a new item.

opAssign
MeshLibrary opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(MeshLibrary other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
removeItem
void removeItem(long id)

Remove the item.

setItemMesh
void setItemMesh(long id, Mesh mesh)

Set the mesh of the item.

setItemName
void setItemName(long id, StringArg1 name)

Set the name of the item.

setItemNavmesh
void setItemNavmesh(long id, NavigationMesh navmesh)
setItemPreview
void setItemPreview(long id, Texture texture)
setItemShapes
void setItemShapes(long id, Array shapes)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
MeshLibrary _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta