Search Issue Tracker
Fixed in 2018.3.X
Votes
1
Found in
2017.3.1p3
Issue ID
1022359
Regression
No
ARCore Support is not accessible from editor scripts
Steps to reproduce:
1. Create a new project
2. Switch platform to Windows Store
3. Create a new script
4. Observe UnityEngine.XR.XRSettings does not provide the option to access ARCore Suppor
Reproduced with: 2017.1.3p2, 2017.2.2p3, 2017.4.1f1, 2018.1.0b13, 2018.2.0a7
Actual results: UnityEngine.XR.XRSettings does not provide the option to access ARCore Suppor
Expected results: Every option in the PlayerSettings should be accessible from code
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
hellaeon
Apr 13, 2018 02:47
I found a way to do this currently, give this a try for now.
public static void SetAndroidTangoBool(bool b)
{
var ps = Resources.FindObjectsOfTypeAll<PlayerSettings>();
var so = new SerializedObject(ps);
var sp = so.FindProperty("AndroidEnableTango");
sp.boolValue = b;
so.ApplyModifiedProperties();
}
This has allowed me to set 'ARCore Supported' checkbox with build settings via a script.