PropertyBox のバックアップ(No.2)
- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- 現在との差分 - Visual を表示
- ソース を表示
- PropertyBox へ行く。
概要 
何かの状態を追跡し、そのパラメータを保持することができる。
保持した値は様々なActionのパラメータとして使用でき、ConditionalTriggerで条件をつけてトリガーすることもできる。
追跡以外にも、SetPropertyBoxで値を演算して更新することができる。
そのため、追跡機能を使用せずとも単純な変数格納器として使用することができる。
パラメータ 
Value Type | 数値型。Bool、Int、Float、Vector3、Stringの5種類。 |
Value | 保持される値。実行中に更新されるが、初期値を設定しておくことができる。 |
Track Type | None:何も追跡しない。値を保持する機能のみを持つ。 Player:プレイヤーの情報を追跡する。 GameObject:GameObjectの情報を追跡する。 World:インスタンスメンバー数や時刻など、オブジェクトに関わらない情報を追跡する。 UI:UIコンポーネントの状態を追跡する。 AnimatorParameter:AnimatorのParameter値を追跡する。 Controller:コントローラーの入力値を追跡する。 |
Target Player | TrackType=Playerの場合、どのプレイヤーを追跡するか。 Local:LocalPlayer(自分自身) ObjectOwner:TargetObjectに指定したGameObjectの所有者。 TriggeredPlayer:TargetObjectに指定したGameObjectにある、特定のTriggerの起動者。 (起動されていない場合、LocalPlayerになる。) ByIndex:ワールドインスタンスにいるプレイヤーをIndexで指定。 (もし、プレイヤー数を超えるIndexが指定された場合、LocalPlayerになる。) |
Target Object | 対象となるGameObject、または対象となるコンポーネント等が存在するGameObject。 |
Spot | 何の情報を追跡するか。詳細は後述。 |
Spot Detail | Spotの中で、さらにどの部分を抽出するか。詳細は後述。 |
Spot詳細 
SpotはTrackTypeとValueTypeによって、選択肢が変化する。
br
TrackType=Player 
Value Type | Spot | 説明 |
Bool | InUserInVR | VRモードであればTrue |
Bool | IsPlayerGrounded | 着地していればTrue |
Bool | IsMaster | MasterであればTrue |
Bool | IsInstanceOwner | インスタンスオーナーであればTrue |
Bool | IsGameObjectOwner | このGameObjectの所有者であればTrue |
Vector3 | Position | プレイヤーのPosition |
Vector3 | Rotation | プレイヤーのRotation |
Vector3 | HeadPosition | LocalPlayerの場合は頭トラッキング座標のPosition RemotePlayerの場合はモデルの頭ボーンのPosition |
Vector3 | HeadRotation | LocalPlayerの場合は頭トラッキング座標のRotation RemotePlayerの場合はモデルの頭ボーンのRotation |
Vector3 | RightHandPosition | LocalPlayerの場合は右手トラッキング座標のPosition RemotePlayerの場合はモデルの右手ボーンのPosition |
Vector3 | RightHandRotation | LocalPlayerの場合は右手トラッキング座標のRotation RemotePlayerの場合はモデルの右手ボーンのRotation |
Vector3 | LeftHandPosition | LocalPlayerの場合は左手トラッキング座標のPosition RemotePlayerの場合はモデルの左手ボーンのPosition |
Vector3 | LeftHandRotation | LocalPlayerの場合は左手トラッキング座標のRotation RemotePlayerの場合はモデルの左手ボーンのRotation |
Vector3 | Velocity | 速度ベクトル |
String | DisplayName | プレイヤー名 |
br
TrackType=GameObject 
Value Type | Spot | 説明 |
Bool | IsActive | GameObjectがActiveであればTrue |
Vector3 | Position | GameObjectのPosition |
Vector3 | Rotation | GameObjectのRotation |
Vector3 | LocalPosition | GameObjectのLocalPosition(親からの相対座標) |
Vector3 | LocalRotation | GameObjectのLocalRotation(親からの相対座標) |
Vector3 | Velocity | 速度ベクトル(Rigidbodyが必要) |
Vector3 | AngularVelocity | 角速度ベクトル(Rigidbodyが必要) |
br
TrackType=World 
Value Type | Spot | 説明 |
Int, Float | PlayerCount | ワールドインスタンスにいるプレイヤー数 |
Int, Float | Year | 現在の年 |
Int, Float | Month | 現在の月 |
Int, Float | Day | 現在の日 |
Int, Float | DayOfWeek | 現在の曜日(0:日曜日~6:土曜日) |
Int, Float | Hour | 現在の時 |
Int, Float | Minute | 現在の分 |
Int, Float | Second | 現在の秒 |
Int, Float | JoinHours | インスタンスにJoinしてからの時間数 |
Int, Float | JoinMinutes | インスタンスにJoinしてからの分数 |
Int, Float | JoinSeconds | インスタンスにJoinしてからの秒数 |
br
br
br
br
なお、Int用のSpotはFloatでも選択できる。
Vector3用のSpotはFloatでも選択でき、Spot Detailの選択を要する。