PointLight2D
Positional 2D light source.
class PointLight2DCasts light in a 2D environment. This light’s shape is defined by a (usually grayscale) texture.
Positional 2D light source.
class PointLight2DCasts light in a 2D environment. This light’s shape is defined by a (usually grayscale) texture.
import SwiftGodotFramework to write Godot Game Extensions using the Swift Programming Language.
class Light2DCasts light in a 2D environment.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol EquatableA type that can be compared for value equality.
protocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
protocol Identifiable<ID>A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable : VariantStorableTypes that conform to VariantRepresentable can be stored directly in Variant with no conversion. These include all of the Variant types from Godot (for example GString, Rect, Plane), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.
protocol VariantStorableTypes that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
override class var godotClassName: StringName { get }final var height: Double { get set }The height of the light. Used with 2D normal mapping. The units are in pixels, e.g. if the height is 100, then it will illuminate an object 100 pixels away at a 45° angle to the plane.
final var offset: Vector2 { get set }The offset of the light’s texture.
final var texture: Texture2D? { get set }Texture2D used for the light’s appearance.
final var textureScale: Double { get set }The texture’s scale factor.