本文へスキップ
バージョン: 3.1

インタフェース ISharedSpaceRoomOptions

(Niantic.Lightship.SharedAR.Colocalization.ISharedSpaceRoomOptions)

概要

共有スペースで使用するルームの設定

interface ISharedSpaceRoomOptions {
// properties

IRoom Room;

// methods

static ISharedSpaceRoomOptions CreateVpsRoomOptions(
ISharedSpaceTrackingOptions trackingVpsLocation,
string roomTag = "",
int capacity = 10,
string description = "",
bool useNetcode = true
)

static ISharedSpaceRoomOptions CreateLightshipRoomOptions(
string name,
int capacity = 10,
string description = "",
bool useNetcode = true
);

static ISharedSpaceRoomOptions CreateCustomRoomOptions();
}

詳細資料

共有スペースで使用するルームの設定

方法

CreateVpsRoomOptions

static ISharedSpaceRoomOptions CreateVpsRoomOptions(
ISharedSpaceTrackingOptions trackingVpsLocation,
string roomTag = "",
int capacity = 10,
string description = "",
bool useNetcode = true
)

ライトシップルームをウェイスポットに関連付ける際、 [ISharedSpaceRoomOptions](./index.mdx)を作成するために使用します。

    **パラメーター

    trackingVpsLocation`` - VPSトラッキングオプション

    roomTag`` - 部屋名のプレフィックス。

    capacity`` - 部屋の収容人数

    description`` - 部屋の説明。

    UseNetcode`` - true の場合、部屋は LightshipNetcodeTransport に割り当てられます。

    **返品について

     ISharedSpaceRoomOptions オブジェクトを返します。

CreateLightshipRoomOptions

static ISharedSpaceRoomOptions CreateLightshipRoomOptions(
string name,
int capacity = 10,
string description = "",
bool useNetcode = true
)

[ISharedSpaceRoomOptions](./index.mdx)を作成し、モック・トラッキングやイメージ・ターゲット・トラッキングに使用する。

    **パラメーター

    name`` - 部屋の名前

    capacity`` - 部屋の収容人数

    description`` - 部屋の説明。

    UseNetcode`` - true の場合、部屋は LightshipNetcodeTransport に割り当てられます。

    **返品について

     ISharedSpaceRoomOptions オブジェクトを返します。

CreateCustomRoomOptions

static ISharedSpaceRoomOptions CreateCustomRoomOptions()

ルーム](/docs/ja/ardk/3.1/apiref/Niantic/Lightship/SharedAR/Rooms/)をアプリケーションで管理する場合、またはカスタムネットワークを使用する場合に使用します。

    **返品について

     ISharedSpaceRoomOptions オブジェクトを返します。