File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -2383,18 +2383,18 @@ class UnityResolve final {
2383
2383
}
2384
2384
2385
2385
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
+ }
2398
2398
};
2399
2399
2400
2400
struct Transform : Component {
You can’t perform that action at this time.
0 commit comments