XRServer

    Server for AR and VR features.

    XRServer.swift:20
    class XRServer

    The AR/VR server is the heart of our Advanced and Virtual Reality solution and handles all the processing.

    This object emits the following signals:

    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.

    Types

    Type members

    Instance members

    • var interfaceAdded: Signal1

      Emitted when a new interface has been added.

    • var interfaceRemoved: Signal2

      Emitted when an interface is removed.

    • var trackerAdded: Signal3

      Emitted when a new tracker has been added. If you don’t use a fixed number of controllers or if you’re using XRAnchor3Ds for an AR solution, it is important to react to this signal to add the appropriate XRController3D or XRAnchor3D nodes related to this new tracker.

    • var trackerRemoved: Signal5

      Emitted when a tracker is removed. You should remove any XRController3D or XRAnchor3D points if applicable. This is not mandatory, the nodes simply become inactive and will be made active again when a new tracker becomes available (i.e. a new controller is switched on that takes the place of the previous one).

    • var trackerUpdated: Signal4

      Emitted when an existing tracker has been updated. This can happen if the user switches controllers.