Tanoda
TriLibLoader.cs
Go to the documentation of this file.
1using NaughtyAttributes;
2using STPLoader.Implementation.Model;
3using System.Collections;
4using System.Collections.Generic;
5using TriLib;
6using TriLibCore;
7using UnityEngine;
8using Valve.VR.InteractionSystem;
9using AssetLoaderOptions = TriLibCore.AssetLoaderOptions;
10
11public class TriLibLoader : MonoBehaviour
12{
13 public GameObject loadedModel;
14 // Start is called before the first frame update
15 void Start()
16 {
17
18 }
19
20 // Update is called once per frame
21 void Update()
22 {
23
24 }
25 [Button]
26 public void LoadModel()
27 {
28 //var assetLoaderOptions = AssetLoaderOptions.CreateInstance();
29 //assetLoaderOptions.MaterialTransparencyMode = MaterialTransparencyMode.Cutout;
30 //assetLoaderOptions.AdvancedConfigs.Add(AssetAdvancedConfig.CreateConfig(AssetAdvancedPropertyClassNames.FBXImportPreservePivots, false));
31 //GameObject tea = null;
32 //tea = assetLoader.LoadFromMemory(data, filename, assetLoaderOptions, parent);
33 }
34}
UnityEngine.UI.Button Button
Definition: Pointer.cs:7
TriLibCore.AssetLoaderOptions AssetLoaderOptions
Definition: TriLibLoader.cs:9
GameObject loadedModel
Definition: TriLibLoader.cs:13
void LoadModel()
Definition: TriLibLoader.cs:26