// Use this for initialization void Start() { VRWorks _vrWorks = GetComponent <VRWorks>(); if (_vrWorks.IsFeatureAvailable(VRWorks.Feature.LensMatchedShading)) { _vrWorks.SetActiveFeature(VRWorks.Feature.LensMatchedShading); } else if (_vrWorks.IsFeatureAvailable(VRWorks.Feature.MultiResolution)) { _vrWorks.SetActiveFeature(VRWorks.Feature.MultiResolution); } Debug.Log(_vrWorks.GetActiveFeature()); }
private void EnableVRWorksFeatures() { foreach (VRWorks.Feature value in VRWorks.Feature.GetValues(features.GetType())) { if (IsFlagSet(features, value)) { vrworks.SetActiveFeature(value); } } }