TestGltfLoading Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This glTF test loading script will load a glTF model from the streaming assets folder.
C++
public ref class TestGltfLoading : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/TestGltfLoading")]
public class TestGltfLoading : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/TestGltfLoading")>]
type TestGltfLoading = class
inherit MonoBehaviour
Public Class TestGltfLoading
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourTestGltfLoading
- Attributes
-
UnityEngine.AddComponentMenuAttribute
This scene needs to be opened before building to the device so the appropriate assets are copied.
Absolute |
Combines Streaming Assets folder path with RelativePath |
Relative |
The relative asset path to the glTF asset in the Streaming Assets folder. |
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |