How do you use the OnRectTransformDimensionsChange function?
I wanted a collision detector that goes around my camera view/boarder so if an object hits the edge of a screen the object bounces back.
I've stumbled upon this and this, but a bit lost on actually how to use it. Since I don't quite get the code bit for the second link specially.
Would there be anyone help me out understand that code bit a bit better and help me solve this problem?
Comment
Your answer
Follow this Question
Related Questions
Player bounces off of enemy. Help!! 1 Answer
Enemy makes player glitch through walls 0 Answers
How to delete cube when it hits the floor and play a particle 0 Answers
Player is Going Through Walls 2 Answers
My character wont jump when on downward slope or when on the edge of object that is on? 1 Answer