public static void Start() { var assetUri = "game://Morrowind/Morrowind.bsa"; var dataUri = "game://Morrowind/Morrowind.esm"; var assetManager = AssetManager.GetAssetManager(EngineId.Tes); Asset = assetManager.GetAssetPack(assetUri).Result; Data = assetManager.GetDataPack(dataUri).Result; CellManager = assetManager.GetCellManager(Asset, Data, LoadBalancer); // ambient RenderSettings.ambientMode = UnityEngine.Rendering.AmbientMode.Flat; RenderSettings.ambientIntensity = 1.5f; // sun _sunObj = GameObjectUtils.CreateDirectionalLight(Vector3.zero, Quaternion.Euler(new Vector3(50, 330, 0))); _sunObj.GetComponent <Light>().shadows = LightShadows.Soft; _sunObj.SetActive(false); Cursor.SetCursor(Asset.LoadTexture("tx_cursor", 1), Vector2.zero, CursorMode.Auto); // engine SpawnPlayer(PlayerPrefab, new Vector3Int(-2, -9, 0), new Vector3(-137.94f, 2.30f, -1037.6f)); }
static void MakeCursor(string path) { var cursor = Asset.LoadTexture(path); Cursor.SetCursor(cursor, Vector2.zero, CursorMode.Auto); }