Version:

Creating Script Events in Script Canvas

Creating Script Events in Script Canvas

In Lumberyard Editor, you can create script events by using the Asset Editor.

To create a script event

  1. In Lumberyard Editor, choose Tools, Asset Editor.
    [Choose Tools, Asset Editor.]

  2. In the Asset Editor, choose File, New, Script Events.
    [Choose File, New, Script Events in the Asset Editor.]

  3. In the Asset Editor, enter the information that defines the script event.
    [Creating a script event in the Asset Editor.]
    Script Event Properties
    [See the AWS documentation website for more details]
    Event Properties
    [See the AWS documentation website for more details]
    Parameter Properties
    [See the AWS documentation website for more details]

  4. Choose File, Save, or press Ctrl+S.

  5. In the Save As dialog box, enter a file name for your .scriptevents file, and click Save. Note
    To ensure that the script event asset saved correctly, check the bottom of the Asset Editor for the message “file_name.scriptevents - Asset loaded!” message . If you see the error message Failed to save asset due to validation error, check the Lumberyard Editor Console window or the lumberyard_version\dev\Cache\project_name\pc\user\log\Editor.log file for more information.