terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ MapCoordinate()

Vector2 UnityEngine.UI.Image.MapCoordinate ( Vector2 local,
Rect rect )
inlineprivate

Definition at line 830 of file Image.cs.

831 {
832 Rect rect2 = this.activeSprite.rect;
833 if (this.m_Type == Image.Type.Simple)
834 {
835 float width = rect2.width;
836 float width2 = rect2.width;
837 float height = rect2.height;
838 float height2 = rect2.height;
839 }
840 Vector4 border = this.activeSprite.border;
841 float pixelsPerUnit = this.pixelsPerUnit;
842 long num = 0L;
843 Image.Type type = this.m_Type;
844 while (num == 0L)
845 {
846 }
847 return 1;
848 }
class f__AnonymousType0<< Count > j__TPar
Vector4 border
Definition Sprite.cs:85
Sprite activeSprite
Definition Image.cs:67
Image.Type type
Definition Image.cs:100
Image.Type m_Type
Definition Image.cs:910
float width
Definition Rect.cs:143

References UnityEngine.UI.Image.activeSprite, UnityEngine.Sprite.border, j__TPar, UnityEngine.L, UnityEngine.UI.Image.m_Type, UnityEngine.UI.Image.pixelsPerUnit, UnityEngine.Sprite.rect, UnityEngine.UI.Image.type, and UnityEngine.Rect.width.