Physics.ignoreCollision only works when in update()?

Im trying to make a axe stop colliding with the character holding it after it is picked from the ground, i already tryed using the Pysics.ignoreCollision before attaching, after attaching, multiple times before and after, waiting a couple of seconds after attach and the same: it dont work. but now i just trowed it in the update function and… it works?!

is this the right thing to do? cause for me this seens innefective as hell

No, it should work wherever you call if from. It will not work though if one (or both) of the gameObjects your collider is on will be disabled, It will also fail if you disable the collider or rigidbody component (maybe you did that so it doesn’t have physics anymore).