class GLXFInfo(val glxfManager: GLXFManager, val version: String, val experience: Boolean, assets: MutableList<GLXFAsset>, var nodes: MutableList<GLXFNode>, val rootEntity: Entity, val uri: <Error class: unknown class>, context: <Error class: unknown class>, nodeMap: NodeMap = mutableMapOf<Entity, GLXFNode>(), nodesByName: MutableMap<String, GLXFNode> = mutableMapOf<String, GLXFNode>(), val keyName: String? = null, entityIdToEntityMap: MutableMap<String, Entity>, overrideCreateEntity: (<Error class: unknown class>?) -> Entity)
val myGLXFInfo = glXFManager.inflateGLXF(Uri.parse("apk:///scenes/Composition.glxf"))
| Name | Summary |
|---|---|
GLXFInfo | constructor(glxfManager: GLXFManager, version: String, experience: Boolean, assets: MutableList<GLXFAsset>, nodes: MutableList<GLXFNode>, rootEntity: Entity, uri: <Error class: unknown class>, context: <Error class: unknown class>, nodeMap: NodeMap = mutableMapOf<Entity, GLXFNode>(), nodesByName: MutableMap<String, GLXFNode> = mutableMapOf<String, GLXFNode>(), keyName: String? = null, entityIdToEntityMap: MutableMap<String, Entity>, overrideCreateEntity: (<Error class: unknown class>?) -> Entity) |
| Name | Summary |
|---|---|
experience | val experience: Boolean : The experience property set to true indicates that this file is intended to be directly viewed as an experience and MUST NOT be imported into other scenes. |
glxfManager | val glxfManager: GLXFManager |
keyName | val keyName: String? = null : the key name of the GLXF file. This optional value is used to uniquely identify the GLXF file. |
nodes | |
rootEntity | |
uri | val uri: <Error class: unknown class> : the URI of the GLXF file |
version | val version: String : the version of the GLXF file, e.g., "2.0" |
| Name | Summary |
|---|---|
destroy | fun destroy() Immediately destroys GLXFInfo and all its child resources including all entities inflated as part of the GLXFInfo. |
getNestedGLXFInfo | fun getNestedGLXFInfo(childName: String): GLXFInfo? Gets the nested GLXFInfo for a given child name. fun getNestedGLXFInfo(childNamePathList: List<String>): GLXFInfo? Gets the nested GLXFInfo for a given list of child names. The first name should be the highest level child name, with each subsequent name being a child of that nested GLXFInfo |
getNodeByName | fun getNodeByName(resId: Int): GLXFNode Returns the GLXFNode object for the string value represented by the resource ID. fun getNodeByName(name: String): GLXFNode Returns the GLXFNode object for the given name. This gives you access to the node’s properties, including the entity inf;ated to represent this node |
tryGetNodeByName |