Files
AR-Menu/Library/PackageCache/com.unity.cloud.gltfast@db5a82ec0b47/Runtime/Scripts/Schema/Scene.cs
2025-11-30 08:35:03 +02:00

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();
}
}
}