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
)