A utility class containing various helper methods. More...
Static Public Member Functions | |
| static Vector2 | ConvertImageToScreenSpace (Vector2 imagePosition) |
| Converts coordinates from image space to screen space. | |
| static Vector2 | ConvertScreenToImageSpace (Vector2 screenPosition) |
| Converts coordinates from screen space to image space. | |
| static FusionProviderType | GetActiveFusionProvider () |
| Returns which provider Vuforia Fusion has selected to use. | |
| static IEnumerable< T > | GetComponentsInChildrenExcluding< T, U > (GameObject gameObject) |
| Recursively traverses the gameObjects hierarchy to find components of type T. Traversal wil stop at gameObjects that contain components of type U. | |
| static string | GetFullDataSetPath (string dataSetPath) |
| Sanitizes streaming assets path for all platforms. | |
| static string | GetStoragePath (string path) |
| Returns the correct path based on the current platform. | |
| static bool | IsPlayMode () |
| returns ONLY true if we are running in Play Mode | |
| static bool | IsRecordingPlayMode () |
| returns true if we are running in Play Mode with a Recording | |
| static bool | IsSimulatorPlayMode () |
| returns ONLY true if we are running in Play Mode in Simulator Mode | |
| static bool | IsUsingBuiltInRenderPipeline () |
| static bool | IsVuforiaEnabled () |
| returns true if we have access to Vuforia (on a mobile device OR in the emulator in Unity Pro with a webcam connected) | |
| static bool | IsWebCamPlayMode () |
| returns true if we are running in Play Mode with a WebCam | |
| static bool | IsWebCamUsed () |
| If the web cam is enabled. | |
| static bool | IsWSARuntime () |
| returns true ONLY if we are in any one of the WSA modes | |
| static string | StripStreamingAssetsFromPath (string fullPath) |
| Returns the file path without the first two elements of the path for example it would remove '*/StreamingAssets'. | |
Properties | |
| static ScreenOrientation | ScreenOrientation [get] |
| Returns the current screen orientation. In the Editor, the orientation is always LandscapLeft. | |
A utility class containing various helper methods.
|
inlinestatic |
Converts coordinates from image space to screen space.
| imagePosition | Position in image space coordinates. |
|
inlinestatic |
Converts coordinates from screen space to image space.
| screenPosition | Position in screen space coordinates. |
|
inlinestatic |
|
inlinestatic |
Recursively traverses the gameObjects hierarchy to find components of type T. Traversal wil stop at gameObjects that contain components of type U.
| gameObject | The game object |
| T | The component type to look for |
| U | The component type where to stop traversal |
| T | : | Component | |
| U | : | Component |
|
inlinestatic |
Sanitizes streaming assets path for all platforms.
| dataSetPath | The path to the dataset, relative to the StreamingAssets folder |
|
inlinestatic |
Returns the correct path based on the current platform.
|
inlinestatic |
returns ONLY true if we are running in Play Mode
|
inlinestatic |
returns true if we are running in Play Mode with a Recording
|
inlinestatic |
returns ONLY true if we are running in Play Mode in Simulator Mode
|
inlinestatic |
|
inlinestatic |
returns true if we have access to Vuforia (on a mobile device OR in the emulator in Unity Pro with a webcam connected)
|
inlinestatic |
returns true if we are running in Play Mode with a WebCam
|
inlinestatic |
If the web cam is enabled.
|
inlinestatic |
returns true ONLY if we are in any one of the WSA modes
|
inlinestatic |
Returns the file path without the first two elements of the path for example it would remove '*/StreamingAssets'.
|
staticget |
Returns the current screen orientation. In the Editor, the orientation is always LandscapLeft.