Forum rules - please read before posting.

Constant ID assignation

Hey,

currently I'm editing the constant ID assignation system and wanted to ask you a couple of questions about it. Why do you invert the negative values? Is there a check against negatives, are they interpreted as some specific state? Is 0 interpreted as constant ID unset?

Comments

  • No special reason, it just looks nicer.  An ID number is originally generated using Unity's GetInstanceID() function, which has/had a habit of using negative values.

    And yet, an ID of 0 is considered unset and ignored.
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.