| 416 | } |
| 417 | |
| 418 | Float2 ManagedEditor::ScreenToGameViewport(const Float2& screenPos) const |
| 419 | { |
| 420 | Float2 result = screenPos; |
| 421 | if (HasManagedInstance()) |
| 422 | { |
| 423 | if (Internal_ScreenToGameViewport == nullptr) |
| 424 | { |
| 425 | Internal_ScreenToGameViewport = GetClass()->GetMethod("Internal_ScreenToGameViewport", 1); |
| 426 | ASSERT(Internal_ScreenToGameViewport); |
| 427 | } |
| 428 | void* params[1]; |
| 429 | params[0] = &result; |
| 430 | Internal_ScreenToGameViewport->Invoke(GetManagedInstance(), params, nullptr); |
| 431 | } |
| 432 | return result; |
| 433 | } |
| 434 | |
| 435 | Float2 ManagedEditor::GameViewportToScreen(const Float2& viewportPos) const |
| 436 | { |
nothing calls this directly
no test coverage detected