// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors // SPDX-License-Identifier: Apache-2.0 using UnityEngine; namespace GLTFast.Schema { /// /// Assigns a light to a node /// [System.Serializable] public class NodeLightsPunctual { /// /// Light index /// public int light = -1; internal void GltfSerialize(JsonWriter writer) { writer.AddObject(); if (light >= 0) { writer.AddProperty("light", light); } writer.Close(); } } }