/**
* MyGame namespace
*/
namespace MyGame {
// Defines the name and help text of this access handler.
[ORKEditorSettingInfo("Custom", "Custom Access Handler for MyGame game.", "")]
// The access handler holds the sub-handlers with their overridable functions.
public class CustomAccessHandler : AccessHandler {
// The constructor needs to create the instances of the sub-handlers for actions, combatants, groups and inventory.
public CustomAccessHandler() {
Debug.Log("Custom handler active");
//this.actionAccess = new CustomActionAccessHandler();
this.combatantAccess = new CustomCombatantAccessHandler();
//this.groupAccess = new CustomGroupAccessHandler();
//this.inventoryAccess = new CustomInventoryAccessHandler();
}
}
}
It looks like you're new here. If you want to get involved, click one of these buttons!
You need to set/create all the sub-handlers in your custom handler's constructor, otherwise you'll get errors when ORK tries to access the handlers that where not created.
Also, be sure to save in the ORK editor after changing the access handler. I just did a quick test with the custom handler available in the how-to and that worked fine.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!