public void OnEnable() { spatialMapping = (ZEDSpatialMappingManager)target; range = serializedObject.FindProperty("range_preset"); resolution = serializedObject.FindProperty("resolution_preset"); isFilteringEnable = serializedObject.FindProperty("isFilteringEnable"); filterParameters = serializedObject.FindProperty("filterParameters"); isTextured = serializedObject.FindProperty("isTextured"); saveWhenOver = serializedObject.FindProperty("saveWhenOver"); meshPath = serializedObject.FindProperty("meshPath"); }
// Use this for initialization void Start() { zedSpatialMapping = GetComponent <ZEDSpatialMappingManager>(); #if UNITY_5_6_OR_NEWER navMesh = new NavMeshData(); NavMesh.AddNavMeshData(navMesh); //Initialize a position of the bound bounds = new Bounds(transform.position, new Vector3(30, 30, 30)); materialTransparent = Resources.Load("Materials/Mat_ZED_Transparent_NavMesh") as Material; #endif }