Question by
LW · Sep 04, 2016 at 02:10 PM ·
recttransforminvalidcastexception
Casting Transform to RectTransform - InvalidCastException: Cannot cast from source type to destination type.
Hey all,
RectTransform rt = (RectTransform)transform;
This line, in MonoBehaviour::LateUpdate()
, is giving me the following error:
InvalidCastException: Cannot cast from source type to destination type.
I'm running 5.3. Is there something I'm missing?
Thanks,
Comment
Your answer

Follow this Question
Related Questions
Cant Get Width Height Of Content Size Fitter RectTransform 2 Answers
Reducing internal callbacks from anchorMax and anchorMin setters. 0 Answers
how to decrement a RecctTransformed.anchoredposition by time.deltatime 0 Answers
How to offset a RectTransform? 0 Answers
InvalidCastException: Cannot cast from source type to destination type. 1 Answer