interface ISharedSpaceRoomOptions
(Niantic.Lightship.SharedAR.Colocalization.ISharedSpaceRoomOptions)
概要
共有スペースで使用するルームの設定
interface ISharedSpaceRoomOptions {
// properties
IRoom Room;
// メソッド
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
)
Lightship RoomをWayspotに関連付ける際、 ISharedSpaceRoomOptionsを作成するために使用します。
パラメーター:
trackingVpsLocation - VPSトラッキングオプション
roomTag - ルーム名のプレフィックス
capacity - ルームの収容人数
description - ルームの説明
useNetcode - true の場合、Roomは LightshipNetcodeTransport に割り当てられます
戻り値:
ISharedSpaceRoomOptions オブジェクトを返します
CreateLightshipRoomOptions
static ISharedSpaceRoomOptions CreateLightshipRoomOptions(
string name,
int capacity = 10,
string description = "",
bool useNetcode = true
)
ISharedSpaceRoomOptionsを作成し、モック・トラッキングやイメージ・ターゲット・トラッキングに使用します
パラメーター:
name - ルームの名前
capacity - ルームの収容人数
description - ルームの説明
useNetcode - true の場合、Roomは LightshipNetcodeTransport に割り当てられます
戻り値:
ISharedSpaceRoomOptions オブジェクトを返します
CreateCustomRoomOptions
static ISharedSpaceRoomOptions CreateCustomRoomOptions()
Roomsをアプリケーションで管理する場合、またはカスタムネットワークを使用する場合に使用します
戻り値:
ISharedSpaceRoomOptions オブジェクトを返します