Exemple #1
0
 /// <inheritdoc />
 public GameObjectBoundsInstantiator(
     IGltfReadable gltf,
     Transform parent,
     ICodeLogger logger             = null,
     InstantiationSettings settings = null
     ) : base(gltf, parent, logger, settings)
 {
 }
 /// <summary>
 /// Constructs a GameObjectInstantiator
 /// </summary>
 /// <param name="gltf">glTF to instantiate from</param>
 /// <param name="parent">Generated GameObjects will get parented to this Transform</param>
 /// <param name="logger">Custom logger</param>
 /// <param name="settings">Instantiation settings</param>
 public GameObjectInstantiator(
     IGltfReadable gltf,
     Transform parent,
     ICodeLogger logger             = null,
     InstantiationSettings settings = null
     )
 {
     this.gltf     = gltf;
     this.parent   = parent;
     this.logger   = logger;
     this.settings = settings ?? new InstantiationSettings();
 }
Exemple #3
0
 public EntityInstantiator(
     IGltfReadable gltf,
     Entity parent,
     ICodeLogger logger             = null,
     InstantiationSettings settings = null
     )
 {
     this.gltf     = gltf;
     this.parent   = parent;
     this.logger   = logger;
     this.settings = settings ?? new InstantiationSettings();
 }