I’m working on a script that changes the ‘tag’ of a game object on collision, but
// Add the tag "CollidedWithSoloplate" to this object
this.gameObject.addTag("CollidedWithSoloplate");
// Log the tagging event at the end
console.log(`Object "${this.gameObject.name}" has been tagged with 'CollidedWithSoloplate'.`);
this doesn’t seem to be working- am I wrong in assuming this ‘addtag’ method is valid? anyone know of a work around?