AnimatedTexture

    Proxy texture for simple frame-based animations.

    AnimatedTexture.swift:22
    class AnimatedTexture

    AnimatedTexture is a resource format for frame-based animations, where multiple textures can be chained automatically with a predefined delay for each frame. Unlike AnimationPlayer or AnimatedSprite2D, it isn’t a Node, but has the advantage of being usable anywhere a Texture2D resource can be used, e.g. in a TileSet.

    The playback of the animation is controlled by the speedScale property, as well as each frame’s duration (see setFrameDuration(frame:duration:)). The animation loops, i.e. it will restart at frame 0 automatically after playing the last frame.

    AnimatedTexture currently requires all frame textures to have the same size, otherwise the bigger ones will be cropped to match the smallest one.

    Deprecated. This class is deprecated, and might be removed in a future release.

    Superclasses

    Citizens in SwiftGodot

    Conformances

    • protocol CustomStringConvertible

      A type with a customized textual representation.

    • 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 Identifiable<ID>

      A class of types whose instances hold the value of an entity with stable identity.

    • protocol VariantRepresentable

      Types 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 VariantStorable

      Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.

    Type members

    Instance members