Class SceneBuilder
SceneBuilder class
Represents the root scene for models, cameras and lights.
public class SceneBuilder : BaseBuilder
Constructors
Properties
Name | Description |
---|
Extras { get; set; } | Gets or sets the custom data of this object. |
Instances { get; } | Gets all the instances in this scene. |
Materials { get; } | Gets all the unique material references shared by all the meshes in this scene. |
Name { get; set; } | Gets or sets the display text name, or null. |
Methods
Name | Description |
---|
static CreateFrom(Scene) | |
static Load(string, ReadSettings) | |
static LoadDefaultScene(string, ReadSettings) | |
AddCamera(CameraBuilder, AffineTransform) | |
AddCamera(CameraBuilder, NodeBuilder) | |
AddCamera(CameraBuilder, Vector3, Vector3) | |
AddLight(LightBuilder, AffineTransform) | |
AddLight(LightBuilder, NodeBuilder) | |
AddNode(NodeBuilder) | |
AddScene(SceneBuilder, Matrix4x4) | Copies the instances from scene to this SceneBuilder |
ApplyBasisTransform(Matrix4x4, string) | Applies a tranform the this SceneBuilder . |
DeepClone(bool) | |
FindArmatures() | Gets all the unique armatures used by this SceneBuilder . |
ToGltf2() | Converts this SceneBuilder instance into a GlbImage instance. |
ToGltf2(SceneBuilderSchema2Settings) | Converts this SceneBuilder instance into a GlbImage instance. |
static CreateFrom(GlbData) | |
static CreateFrom(IEnumerable<Scene>) | |
static LoadAllScenes(string, ReadSettings) | |
static ToGltf2(IEnumerable<SceneBuilder>, SceneBuilderSchema2Settings) | Converts a collection of SceneBuilder instances to a single GlbImage instance. |
See Also