I can't get my custom action to show up under the action categories unless it inherits directly from Action.
This shows up:
public class ActionFoo : Action
But not when I inherit from one of the existing action classes:
public class ActionFoo : ActionAnim
Unity 2021.2.1
AC: 1.74.2 (I'm using AC as an .asmdef if that matters)
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
It may do - I can't recreate the issue, but I haven't tried with an assembly definition file.
Where is your Action class stored? Does that belong to an .asmdef file too?
I can't recreate this with an asmdef file, either.
Does any message appear in the Console, and does it show if you move the Action to AC's own Scripts/Actions folder?
Same result when moved to to ACs actions, but I figured out the reason though:
I was setting the fields category, title, description instead of the properties which seem to be the new way of doing it. Setting the fields resulted in duplicate titles appearing in when inheriting from anything else than Action, setting the props took care of it.
The syntax of Actions was updated in v1.73.0 - a tutorial covering the changes can be found here.