Forum rules - please read before posting.

Access more fields as parameters

I'm trying to set up an actionlist with parameters, but there are a few input fields I can't seem to set through the parameter system. For example, in setting parameters in the "play movie clip" action, I'd really like to be able to set "new clip" as a parameter. I thought it'd be a unity object, but that didn't work.

Am I missing something? Or would there be a way to edit ActionMovie.cs to access that field?

Thank you! (I'm stuck in AC version 1.70.1 unfortunately)

Comments

  • A Unity Object can be used to override the "New clip" field in the current release - but I'm not sure about v1.70.1.

    You can edit the script to add the ability, though. Essentially:

    1/ Add this to the list of variables:

    public int newClipParameterID = -1;
    

    2/ Add this to the end of AssignValues:

    newClip = (VideoClip) AssignObject<VideoClip> (parameters, newClipParameterID, newClip);
    

    3/ Add this to ShowGUI:

    newClipParameterID = EditorGUILayout.IntField("New clip parameter:", newClipParameterID);
    

    It won't appear as a parameter dropdown box, so you'll have to enter in the parameter's ID manually - but it should work.

  • It works perfectly! Thank you Chris!

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.