Skip to content

MissingComponent

namespace Griff.Scenes;
public sealed class MissingComponent : Component

Stands in for a component whose type couldn’t be found when the scene was loaded (for example, a script that was deleted or renamed). Its saved data is kept and written back unchanged, so restoring the type restores the component.

public JsonElement Data { get; }

The component’s saved JSON, including its “type” field.

public string TypeName { get; }

The component type name recorded in the scene file.