28 lines
649 B
C#
28 lines
649 B
C#
// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
namespace GLTFast.Schema
|
|
{
|
|
|
|
/// <summary>
|
|
/// Scene, the top level hierarchy object.
|
|
/// </summary>
|
|
[System.Serializable]
|
|
public class Scene : NamedObject
|
|
{
|
|
|
|
/// <summary>
|
|
/// The indices of all root nodes
|
|
/// </summary>
|
|
public uint[] nodes;
|
|
|
|
internal void GltfSerialize(JsonWriter writer)
|
|
{
|
|
writer.AddObject();
|
|
GltfSerializeName(writer);
|
|
writer.AddArrayProperty("nodes", nodes);
|
|
writer.Close();
|
|
}
|
|
}
|
|
}
|