Is there a way to disable and enable a trigger on a collider inside a script ?

I have been trying to enable a trigger on an gameobject by using collider.isTrigger = true but it doesn’t seem to exist and I can’t find any information on how I am supposed to do that now… (The gameobject in question is procedurally generated so being able to do it in the script rather than the editor is a must), thanks guys.

Seems that Collider.istrigger has be deprecated in the current version.
Try GetComponent<Collider>().isTrigger = false; and see if it works my dude.