reckfellENGINE

ScriptCreateDialog

Reckfell editor's popup dialog for creating new Script files.

On this page
class ScriptCreateDialogReckfellSharpEditorInherits ConfirmationDialog

Reckfell editor's popup dialog for creating new Script files.

The ScriptCreateDialog creates script files according to a given template for a given scripting language. The standard use is to configure its fields prior to calling one of the Window.Popup methods.

C#
public override void _Ready()
{
    var dialog = new ScriptCreateDialog();
    dialog.Config("Entity", "asset://NewNode.cs"); // For in-engine types.
    dialog.Config("\"asset://BaseNode.cs\"", "asset://DerivedNode.cs"); // For script types.
    dialog.PopupCentered();
}

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

Constructors1

ScriptCreateDialogConstructor
# ScriptCreateDialog
C#
public ScriptCreateDialog();

Methods1

Configvoid
# Config
C#
public void Config(string inherits, string path, bool builtInEnabled = true, bool loadEnabled = true);

Prefills required fields to configure the ScriptCreateDialog for use.

Parameters
NameTypeDefault
inheritsstring—
pathstring—
builtInEnabledbooltrue
loadEnabledbooltrue

Signals and events1

ScriptCreatedEvent
# ScriptCreated
C#
public event ScriptCreateDialog.ScriptCreatedEventHandler ScriptCreated;

Emitted when the user clicks the OK button.

Handler parameters
NameTypeDefault
scriptScript—
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.