Forum rules - please read before posting.

Argument out of range exception when changing global variable parameter to game object.

Unity 2021.2.7f1
AC 1.74.4
Here are the steps I think I took
1) Created a global variable parameter
2) Created Variable copy action which copies this global variable parameter to another global variable
3) Changed global variable parameter variable to game object.

https://pasteboard.co/pBtU53ol1sYz.png

Comments

  • Recreated, thanks for the details.

    To fix it, open up ActionVarCopy.cs, and find the line 321:

    variableID = vars [variableNumber].id;
    

    Just above, paste fhe following:

    variableNumber = Mathf.Max (0, variableNumber);
    
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.