How do i update a world variable that is passed by reference into a function. I know how to pass by reference a variable. But how do i set it within the function?
With pictures please.
How do i update a world variable that is passed by reference into a function. I know how to pass by reference a variable. But how do i set it within the function?
With pictures please.
You just assign it ( set it equal to something ). Because you have passed it by reference, it will update the actual variable, not a local copy…