Tanoda
TriLibLoader.cs
Go to the documentation of this file.
1
using
NaughtyAttributes;
2
using
STPLoader.Implementation.Model;
3
using
System.Collections;
4
using
System.Collections.Generic;
5
using
TriLib;
6
using
TriLibCore
;
7
using
UnityEngine
;
8
using
Valve.VR.InteractionSystem;
9
using
AssetLoaderOptions
=
TriLibCore
.AssetLoaderOptions;
10
11
public
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
}
Button
UnityEngine.UI.Button Button
Definition:
Pointer.cs:7
AssetLoaderOptions
TriLibCore.AssetLoaderOptions AssetLoaderOptions
Definition:
TriLibLoader.cs:9
TriLibLoader
Definition:
TriLibLoader.cs:12
TriLibLoader.loadedModel
GameObject loadedModel
Definition:
TriLibLoader.cs:13
TriLibLoader.LoadModel
void LoadModel()
Definition:
TriLibLoader.cs:26
TriLibCore
Definition:
AssetLoaderOptionsEditor.cs:6
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
TriLibLoader.cs
Generated by
1.9.3