Scene Class |
public sealed class Scene : IMarshalable<Scene, AiScene>
The Scene type exposes the following members.
| Name | Description | |
|---|---|---|
| Scene | Constructs a new instance of the Scene class. | |
| Scene(String) | Constructs a new instance of the Scene class. |
| Name | Description | |
|---|---|---|
| AnimationCount | Gets the number of animations in the scene. | |
| Animations | Gets the animations in the scene, if any. | |
| CameraCount | Gets the number of cameras in the scene. | |
| Cameras | Gets the cameras in the scene, if any. | |
| HasAnimations | Gets if the scene contains any animations. | |
| HasCameras | Gets if the scene contains any cameras. | |
| HasLights | Gets if the scene contains any lights. | |
| HasMaterials | Gets if the scene contains any materials. There should always be at least the default Assimp material if no materials were loaded. | |
| HasMeshes | Gets if the scene contains meshes. Unless if no special scene flags are set this should always be true. | |
| HasTextures | Gets if the scene contains embedded textures. | |
| LightCount | Gets the number of lights in the scene. | |
| Lights | Gets the lights in the scene, if any. | |
| MaterialCount | Gets the number of materials in the scene. There should always be at least the default Assimp material if no materials were loaded. | |
| Materials | Gets the materials in the scene. | |
| MeshCount | Gets the number of meshes in the scene. | |
| Meshes | Gets the meshes contained in the scene, if any. | |
| Metadata | Gets the metadata of the scene. This data contains global metadata which belongs to the scene like unit-conversions, versions, vendors or other model-specific data. This can be used to store format-specific metadata as well. | |
| Name | Gets or sets the name of the scene. | |
| RootNode | Gets or sets the root node of the scene graph. There will always be at least the root node if the import was successful and no special flags have been set. Presence of further nodes depends on the format and content of the imported file. | |
| SceneFlags | Gets or sets the state of the imported scene. By default no flags are set, but issues can arise if the flag is set to incomplete. | |
| TextureCount | Gets the number of embedded textures in the scene. | |
| Textures | Gets the embedded textures in the scene, if any. |
| Name | Description | |
|---|---|---|
| Clear | Clears the scene of all components. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| FindBone | Will try to locate a bone described by its name. | |
| FreeNative | Frees unmanaged memory created by ToNative(IntPtr, Native). | |
| FreeUnmanagedScene | Frees unmanaged memory allocated -ONLY- in ToUnmanagedScene(Scene). To free an unmanaged scene allocated by the unmanaged Assimp library, call the appropiate ReleaseImport(IntPtr) function. | |
| FromUnmanagedScene | Marshals an unmanaged scene to managed memory. This does not free the unmanaged memory. | |
| GetEmbeddedTexture | Gets an embedded texture by a string. The string may be a texture ID in the format of "*1" or is the file name of the texture. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| ToUnmanagedScene | Marshals a managed scene to unmanaged memory. The unmanaged memory must be freed with a call to FreeUnmanagedScene(IntPtr), the memory is owned by AssimpNet and cannot be freed by the native library. |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |