Struct CanvasItemMaterial
A material for CanvasItem
s.
struct CanvasItemMaterial
;
CanvasItemMaterial
s provide a means of modifying the textures associated with a CanvasItem. They specialize in describing blend and lighting behaviors for textures. Use a ShaderMaterial
to more fully customize a material's interactions with a CanvasItem
.
Properties
Name | Type | Description |
---|---|---|
blendMode [get, set]
|
CanvasItemMaterial | The manner in which a material's rendering is applied to underlying textures. |
lightMode [get, set]
|
CanvasItemMaterial | The manner in which material reacts to lighting. |
particlesAnimation [get, set]
|
bool | If true , enable spritesheet-based animation features when assigned to Particles2D and CPUParticles2D nodes. The ParticlesMaterial or CPUParticles2D should also be set to a positive value for the animation to play.
This property (and other particles_anim_* properties that depend on it) has no effect on other types of nodes.
|
particlesAnimHFrames [get, set]
|
long | The number of columns in the spritesheet assigned as Texture for a Particles2D or CPUParticles2D .
Note: This property is only used and visible in the editor if particlesAnimation is true .
|
particlesAnimLoop [get, set]
|
bool | If true , the particles animation will loop.
Note: This property is only used and visible in the editor if particlesAnimation is true .
|
particlesAnimVFrames [get, set]
|
long | The number of rows in the spritesheet assigned as Texture for a Particles2D or CPUParticles2D .
Note: This property is only used and visible in the editor if particlesAnimation is true .
|
Methods
Enums
Name | Description |
---|---|
BlendMode
|
|
Constants
|
|
LightMode
|