Unity SDK Docs 1.5.0-beta.6
Loading...
Searching...
No Matches
PlayerSettings.cs
1/*
2 * Copyright (C) 2020-2023 Tilt Five, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16using System.Collections;
17using System.Collections.Generic;
18using UnityEngine;
19using TiltFive;
20
21namespace TiltFive
22{
23 [System.Serializable]
24 public class PlayerSettings
25 {
26 #region Sub-settings
27
28 public GlassesSettings glassesSettings = new GlassesSettings();
29
30 public ScaleSettings scaleSettings = new ScaleSettings();
31
32 public GameBoardSettings gameboardSettings = new GameBoardSettings();
33
34 public WandSettings leftWandSettings = new WandSettings();
35 public WandSettings rightWandSettings = new WandSettings();
36
37 #endregion
38
39
40 #region Public Properties
41
42 public PlayerIndex PlayerIndex;
43
44 public static uint MAX_SUPPORTED_PLAYERS => GlassesSettings.MAX_SUPPORTED_GLASSES_COUNT;
45
46 #endregion
47
48
49 #region Public Functions
50
51 public void Validate()
52 {
53 rightWandSettings.controllerIndex = ControllerIndex.Right;
54 leftWandSettings.controllerIndex = ControllerIndex.Left;
55
56 gameboardSettings.Validate();
57 }
58
59 #endregion
60 }
61}
GlassesSettings encapsulates all configuration data used by the Glasses' tracking runtime to compute ...
ScaleSettings contains the scale data used to translate between Unity units and the user's physical s...
Wand Settings encapsulates all configuration data used by the Wand's tracking runtime to compute the ...
Definition Wand.cs:38
ControllerIndex
Since wands are all physically identical (they have no "handedness"), it doesn't make sense to addres...