Tanoda
GLTFastInstantiator Class Reference
Inheritance diagram for GLTFastInstantiator:

Classes

class  SceneInstance
 
class  Settings
 

Public Member Functions

 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)
 

Protected Attributes

Settings settings
 
ICodeLogger logger
 
IGltfReadable gltf
 
Transform parent
 
Dictionary< uint, GameObject > nodes
 

Properties

SceneInstance sceneInstance [get, protected set]
 Contains information about the latest instance of a glTF scene More...
 

Detailed Description

Definition at line 5 of file GLTFastInstantiator.cs.

Constructor & Destructor Documentation

◆ GLTFastInstantiator()

GLTFastInstantiator.GLTFastInstantiator ( IGltfReadable  gltf,
Transform  parent,
ICodeLogger  logger = null,
Settings  settings = null 
)

Definition at line 42 of file GLTFastInstantiator.cs.

Member Function Documentation

◆ AddCamera()

void GLTFastInstantiator.AddCamera ( uint  nodeIndex,
uint  cameraIndex 
)

Definition at line 219 of file GLTFastInstantiator.cs.

◆ 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

Definition at line 90 of file GLTFastInstantiator.cs.

◆ 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 
)

Definition at line 164 of file GLTFastInstantiator.cs.

◆ AddScene() [1/2]

virtual void GLTFastInstantiator.AddScene ( string  name,
uint[]  nodeIndices 
)
virtual

Definition at line 200 of file GLTFastInstantiator.cs.

◆ AddScene() [2/2]

void GLTFastInstantiator.AddScene ( string  name,
uint[]  nodeIndices,
AnimationClip[]  animationClips 
)

Definition at line 223 of file GLTFastInstantiator.cs.

◆ CreateNode()

void GLTFastInstantiator.CreateNode ( uint  nodeIndex,
Vector3  position,
Quaternion  rotation,
Vector3  scale 
)

Definition at line 61 of file GLTFastInstantiator.cs.

◆ Init()

virtual void GLTFastInstantiator.Init ( )
virtual

Definition at line 55 of file GLTFastInstantiator.cs.

◆ SetNodeName()

virtual void GLTFastInstantiator.SetNodeName ( uint  nodeIndex,
string  name 
)
virtual

Definition at line 85 of file GLTFastInstantiator.cs.

◆ SetParent()

void GLTFastInstantiator.SetParent ( uint  nodeIndex,
uint  parentIndex 
)

Definition at line 75 of file GLTFastInstantiator.cs.

Member Data Documentation

◆ gltf

IGltfReadable GLTFastInstantiator.gltf
protected

Definition at line 31 of file GLTFastInstantiator.cs.

◆ logger

ICodeLogger GLTFastInstantiator.logger
protected

Definition at line 29 of file GLTFastInstantiator.cs.

◆ nodes

Dictionary<uint, GameObject> GLTFastInstantiator.nodes
protected

Definition at line 35 of file GLTFastInstantiator.cs.

◆ parent

Transform GLTFastInstantiator.parent
protected

Definition at line 33 of file GLTFastInstantiator.cs.

◆ settings

Settings GLTFastInstantiator.settings
protected

Definition at line 27 of file GLTFastInstantiator.cs.

Property Documentation

◆ sceneInstance

SceneInstance GLTFastInstantiator.sceneInstance
getprotected set

Contains information about the latest instance of a glTF scene

Definition at line 40 of file GLTFastInstantiator.cs.


The documentation for this class was generated from the following file: