Tilt Five™ Unity API  1.4.1
TiltFive.MeshAssets Class Reference

Handles functionality relating to mesh assets provided in the Tilt Five Unity SDK. More...

Static Public Member Functions

static string GetPathToGameboardMesh (GameboardType gameboardType)
 Gets the path to the specified gameboard mesh asset. More...
 
static string GetPathToT5LogoMesh ()
 Gets the path to Tilt Five logo mesh asset. More...
 
static string GetPathToWandMesh ()
 Gets the path to the Tilt Five Wand mesh asset. More...
 
static string GetPathToGlassesMesh ()
 Gets the path to the Tilt Five Glasses mesh asset. More...
 

Static Private Attributes

const string ROOT_DIRECTORY = "Assets/Tilt Five/"
 
const string MESHES_DIRECTORY = ROOT_DIRECTORY + "Meshes/"
 

Detailed Description

Handles functionality relating to mesh assets provided in the Tilt Five Unity SDK.

Definition at line 22 of file MeshAssets.cs.

Member Function Documentation

◆ GetPathToGameboardMesh()

static string TiltFive.MeshAssets.GetPathToGameboardMesh ( GameboardType  gameboardType)
static

Gets the path to the specified gameboard mesh asset.

Parameters
gameboardType
Exceptions
System.ArgumentExceptionThrown when gameboardType is set to GameboardType.GameboardType_None.

Definition at line 43 of file MeshAssets.cs.

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  }
const string MESHES_DIRECTORY
Definition: MeshAssets.cs:31
GameboardType
The type of Gameboard being tracked by the glasses

References TiltFive.MeshAssets.MESHES_DIRECTORY.

◆ GetPathToGlassesMesh()

static string TiltFive.MeshAssets.GetPathToGlassesMesh ( )
static

Gets the path to the Tilt Five Glasses mesh asset.

Definition at line 83 of file MeshAssets.cs.

84  {
85  return MESHES_DIRECTORY + "T5-Glasses.fbx";
86  }

References TiltFive.MeshAssets.MESHES_DIRECTORY.

◆ GetPathToT5LogoMesh()

static string TiltFive.MeshAssets.GetPathToT5LogoMesh ( )
static

Gets the path to Tilt Five logo mesh asset.

Definition at line 67 of file MeshAssets.cs.

68  {
69  return MESHES_DIRECTORY + "T5-Logo.fbx";
70  }

References TiltFive.MeshAssets.MESHES_DIRECTORY.

◆ GetPathToWandMesh()

static string TiltFive.MeshAssets.GetPathToWandMesh ( )
static

Gets the path to the Tilt Five Wand mesh asset.

Definition at line 75 of file MeshAssets.cs.

76  {
77  return MESHES_DIRECTORY + "T5-Wand.fbx";
78  }

References TiltFive.MeshAssets.MESHES_DIRECTORY.

Member Data Documentation

◆ MESHES_DIRECTORY

const string TiltFive.MeshAssets.MESHES_DIRECTORY = ROOT_DIRECTORY + "Meshes/"
staticprivate

◆ ROOT_DIRECTORY

const string TiltFive.MeshAssets.ROOT_DIRECTORY = "Assets/Tilt Five/"
staticprivate

Definition at line 29 of file MeshAssets.cs.


The documentation for this class was generated from the following file: