12345678910111213141516171819 |
- import {UnityBehaviour} from "./UnityBehaviour";
- import {Il2cppHackerApi} from "../hacker/Il2cppHackerApi";
- import {UnityVector3} from "./UnityVector3";
- export class UnityCamera extends UnityBehaviour{
- WorldToScreenPoint(unityVector3){
- let methodAddr = Il2cppHackerApi.getMethodAddr("UnityEngine.CoreModule.dll",
- "UnityEngine",
- "Camera", "WorldToScreenPoint", 1);
- let nativeFunction = new NativeFunction(methodAddr,"pointer",['pointer']);
- let s = nativeFunction(this,unityVector3);
- return new UnityVector3(s);
- }
- }
|