Forum rules - please read before posting.

Begin Cutscene and ActionList with script

Hello, 
How can I do begin a Cutscene and ActionList with script (I wish I would press a Unity Ui button to begin a Cutscene or a ActionList) please ?

I found theses codes :
- AC.KickStarter.stateHandler.StartCutscene ();
- virtual AC.ActionList.Interact()

Is it these? But I don't understand how to use them -_- Sorry.

For example, I want begin a Cutscene named "Mycutscene" and a ActionList named "Myactionlist", what must write in my code ?

Thanks,
Sorry for my English (I'm French).

Comments

  • Both scene-based ActionLists (e.g. Cutscenes) and ActionList asset files can be run via script by invoking their Interact() method - see the "Interaction scripting" chapter of the Manual.

    public AC.Cutsene myCutscene;
    public AC.ActionListAsset myActionListAsset;

    public void RunCutscene ()
    {
      myCutscene.Interact ();
    }

    public void RunActionListAsset ()
    {
      myActionListAsset.Interact ();
    }

    Also be aware that if you link your UI to the Menu Manager (see the "Menus overview" and "Unity UI menus" chapters), you can have a UI Button run an ActionList without the need for code.
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.