RTSDK
    Preparing search index...

    Class Scene

    Create an instance of Scene class with a given scene id and optional attributes and session credentials.

    const scene = await new Scene(topia, "sceneId", {
    attributes: { name: "My Scene" },
    credentials: { interactiveNonce: "exampleNonce", assetId: "droppedAssetId", visitorId: 1, urlSlug: "exampleWorld" }
    });

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    credentials: undefined | InteractiveCredentials
    id: string
    jwt?: string
    requestOptions: object
    topia: Topia

    Methods

    • Parameters

      • __namedParameters: { error?: unknown; message?: string; params?: object; sdkMethod?: string }

      Returns {
          data: {};
          message: string;
          method: string;
          params: object;
          sdkMethod: undefined | string;
          stack: string;
          stackTrace: Error;
          status: number;
          success: boolean;
          url: string;
      }

    • Retrieves scene details and assigns response data to the instance.

      Returns Promise<void | ResponseType>

      await scene.fetchSceneById();
      const { name } = scene;
    • Returns AxiosInstance