Too subjective and argumentative
Wow Unity Devs. Just wow
Wow number 1: I use RectTransform.Translate(10.0f, 0.0f, 0.0f) to move my object. But instead of 10 points, it moves 21.something points. All my objects in hierarchy have Scale 1.0f. I busted my head for about 30 minutes and realized that it was because of Canvas, which had Scale of 0.501something. So, ok, I get it, there is a relation here, you can't do whatever you want. So, why the f do you have the other overloaded functions of Translate? Tried with Space.Self, Space.World, Transform=null, Transform=Self, Transform=Parent, Transform=Canvas. All gave the exact same result. Turns out, the only solution is to multiply my translation(that is 10.0f) with my object's lossyScale. Wow! So elegant solution there Unity Devs. That was my real problem but I want to point out two more wow-moments I encountered in my Unity journey.
Wow number 2: When use RectTransform.localScale.Set(x, y, z) guess what. Nothing happens. What? I should have use .hasChanged too? Oh really? Well I did and in my amazing surpise, it also didn't work. So, Unity=1, Logic=0;
Wow number 3: I used Vector3.smoothDamp on an object's RectTransform.localEulerAngles to make it rotate on y axis to -360.0f. Well, it started rotating and when it went to -180.0f instead of keep going to -181.0f, Unity rotated it to 179.0f. Ok ok, I know, it's the same thing to the eye but that made .smoothDamp to never end. And I was like "Who the hell told you to do that?". I want my object to rotate to minus infinity. Did anybody asked you to intervene?
When I'll finish with this project, I so done with Unity. Unity's good only for Tetris. Anything more than that, I will honestly more luck with excel. And again. Wow Unity Devs. Just wow.
If you're interested, you could re-ask any one of these as a Q in the Help Room. For example: "this is what I have to do using rectTransform.Translate - is there any easier way to do this?"
But it's not about difficulty. It's about stupidity. I just wanted opinions on the subject. Never$$anonymous$$d, I'll post it on the forum too.
Follow this Question
Related Questions
Keys "A" and "D" to TURN and not TURN and RUN 0 Answers
UNITY ads error 0 Answers
...is not a valid directory name. please make sure there are no unallowed characters 1 Answer
Top Down Game - Camera Follow Player and General Scripting Question 0 Answers
There is an error with onEndEdit with the inputfield 1 Answer