CubeMesh

Generate an axis-aligned cuboid PrimitiveMesh.

The cube's UV layout is arranged in a 3×2 layout that allows texturing each face individually. To apply the same texture on all faces, change the material's UV property to Vector3(3, 2, 1). Note: When using a large textured CubeMesh (e.g. as a floor), you may stumble upon UV jittering issues depending on the camera angle. To solve this, increase subdivideDepth, subdivideHeight and subdivideWidth until you no longer notice UV jittering.

Members

Aliases

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

Functions

getSize
Vector3 getSize()
getSubdivideDepth
long getSubdivideDepth()
getSubdivideHeight
long getSubdivideHeight()
getSubdivideWidth
long getSubdivideWidth()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(CubeMesh other)
opEquals
bool opEquals(typeof(null) n)
setSize
void setSize(Vector3 size)
setSubdivideDepth
void setSubdivideDepth(long divisions)
setSubdivideHeight
void setSubdivideHeight(long divisions)
setSubdivideWidth
void setSubdivideWidth(long subdivide)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

size
Vector3 size [@property getter]
Vector3 size [@property setter]

Size of the cuboid mesh.

subdivideDepth
long subdivideDepth [@property getter]
long subdivideDepth [@property setter]

Number of extra edge loops inserted along the Z axis.

subdivideHeight
long subdivideHeight [@property getter]
long subdivideHeight [@property setter]

Number of extra edge loops inserted along the Y axis.

subdivideWidth
long subdivideWidth [@property getter]
long subdivideWidth [@property setter]

Number of extra edge loops inserted along the X axis.

Static functions

_new
CubeMesh _new()

Construct a new instance of CubeMesh. Note: use memnew!CubeMesh 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