ActionComponent
ActionComponent can be written in a C# script.
How to create
- Click the “+” button in the Project window.
- Select Logic Toolkit > Scripts > Action Component C# Script from the menu.
- Enter the script name and confirm with Enter.
How to write a script
- Create a class that inherits from
LogicToolkit.ActionComponent
. - Apply
System.SerializableAttribute
to the type. - Implement
protected override void OnAction()
and write the processing at runtime.
Code example
|
|
When executed, this example prints Hello, world!
to the Console.
In addition, a script called Debug.Log is already included as a similar function.