private void Awake() { _texPropId = Shader.PropertyToID("_Tex"); ZipUtility.Init(); DlcPath.Init(); _skyboxMaterial = new Material(_defaultSkyboxMaterial); _skyboxMaterial.SetTexture(_texPropId, _defaultSkyboxCubemap); FindExistingVivePackages(); SetupWatcher(); _baseActiveScene = SceneManager.GetActiveScene(); }
public VivePackage(string packageFilePath) { Assert.IsFalse(string.IsNullOrEmpty(packageFilePath)); packageFilePath = DlcPath.CleanSeparators(packageFilePath); PackageFilePath = packageFilePath; PackageName = Path.GetFileName(PackageFilePath); AppId = PackageName.Replace(DlcPath.PackageExtention, ""); PackageDirectoryPath = DlcPath.GetAppDlcDirectory(AppId); SceneName = DlcPath.GetSceneFileName(AppId); SkyboxName = DlcPath.GetSkyboxFileName(AppId); CheckFileReferences(); }