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

◆ GetViewportSafeRegion()

new Rect XNAUICameraSettings.GetViewportSafeRegion ( )
inlineprivate

Definition at line 171 of file XNAUICameraSettings.cs.

172 {
173 if (!true)
174 {
175 }
176 int width = Screen.width;
177 int height = Screen.height;
178 int width2 = Screen.width;
179 int height2 = Screen.height;
180 Rect safeArea = base.GetSafeArea();
181 float xMin = safeArea.xMin;
182 float xMin2 = safeArea.xMin;
183 float xMax = safeArea.xMax;
184 float xMax2 = safeArea.xMax;
185 float yMin = safeArea.yMin;
186 float yMin2 = safeArea.yMin;
187 float yMax = safeArea.yMax;
188 float yMax2 = safeArea.yMax;
189 return safeArea;
190 }
class f__AnonymousType0<< Count > j__TPar
static int height
Definition Screen.cs:28
static int width
Definition Screen.cs:17

References UnityEngine.Screen.height, j__TPar, UnityEngine.Screen.width, UnityEngine.Rect.xMax, UnityEngine.Rect.xMin, UnityEngine.Rect.yMax, and UnityEngine.Rect.yMin.

Referenced by ApplyCamera(), and RecalculateVirtualScreen().