how can i remove an object from an array of another script without knowing its position in the array?
thank you!
how can i remove an object from an array of another script without knowing its position in the array?
thank you!
Use a List not an array.
import System.Collections.Generic;
var list = new List.<sometype>;
myOtherObject.list.Remove(someValue);