SceneDrawer

Internal Odin property drawer that renders a Scene field as a read-only SceneAsset reference in the Inspector.

Definition

Namespace: Paragon.Core.SceneManagement.Editor Assembly: Paragon.Editor.dll

[DrawerPriority(0.0, 0.0, 3000.0), UsedImplicitly]
internal class SceneDrawer : OdinValueDrawer<Scene>

Inheritance: OdinValueDrawer<Scene>SceneDrawer

Remarks

SceneDrawer provides a read-only Inspector representation of Scene objects. It accesses the sceneAsset child property and draws it using Odin's standard property drawing, wrapped in a ReadonlyIf(true) scope to prevent editing.

The high drawer priority (3000.0 wrapper priority) ensures this drawer takes precedence over other potential Scene drawers.

This is a utility drawer — there is no extension or customization intended.

Methods

DrawPropertyLayout

protected override void DrawPropertyLayout(GUIContent label)

Draws the Scene as a read-only SceneAsset field. Accesses Property.Children["sceneAsset"] to render the underlying asset reference.

See Also

Last updated