public class GltfExtensions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
obtain(java.lang.Object gltfProperty,
java.lang.String extensionName,
java.lang.Class<T> extensionType)
Obtain the specified extension object from the given glTF property.
|
public static <T> T obtain(java.lang.Object gltfProperty,
java.lang.String extensionName,
java.lang.Class<T> extensionType)
null is returned.T - The type of the extension objectgltfProperty - The glTF propertyextensionName - The extension nameextensionType - The extension typenulljava.lang.IllegalArgumentException - If the given glTF property is neither
a de.javagl.jgltf.impl.v1.GlTFProperty nor a
a de.javagl.jgltf.impl.v2.GlTFPropertyCopyright © 2022. All Rights Reserved.