Beispiel #1
0
    private void Start()
    {
        SUDataProvider = SUDataProvider == null?gameObject.GetComponent <SceneUnderstandingDataProvider>() : SUDataProvider;

        ToggleWallsButton = ToggleWallsButton == null?gameObject.GetComponent <ToggleWallsButton>() : ToggleWallsButton;

        SceneObjectWireframeMaterial = SceneObjectWireframeMaterial == null?Resources.Load <Material>("Assets/Samples/01.scene-understanding-find-closest-wall/materials/MRTK_Wireframe") : SceneObjectWireframeMaterial;

        SceneObjectClosestWallMaterial = SceneObjectClosestWallMaterial == null?Resources.Load <Material>("Assets/Samples/01.scene-understanding-find-closest-wall/materials/MRTK_Standard_Purple") : SceneObjectClosestWallMaterial;
    }
Beispiel #2
0
    private void Start()
    {
        SUDataProvider = SUDataProvider == null?gameObject.GetComponent <SceneUnderstandingDataProvider>() : SUDataProvider;

        SUDisplayManager = SUDisplayManager == null?gameObject.GetComponent <SceneUnderstandingDisplayManager>() : SUDisplayManager;

        SUFindSceneObject = SUFindSceneObject == null?gameObject.GetComponent <SceneUnderstandingFindSceneObject>() : SUFindSceneObject;

        SceneObjectInvisibleMaterial = SceneObjectInvisibleMaterial == null?Resources.Load <Material>("Assets/Samples/01.scene-understanding-find-closest-wall/materials/MRTK_Invisible") : SceneObjectInvisibleMaterial;

        SceneObjectWireframeMaterial = SceneObjectWireframeMaterial == null?Resources.Load <Material>("Assets/Samples/01.scene-understanding-find-closest-wall/materials/MRTK_Wireframe") : SceneObjectWireframeMaterial;
    }