22 camera.GetWorldTransform(transform);
29 Math3D.MatrixToQuat(transform, quat);
42 OnEditorManagerCreated(editorManager);
49 core.Event_OnEditorManagerInitOwner.Insert(OnEditorManagerCreated);
65 GetGame().GetCallqueue().CallLater(OnEditorManagerCreatedDelayed, 1,
false);
67 protected void OnEditorManagerCreatedDelayed()
70 if (!editorCameraManager)
76 OnCameraCreated(camera);
79 editorCameraManager.GetOnCameraCreate().Insert(OnCameraCreated);
83 core.Event_OnEditorManagerInitOwner.Remove(OnEditorManagerCreated);
88 transform[3] = Vector(pX, pY, pZ);
90 if (transform[3] != vector.Zero)
97 Math3D.QuatToMatrix(quat, transform);
99 camera.SetTransform(transform);
103 if (editorCameraManager)
104 editorCameraManager.GetOnCameraCreate().Remove(OnCameraCreated);
113 vector angles = Math3D.QuatToAngles(quat);
115 PrintFormat(
" SCR_EditorMetaStruct: cam pos: %1 | cam ang: %2", Vector(pX, pY, pZ), angles);