public unsafe void ShowAt(TooltipPosition position, Vector3 worldPosition) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Expected O, but got Unknown //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_0107: Unknown result type (might be due to invalid IL or missing references) _003F val = this.get_transform(); Vector3 lossyScale = val.get_lossyScale(); val.set_pivot(GetPivotFor(position)); RectTransform transform = val.get_root(); Rect val2 = RectTransformToScreenSpace(val, worldPosition); Rect rect = RectTransformToScreenSpace(transform); Enlarge(ref rect, -10f * ((IntPtr)(void *)lossyScale).x, -10f * ((IntPtr)(void *)lossyScale).y); float num = rect.get_xMax() - val2.get_xMax(); float num2 = val2.get_xMin() - rect.get_xMin(); float num3 = rect.get_yMax() - val2.get_yMax(); float num4 = val2.get_yMin() - rect.get_yMin(); m_borderDistanceToScreen = new RectOffset(num2, num, num3, num4); if (num < 0f) { worldPosition.x += num; } if (num2 < 0f) { worldPosition.x -= num2; } if (num3 < 0f) { worldPosition.y += num3; } if (num4 < 0f) { worldPosition.y -= num4; } DisplayTooltip(worldPosition); }
public unsafe void ShowAt(TooltipPosition location, RectTransform targetRect) { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Unknown result type (might be due to invalid IL or missing references) //IL_006c: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) _003F val = this.get_transform(); Vector3 lossyScale = val.get_lossyScale(); Rect screenRect = RectTransformToScreenSpace(val.get_root()); Rect rect = RectTransformToScreenSpace(targetRect); Enlarge(ref rect, 10f * ((IntPtr)(void *)lossyScale).x, 10f * ((IntPtr)(void *)lossyScale).y); Rect rect2 = val.get_rect(); location = BestLocation(Vector2.Scale(rect2.get_size(), Vector2.op_Implicit(lossyScale)), screenRect, rect, location); Vector3 position = GetPosition(rect, location); position.z = ((IntPtr)(void *)this.get_transform().get_position()).z; ShowAt(location, position); }