Inherits: Material < Resource < Reference < Object
A material for CanvasItems.
CanvasItemMaterials 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.
| BlendMode | blend_mode | 0 |
| LightMode | light_mode | 0 |
| int | particles_anim_h_frames | |
| bool | particles_anim_loop | |
| int | particles_anim_v_frames | |
| bool | particles_animation | false |
enum BlendMode:
enum LightMode:
| Default | 0 |
| Setter | set_blend_mode(value) |
| Getter | get_blend_mode() |
The manner in which a material's rendering is applied to underlying textures.
| Default | 0 |
| Setter | set_light_mode(value) |
| Getter | get_light_mode() |
The manner in which material reacts to lighting.
| Setter | set_particles_anim_h_frames(value) |
| Getter | get_particles_anim_h_frames() |
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 particles_animation is true.
| Setter | set_particles_anim_loop(value) |
| Getter | get_particles_anim_loop() |
If true, the particles animation will loop.
Note: This property is only used and visible in the editor if particles_animation is true.
| Setter | set_particles_anim_v_frames(value) |
| Getter | get_particles_anim_v_frames() |
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 particles_animation is true.
| Default | false |
| Setter | set_particles_animation(value) |
| Getter | get_particles_animation() |
If true, enable spritesheet-based animation features when assigned to Particles2D and CPUParticles2D nodes. The ParticlesMaterial.anim_speed or CPUParticles2D.anim_speed 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.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_canvasitemmaterial.html