Forum rules - please read before posting.

Inheriting existing action doesn't show up in editor

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)

Comments

  • I'm using AC as an .asmdef if that matters

    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?

  • Yes, that belongs to another asmdef. But since it works as long as it inherits directly from Action, I'm guessing it's because of something else...
  • 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?

  • edited November 2021

    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.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.