Skip to content

Commit 48d7367

Browse files
authored
Update UnityResolve.hpp
1 parent 4c9049f commit 48d7367

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

UnityResolve.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2383,18 +2383,18 @@ class UnityResolve final {
23832383
}
23842384

23852385

2386-
auto ScreenPointToRay(const Vector2 &position, const Eye eye = Eye::Mono) -> Ray {
2387-
2388-
static Method *method;
2389-
if (!method) method = Get("UnityEngine.CoreModule.dll")->Get("Camera")->Get<Method>(mode_ == Mode::Mono ? "ScreenPointToRay_Injected" : "ScreenPointToRay");
2390-
if (mode_ == Mode::Mono && method) {
2391-
Ray ray{};
2392-
method->Invoke<void>(this, position, eye, &ray);
2393-
return ray;
2394-
}
2395-
if (method) return method->Invoke<Ray>(this, position, eye);
2396-
return {};
2397-
}
2386+
auto ScreenPointToRay(const Vector2 &position, const Eye eye = Eye::Mono) -> Ray {
2387+
2388+
static Method *method;
2389+
if (!method) method = Get("UnityEngine.CoreModule.dll")->Get("Camera")->Get<Method>(mode_ == Mode::Mono ? "ScreenPointToRay_Injected" : "ScreenPointToRay");
2390+
if (mode_ == Mode::Mono && method) {
2391+
Ray ray{};
2392+
method->Invoke<void>(this, position, eye, &ray);
2393+
return ray;
2394+
}
2395+
if (method) return method->Invoke<Ray>(this, position, eye);
2396+
return {};
2397+
}
23982398
};
23992399

24002400
struct Transform : Component {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy