// SPDX-FileCopyrightText: 2023 Unity Technologies and the glTFast authors
// SPDX-License-Identifier: Apache-2.0
namespace GLTFast.Schema
{
///
/// Base class for anything with a name property
///
[System.Serializable]
public abstract class NamedObject
{
///
/// Object's name
///
public string name;
internal void GltfSerializeName(JsonWriter writer)
{
if (!string.IsNullOrEmpty(name))
{
writer.AddPropertySafe("name", name);
}
}
}
}