{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class GameObjectBoundsInstantiator | Unity glTFast | 6.0.1
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GameObjectBoundsInstantiator

    Generates a GameObject hierarchy from a glTF scene and provides its bounding box

    Inheritance
    object
    GameObjectInstantiator
    GameObjectBoundsInstantiator
    Implements
    IInstantiator
    Inherited Members
    GameObjectInstantiator.m_Settings
    GameObjectInstantiator.m_Logger
    GameObjectInstantiator.m_Gltf
    GameObjectInstantiator.m_Parent
    GameObjectInstantiator.m_Nodes
    GameObjectInstantiator.SceneTransform
    GameObjectInstantiator.SceneInstance
    GameObjectInstantiator.AddAnimation(AnimationClip[])
    GameObjectInstantiator.CreateNode(uint, uint?, Vector3, Quaternion, Vector3)
    GameObjectInstantiator.SetNodeName(uint, string)
    GameObjectInstantiator.AddPrimitiveInstanced(uint, string, MeshResult, uint, NativeArray<Vector3>?, NativeArray<Quaternion>?, NativeArray<Vector3>?, int)
    GameObjectInstantiator.AddCamera(uint, uint)
    GameObjectInstantiator.AddLightPunctual(uint, uint)
    GameObjectInstantiator.EndScene(uint[])
    GameObjectInstantiator.NodeCreated
    GameObjectInstantiator.MeshAdded
    GameObjectInstantiator.EndSceneCompleted
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: GLTFast
    Assembly: solution.dll
    Syntax
    public class GameObjectBoundsInstantiator : GameObjectInstantiator, IInstantiator

    Constructors

    Name Description
    GameObjectBoundsInstantiator(IGltfReadable, Transform, ICodeLogger, InstantiationSettings)

    Constructs a GameObjectInstantiator

    Methods

    Name Description
    AddPrimitive(uint, string, MeshResult, uint[], uint?, float[], int)

    Called for adding a Primitive/Mesh to a Node.

    BeginScene(string, uint[])

    Starts creating a scene instance. Has to be called at first and concluded by calling EndScene(uint[]).

    CalculateBounds()

    Attempts to calculate the instance's bounds

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)