Forum rules - please read before posting.

Custom Action - knowing what action lists it's used in

Hello,

Is it possible for a custom action to know and print the name of the action list it's being used in at the point of being run?

Thanks!

Comments

  • What exactly do you want to achieve?
    I think you can make use of Label Menu with Label type Global Variable.
    Make Variable as string name of your actionlist.
    And when you run your actionlist, check if actionlist is running then turn on your menu. Something like that.
    I haven't tried it, but it might give you some ideas.

  • edited January 2021

    There are a few ways:

    1. You can get a report of all instances a particular Action type is used by selecting it in the Actions Manager and choosing "Find references" in the cog menu beside it.
    2. For a specific Action in a given list, you can toggle Comments and type in some text - it'll then be displayed, along with the Action/ActionList it's from - in the Console
    3. Inside the Action's script itself, you can use the Action class's Log / LogWarning functions instead of Unity's Debug.Log/LogWarning functions - these'll report to the Console, but also provide info about the Action/ActionList it's from.
  • @ChrisIceBox Number 3 sounds like the ticket. Thanks.

  • Not only was #3 the ticket, it was like a first class ticket with complimentary drinks.

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.