-
Notifications
You must be signed in to change notification settings - Fork 4
4 ‐ Custom Behavior
requazar edited this page Jul 16, 2025
·
3 revisions
To create custom behavior, we first need to make a script file. While you can put this wherever you want inside your root directory, it's recommended to put it inside scripts/objects for organization. Inside the script file, there are a couple things you need to do before you write in your custom behavior:
- Copy and paste the code from
SelectMenuCapsuleObject.hxc
into your file. - Change the name of your class from
SelectMenuCapsuleObject
to the name you have chosen. Please make sure the name of the file and the name of the class match. - Scroll down to the custom behavior functions. They are blank functions that get called every time. Under no circumstances should these functions be deleted, as they are called even if empty and need to exist for the menu to function properly.
- Once you have added your custom behavior, go back to the json file for your capsule.
- If you have not done so already, add a
script
field to your json. It should be a string containing the name of your class.