Click or drag to resize

CanvasItemMaterial Properties

The CanvasItemMaterial type exposes the following members.

Properties
  NameDescription
Public propertyBlendMode

The manner in which a material's rendering is applied to underlying textures.

Public propertyDynamicObject
Gets a new DynamicGodotObject associated with this instance.
(Inherited from Object.)
Public propertyLightMode

The manner in which material reacts to lighting.

Public propertyNativeInstance (Inherited from Object.)
Public propertyNextPass

Sets the Material to be used for the next pass. This renders the object again using a different material.

Note: only applies to SpatialMaterials and ShaderMaterials with type "Spatial".

(Inherited from Material.)
Public propertyParticlesAnimation

If true, enable spritesheet-based animation features when assigned to Particles2D and CPUParticles2D nodes. The AnimSpeed or AnimSpeed 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.

Public propertyParticlesAnimHFrames

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.

Public propertyParticlesAnimLoop

If true, the particles animation will loop.

Note: This property is only used and visible in the editor if ParticlesAnimation is true.

Public propertyParticlesAnimVFrames

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.

Public propertyRenderPriority

Sets the render priority for transparent objects in 3D scenes. Higher priority objects will be sorted in front of lower priority objects.

Note: this only applies to sorting of transparent objects. This will not impact how transparent objects are sorted relative to opaque objects. This is because opaque objects are not sorted, while transparent objects are sorted from back to front (subject to priority).

(Inherited from Material.)
Public propertyResourceLocalToScene

If true, the resource will be made unique in each instance of its local scene. It can thus be modified in a scene instance without impacting other instances of that same scene.

(Inherited from Resource.)
Public propertyResourceName

The name of the resource. This is an optional identifier. If ResourceName is not empty, its value will be displayed to represent the current resource in the editor inspector. For built-in scripts, the ResourceName will be displayed as the tab name in the script editor.

(Inherited from Resource.)
Public propertyResourcePath

The path to the resource. In case it has its own file, it will return its filepath. If it's tied to the scene, it will return the scene's path, followed by the resource's index.

(Inherited from Resource.)
Top
See Also