Functions | |
| bool | IsEditor () |
| Checks if the code is running in the editor. | |
| bool | IsGame () |
| Checks if the code is running as a game build. | |
| EngineMode | GetEngineMode () |
| Retrieves the current engine mode. | |
| godot::Node * | GetNodeByPath (const godot::String &nodePath) |
Gets a Node in the scene tree by the given path. | |
| godot::Node * | FindNodeByName (godot::Node *parent, const godot::String &name) |
Finds a Node recursively by its name. | |
| StringPtr | GetNodeUniqueID (godot::Node *node) |
| Generates a Unique ID string for a given node. | |
| godot::SceneTree * | GetTree () |
Retrieves the current SceneTree. | |
| double | GetTime () |
| Gets the current engine time in seconds. | |
| void | Alert (StringPtr format,...) |
| Displays a system alert message using C-style string formatting. | |
| godot::String | Format (StringPtr format,...) |
| Formats text using C-style string formatting. | |
| godot::String | Format (WideStringPtr format,...) |
| Formats text using C-style wide-string formatting. | |
| void | Output (StringPtr format,...) |
| Outputs a message to the engine terminal using C-style string formatting. | |
| void | Output (WideStringPtr format,...) |
| Outputs a message to the engine terminal using C-style wide-string formatting. | |
| void | DebugOutput (StringPtr format,...) |
| Outputs a message to the debug console such as Visual Studio or DebugView using C-style string formatting. | |
| void | DebugOutput (WideStringPtr format,...) |
| Outputs a message to the debug console such as Visual Studio or DebugView using C-style wide-string formatting. | |
| StringPtr | GetCStr (const godot::String &godotStr) |
| Converts a Godot string to a C-style string. | |
| WideStringPtr | GetWCStr (const godot::String &godotStr) |
| Converts a Godot String to a C-style wide-string. | |
| ObjectPtr | GetObjectPointer (NativePtr obj) |
Casts a native pointer to an ObjectPtr. This function is used to get a Variant representation of any Object, allowing it to be passed across scripts. | |
| bool | SetClassIcon (const godot::String &className, const godot::Ref< godot::Texture2D > iconImage) |
| Sets a custom icon for a registered extension class in the editor. | |
| double | MatchScaleFactor (double inputSize) |
| Matches editor UI scaling factor to a given input size. | |
| godot::Error | CreateSignalCallback (godot::Object *object, const godot::String &signalName, FunctionPtr callbackPtr) |
| Creates a signal connection with a function pointer callback. | |
| bool | CreateDirectoryMonitor (const godot::String &directoryPath) |
| Registers a directory for monitoring changes using Asset Monitor. | |
| bool | CreateFileMonitor (const godot::String &filePath) |
| Registers a file for monitoring changes using Asset Monitor. | |
| bool | RegisterFileMonitorCallback (FileSystemCallback callbackPtr) |
Registers a callback for file system monitoring. Registered callback will receive a FileSystemEvent as a parameter. | |
| bool | UnregisterFileMonitorCallback (FileSystemCallback callbackPtr) |
| Unregisters a file monitor callback. | |
| bool | ReloadJenovaRuntime (RuntimeReloadMode reloadMode) |
| void | CreateCheckpoint (const godot::String &checkPointName) |
| Creates a high-resolution performance checkpoint. | |
| double | GetCheckpointTime (const godot::String &checkPointName) |
| Gets the elapsed time of a high-resolution performance checkpoint since its initiation. | |
| void | DeleteCheckpoint (const godot::String &checkPointName) |
| Deletes a high-resolution performance checkpoint. | |
| double | GetCheckpointTimeAndDispose (const godot::String &checkPointName) |
| Gets the elapsed time of a high-resolution performance checkpoint since its initiation and removes it afterwards. | |
| godot::String | GetPackageRepositoryPath (bool globalize=false) |
| Gets the Jenova package repository path. This function is intended for use in add-ons and tools. | |
| bool | RegisterRuntimeCallback (RuntimeCallback callbackPtr) |
Registers a Jenova Runtime callback. This function is intended for use in add-ons and tools. Registered callback will receive a RuntimeEvent as a parameter. | |
| bool | UnregisterRuntimeCallback (RuntimeCallback callbackPtr) |
| Unregisters a Jenova Runtime callback. | |
This collection of functions is designed to provide essential functionality to ease the development with many useful helpers.
| bool IsEditor | ( | ) |
Checks if the code is running in the editor.
true if running inside the editor, false otherwise. | bool IsGame | ( | ) |
Checks if the code is running as a game build.
true if running in a non-editor environment. | EngineMode GetEngineMode | ( | ) |
Retrieves the current engine mode.
| godot::Node * GetNodeByPath | ( | const godot::String & | nodePath | ) |
| godot::Node * FindNodeByName | ( | godot::Node * | parent, |
| const godot::String & | name ) |
| StringPtr GetNodeUniqueID | ( | godot::Node * | node | ) |
Generates a Unique ID string for a given node.
| node | The node to get the Unique ID of. |
| godot::SceneTree * GetTree | ( | ) |
| double GetTime | ( | ) |
Gets the current engine time in seconds.
double. | void Alert | ( | StringPtr | format, |
| ... ) |
Displays a system alert message using C-style string formatting.
| format | The format string of the message. |
| args | The variable arguments to use in the message. |
| godot::String Format | ( | StringPtr | format, |
| ... ) |
Formats text using C-style string formatting.
| format | The format string to use. |
| args | The variable arguments to use in the format string. |
| godot::String Format | ( | WideStringPtr | format, |
| ... ) |
Formats text using C-style wide-string formatting.
| format | The format string to use. |
| args | The variable arguments to use in the format string. |
| void Output | ( | StringPtr | format, |
| ... ) |
Outputs a message to the engine terminal using C-style string formatting.
| format | The format string of the message. |
| args | The variable arguments to use in the message. |
| void Output | ( | WideStringPtr | format, |
| ... ) |
Outputs a message to the engine terminal using C-style wide-string formatting.
| format | The format string of the message. |
| args | The variable arguments to use in the message. |
| void DebugOutput | ( | StringPtr | format, |
| ... ) |
Outputs a message to the debug console such as Visual Studio or DebugView using C-style string formatting.
| format | The format string of the message. |
| args | The variable arguments to use in the message. |
| void DebugOutput | ( | WideStringPtr | format, |
| ... ) |
Outputs a message to the debug console such as Visual Studio or DebugView using C-style wide-string formatting.
| format | The format string of the message. |
| args | The variable arguments to use in the message. |
| StringPtr GetCStr | ( | const godot::String & | godotStr | ) |
Converts a Godot string to a C-style string.
| godotStr | The Godot String to convert. |
| WideStringPtr GetWCStr | ( | const godot::String & | godotStr | ) |
Converts a Godot String to a C-style wide-string.
| godotStr | The Godot string to convert. |
| bool SetClassIcon | ( | const godot::String & | className, |
| const godot::Ref< godot::Texture2D > | iconImage ) |
Sets a custom icon for a registered extension class in the editor.
| className | The name of the extension class to set the icon for. |
| iconImage | The icon image to use, supports all driven classes from Texture2D. |
true if the icon was set successfully, false otherwise. | double MatchScaleFactor | ( | double | inputSize | ) |
Matches editor UI scaling factor to a given input size.
| inputSize | The input size to match the editor scale factor to. |
| godot::Error CreateSignalCallback | ( | godot::Object * | object, |
| const godot::String & | signalName, | ||
| FunctionPtr | callbackPtr ) |
Creates a signal connection with a function pointer callback.
| object | The object to create the callback for. |
| signalName | The name of the signal to create the callback for. |
| callbackPtr | The callback function pointer to use, Check FunctionPtr. |
OK if the callback was created successfully, Error otherwise. | bool CreateDirectoryMonitor | ( | const godot::String & | directoryPath | ) |
Registers a directory for monitoring changes using Asset Monitor.
| directoryPath | The path of the directory to monitor. |
true if the monitor was created successfully, false otherwise. | bool CreateFileMonitor | ( | const godot::String & | filePath | ) |
Registers a file for monitoring changes using Asset Monitor.
| filePath | The path of the file to monitor. |
true if the monitor was created successfully, false otherwise. | bool RegisterFileMonitorCallback | ( | FileSystemCallback | callbackPtr | ) |
Registers a callback for file system monitoring. Registered callback will receive a FileSystemEvent as a parameter.
Example of FileSystemCallback implementation:
targetPath is the path of the directory/file that has been changed. | callbackPtr | The callback function pointer to register. |
true if the callback was registered successfully, false otherwise. | bool UnregisterFileMonitorCallback | ( | FileSystemCallback | callbackPtr | ) |
Unregisters a file monitor callback.
| callbackPtr | The callback function pointer to unregister. |
true if the callback was unregistered successfully, false otherwise. | bool ReloadJenovaRuntime | ( | RuntimeReloadMode | reloadMode | ) |
Reloads the Jenova runtime.
| reloadMode | The reload mode to use. |
true if the runtime was reloaded successfully, false otherwise. | void CreateCheckpoint | ( | const godot::String & | checkPointName | ) |
Creates a high-resolution performance checkpoint.
| checkPointName | The name of the checkpoint to create. |
| double GetCheckpointTime | ( | const godot::String & | checkPointName | ) |
Gets the elapsed time of a high-resolution performance checkpoint since its initiation.
| checkPointName | The name of the checkpoint to get the time of. |
| void DeleteCheckpoint | ( | const godot::String & | checkPointName | ) |
Deletes a high-resolution performance checkpoint.
| checkPointName | The name of the checkpoint to delete. |
| double GetCheckpointTimeAndDispose | ( | const godot::String & | checkPointName | ) |
Gets the elapsed time of a high-resolution performance checkpoint since its initiation and removes it afterwards.
| checkPointName | The name of the checkpoint to get the time of and dispose. |
| godot::String GetPackageRepositoryPath | ( | bool | globalize = false | ) |
Gets the Jenova package repository path. This function is intended for use in add-ons and tools.
| globalize | If true the returned path will be absolute; if not, it will be localized as res://... |
| bool RegisterRuntimeCallback | ( | RuntimeCallback | callbackPtr | ) |
Registers a Jenova Runtime callback. This function is intended for use in add-ons and tools. Registered callback will receive a RuntimeEvent as a parameter.
Example of RuntimeCallback implementation:
| callbackPtr | The callback function to use. |
true if the callback was registered successfully, false otherwise. | bool UnregisterRuntimeCallback | ( | RuntimeCallback | callbackPtr | ) |
Unregisters a Jenova Runtime callback.
| callbackPtr | The callback function to remove. |
true if the callback was unregistered successfully, false otherwise.