Skip to content

InSceneAttribute

namespace Griff.Scenes;
public sealed class InSceneAttribute : FieldEditorAttribute

Marks a string property as naming something in another scene, the one another property names (a hotspot’s Arrive At, in the scene its Goes To names): the Inspector lists that scene’s hotspots and other entities to pick from.

public string Scene { get; }

The property of the component naming the scene.

public override string Describe()
public string? SceneOf(Component component)

The scene component names, or null for none.