Question by
stiansundbyy · Jan 18, 2020 at 08:13 PM ·
transform.positionaxisif statement
I need to check if a GameObject exists between two values on the y coordiante, how can I do that?
I need to check if the gameobject my script is attached to exists within -2.75f and -2.95f on the Y axis, and if it does then call a function. How can I put that as a condition in my if statement?
Comment
Your answer
Follow this Question
Related Questions
How can I apply a position (and not a translation) to my camera related to an axis value 0 Answers
SImple, but how do I check a game object's position in an If statement? 1 Answer
So I'm very new at Unity and I tried to improvise the controllers with if statement. 0 Answers
How to make an object move in the direction another object is facing on 2 axis? 1 Answer
Problems with if (transform.position) 4 Answers