Unity SDK Docs 1.5.0-beta.6
Loading...
Searching...
No Matches
MeshAssets.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 */
16
17namespace TiltFive
18{
22 public static class MeshAssets
23 {
24 #region Private Fields
25
26#if TILT_FIVE_PACKAGE
27 private const string ROOT_DIRECTORY = "Packages/com.tiltfive.sdk/";
28#else
29 private const string ROOT_DIRECTORY = "Assets/Tilt Five/";
30#endif
31 private const string MESHES_DIRECTORY = ROOT_DIRECTORY + "Meshes/";
32
33 #endregion Private Fields
34
35
36 #region Public Functions
37
43 public static string GetPathToGameboardMesh(GameboardType gameboardType)
44 {
45 string meshFileName = "";
46 switch (gameboardType)
47 {
48 case GameboardType.GameboardType_LE:
49 meshFileName = "Gameboard_LE.fbx";
50 break;
51 case GameboardType.GameboardType_XE:
52 meshFileName = "Gameboard_XE.fbx";
53 break;
54 case GameboardType.GameboardType_XE_Raised:
55 meshFileName = "Gameboard_XE_Raised.fbx";
56 break;
57 default:
58 throw new System.ArgumentException();
59 }
60
61 return MESHES_DIRECTORY + meshFileName;
62 }
63
67 public static string GetPathToT5LogoMesh()
68 {
69 return MESHES_DIRECTORY + "T5-Logo.fbx";
70 }
71
75 public static string GetPathToWandMesh()
76 {
77 return MESHES_DIRECTORY + "T5-Wand.fbx";
78 }
79
83 public static string GetPathToGlassesMesh()
84 {
85 return MESHES_DIRECTORY + "T5-Glasses.fbx";
86 }
87
88 #endregion Public Functions
89 }
90}
GameboardType
The type of Gameboard being tracked by the glasses.