Forum Discussion
kaberikram
2 years agoHonored Guest
How can i get the semantic classification to work?
OVRSceneAnchor[] sceneAnchors = FindObjectsOfType<OVRSceneAnchor>();
OVRSceneAnchor floorAnchor = null;
if (sceneAnchors != null)
{
for (int i = 0; i < sceneAnchors.Length; i++)
{
OVRSceneAnchor instance = sceneAnchors[i];
OVRSemanticClassification classification = instance.GetComponent<OVRSemanticClassification>();
if (classification.Contains(OVRSceneManager.Classification.WallFace) ||
classification.Contains(OVRSceneManager.Classification.Ceiling) ||
classification.Contains(OVRSceneManager.Classification.DoorFrame) ||
classification.Contains(OVRSceneManager.Classification.WindowFrame))
{
Destroy(instance.gameObject);
}
This is the code snippet from world beyond, it works for the version of initial unity they used, but when i try to create new project with the latest sdk v54. this code doesnt work?
No RepliesBe the first to reply
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 years ago
- 1 year ago
- 2 years ago