Question by
Ziya · Aug 26, 2018 at 08:57 AM ·
canvasrendererboundsrecttransform
How to get Canvas renderer bounds?
I tried:
gameObject.GetComponent<RectTransform>().rect.width
This gives all rectangle, not rendered bounds. I want an alternative to renderer bounds.
Comment
Your answer
Follow this Question
Related Questions
Unity 2017.1 p4 - Unity Screen-space camera canvas - Graphics Raycaster fails 1 Answer
Image bounds miscalculated? 1 Answer
Updated with UI text element not correct (same frame) 0 Answers
Resize UI Panel to the same size as its parent Canvas through code 0 Answers
How can I get the Bounds of a canvas? 0 Answers