Enumerationmigueldeicaza.swiftgodot 0.45.0SwiftGodot
LightMode
CanvasItemMaterial.swift:38enum LightMode
Cases
case normal
Render the material using both light and non-light sensitive material properties.
case unshaded
Render the material as if there were no light.
case lightOnly
Render the material as if there were only light.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (8) members.
Types
Type members
Instance members
var blendMode: CanvasItemMaterial.BlendMode
The manner in which a material’s rendering is applied to underlying textures.
var lightMode: CanvasItemMaterial.LightMode
The manner in which material reacts to lighting.
var particlesAnimHFrames: Int32
The number of columns in the spritesheet assigned as
Texture2D
for aGPUParticles2D
orCPUParticles2D
.var particlesAnimLoop: Bool
If
true
, the particles animation will loop.var particlesAnimVFrames: Int32
The number of rows in the spritesheet assigned as
Texture2D
for aGPUParticles2D
orCPUParticles2D
.var particlesAnimation: Bool
If
true
, enable spritesheet-based animation features when assigned toGPUParticles2D
andCPUParticles2D
nodes. TheanimSpeedMax
oranimSpeedMax
should also be set to a positive value for the animation to play.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.