MeshInstance2D

Node used for displaying a Mesh in 2D.

Can be constructed from an existing Sprite via a tool in the editor toolbar. Select "Sprite" then "Convert to Mesh2D", select settings in popup and press "Create Mesh2D".

Members

Aliases

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

Functions

getMesh
Ref!Mesh getMesh()
getNormalMap
Ref!Texture getNormalMap()
getTexture
Ref!Texture getTexture()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(MeshInstance2D other)
opEquals
bool opEquals(typeof(null) n)
setMesh
void setMesh(Mesh mesh)
setNormalMap
void setNormalMap(Texture normal_map)
setTexture
void setTexture(Texture texture)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

mesh
Mesh mesh [@property getter]
Mesh mesh [@property setter]

The Mesh that will be drawn by the MeshInstance2D.

normalMap
Texture normalMap [@property getter]
Texture normalMap [@property setter]

The normal map that will be used if using the default CanvasItemMaterial. Note: Godot expects the normal map to use X+, Y-, and Z+ coordinates. See url=http://wiki.polycount.com/wiki/Normal_Map_Technical_Details#Common_Swizzle_Coordinatesthis page/url for a comparison of normal map coordinates expected by popular engines.

texture
Texture texture [@property getter]
Texture texture [@property setter]

The Texture that will be used if using the default CanvasItemMaterial. Can be accessed as TEXTURE in CanvasItem shader.

Static functions

_new
MeshInstance2D _new()

Construct a new instance of MeshInstance2D. Note: use memnew!MeshInstance2D instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
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
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(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