|
| GLTFastInstantiator (IGltfReadable gltf, Transform parent, ICodeLogger logger=null, Settings settings=null) |
|
virtual void | Init () |
|
void | CreateNode (uint nodeIndex, Vector3 position, Quaternion rotation, Vector3 scale) |
|
void | SetParent (uint nodeIndex, uint parentIndex) |
|
virtual void | SetNodeName (uint nodeIndex, string name) |
|
virtual void | AddPrimitive (uint nodeIndex, string meshName, Mesh mesh, int[] materialIndices, uint[] joints=null, uint? rootJoint=null, float[] morphTargetWeights=null, int primitiveNumeration=0) |
|
void | AddPrimitiveInstanced (uint nodeIndex, string meshName, Mesh mesh, int[] materialIndices, uint instanceCount, NativeArray< Vector3 >? positions, NativeArray< Quaternion >? rotations, NativeArray< Vector3 >? scales, int primitiveNumeration=0) |
|
virtual void | AddScene (string name, uint[] nodeIndices) |
|
void | AddCamera (uint nodeIndex, uint cameraIndex) |
|
void | AddScene (string name, uint[] nodeIndices, AnimationClip[] animationClips) |
|
Definition at line 5 of file GLTFastInstantiator.cs.
◆ GLTFastInstantiator()
GLTFastInstantiator.GLTFastInstantiator |
( |
IGltfReadable |
gltf, |
|
|
Transform |
parent, |
|
|
ICodeLogger |
logger = null , |
|
|
Settings |
settings = null |
|
) |
| |
◆ AddCamera()
void GLTFastInstantiator.AddCamera |
( |
uint |
nodeIndex, |
|
|
uint |
cameraIndex |
|
) |
| |
◆ AddPrimitive()
virtual void GLTFastInstantiator.AddPrimitive |
( |
uint |
nodeIndex, |
|
|
string |
meshName, |
|
|
Mesh |
mesh, |
|
|
int[] |
materialIndices, |
|
|
uint[] |
joints = null , |
|
|
uint? |
rootJoint = null , |
|
|
float[] |
morphTargetWeights = null , |
|
|
int |
primitiveNumeration = 0 |
|
) |
| |
|
virtual |
◆ AddPrimitiveInstanced()
void GLTFastInstantiator.AddPrimitiveInstanced |
( |
uint |
nodeIndex, |
|
|
string |
meshName, |
|
|
Mesh |
mesh, |
|
|
int[] |
materialIndices, |
|
|
uint |
instanceCount, |
|
|
NativeArray< Vector3 >? |
positions, |
|
|
NativeArray< Quaternion >? |
rotations, |
|
|
NativeArray< Vector3 >? |
scales, |
|
|
int |
primitiveNumeration = 0 |
|
) |
| |
◆ AddScene() [1/2]
virtual void GLTFastInstantiator.AddScene |
( |
string |
name, |
|
|
uint[] |
nodeIndices |
|
) |
| |
|
virtual |
◆ AddScene() [2/2]
void GLTFastInstantiator.AddScene |
( |
string |
name, |
|
|
uint[] |
nodeIndices, |
|
|
AnimationClip[] |
animationClips |
|
) |
| |
◆ CreateNode()
void GLTFastInstantiator.CreateNode |
( |
uint |
nodeIndex, |
|
|
Vector3 |
position, |
|
|
Quaternion |
rotation, |
|
|
Vector3 |
scale |
|
) |
| |
◆ Init()
virtual void GLTFastInstantiator.Init |
( |
| ) |
|
|
virtual |
◆ SetNodeName()
virtual void GLTFastInstantiator.SetNodeName |
( |
uint |
nodeIndex, |
|
|
string |
name |
|
) |
| |
|
virtual |
◆ SetParent()
void GLTFastInstantiator.SetParent |
( |
uint |
nodeIndex, |
|
|
uint |
parentIndex |
|
) |
| |
◆ gltf
IGltfReadable GLTFastInstantiator.gltf |
|
protected |
◆ logger
ICodeLogger GLTFastInstantiator.logger |
|
protected |
◆ nodes
Dictionary<uint, GameObject> GLTFastInstantiator.nodes |
|
protected |
◆ parent
Transform GLTFastInstantiator.parent |
|
protected |
◆ settings
◆ sceneInstance
The documentation for this class was generated from the following file: