reckfellENGINE

ScenePaint2DEditor

Class for interacting with the 2D editor's Scene Paint Mode.

On this page
class ScenePaint2DEditorReckfellSharpEditorInherits Control

Class for interacting with the 2D editor's Scene Paint Mode.

This class is available only in the editor and cannot be instantiated. Access it using EditorInterface.GetScenePaint2D. It provides methods for editor plugins to interact with the scene painting tool. Plugins can register custom scene providers, and set the scene to be painted.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Methods4

GetPaintedSceneEntity2D
# GetPaintedScene
C#
public Entity2D GetPaintedScene();

Returns the painted scene, or null if none is selected. The returned scene's properties can be edited. Warning: Removing and freeing this node will render the editor useless and may cause a crash.

Returns Entity2D
RegisterSceneProvidervoid
# RegisterSceneProvider
C#
public void RegisterSceneProvider(Control control, Callable callback);

Registers a custom scene provider. When the scene picker tool is active and the user clicks on control, the callback is invoked and must return a Entity2D. The returned scene becomes the new painting sample.

Parameters
NameTypeDefault
controlControl—
callbackCallable—
SetPaintedScenevoid
# SetPaintedScene
C#
public void SetPaintedScene(Entity2D scene);

Sets the scene sample to be painted.

Parameters
NameTypeDefault
sceneEntity2D—
UnregisterSceneProvidervoid
# UnregisterSceneProvider
C#
public void UnregisterSceneProvider(Control control);

Removes a previously registered scene provider.

Parameters
NameTypeDefault
controlControl—

Signals and events1

ScenePaintedEvent
# ScenePainted
C#
public event ScenePaint2DEditor.ScenePaintedEventHandler ScenePainted;

Emitted for each new node created during drawing. Example:

Handler parameters
NameTypeDefault
nodeEntity2D—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.