Object

public struct Object : Equatable, ObjectProtocol, MutablePropertied

Represents a Tiled object (which are contained inside Object Layers). All objects share some common attributes (e.g. their position inside their containing Layer).

  • The kind of object, together with attached data specific to that kind of object

    See more

    Declaration

    Swift

    public enum Kind : Equatable
  • id

    An identifier for an Object that is unique with the Map

    Declaration

    Swift

    public let id: Int
  • The name of the Object, or an empty String

    Declaration

    Swift

    public let name: String
  • The type of the object

    Declaration

    Swift

    public let type: String?
  • true if the Object should be rendered

    Declaration

    Swift

    public let visible: Bool
  • The location of the Object relative to its containing Layer

    Declaration

    Swift

    public let position: Position
  • User specified properties of the Object

    Declaration

    Swift

    public var properties: Properties
  • The type of Object together with any type specific attributes

    Declaration

    Swift

    public let kind: Kind