public interface GltfImportData
The imported glTF data will be added to a scene.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<ResourceHandle> |
getAnimations() |
Obtains a list of animations that have been imported.
|
String |
getError() |
Obtains the error message if an error occurs during the data import.
|
List<ResourceHandle> |
getImages() |
Obtains a list of images that have been imported.
|
List<ResourceHandle> |
getMaterials() |
Obtains a list of materials that have been imported.
|
List<ResourceHandle> |
getMeshes() |
Obtains a list of meshes that have been imported.
|
List<GpuResourceHandle> |
getSamplers() |
Obtains a list of samplers that have been imported.
|
List<ResourceHandle> |
getSkins() |
Obtains a list of skins that have been imported.
|
List<GpuResourceHandle> |
getTextures() |
Obtains a list of textures that have been imported.
|
boolean |
isValid() |
Checks whether the glTF data is valid.
|
void |
release() |
Releases the glTF data that has been imported.
|
boolean isValid()
true if the glTF data is valid; returns false otherwise.String getError()
void release()
List<GpuResourceHandle> getSamplers()
List<GpuResourceHandle> getTextures()
List<ResourceHandle> getImages()
List<ResourceHandle> getMaterials()
List<ResourceHandle> getMeshes()
List<ResourceHandle> getSkins()
List<ResourceHandle> getAnimations()