private void Init() { this.m_Object = new SerializedObject(NavMeshBuilder.navMeshSettingsObject); this.m_AgentRadius = this.m_Object.FindProperty("m_BuildSettings.agentRadius"); this.m_AgentHeight = this.m_Object.FindProperty("m_BuildSettings.agentHeight"); this.m_AgentSlope = this.m_Object.FindProperty("m_BuildSettings.agentSlope"); this.m_LedgeDropHeight = this.m_Object.FindProperty("m_BuildSettings.ledgeDropHeight"); this.m_AgentClimb = this.m_Object.FindProperty("m_BuildSettings.agentClimb"); this.m_MaxJumpAcrossDistance = this.m_Object.FindProperty("m_BuildSettings.maxJumpAcrossDistance"); this.m_MinRegionArea = this.m_Object.FindProperty("m_BuildSettings.minRegionArea"); this.m_ManualCellSize = this.m_Object.FindProperty("m_BuildSettings.manualCellSize"); this.m_CellSize = this.m_Object.FindProperty("m_BuildSettings.cellSize"); this.m_AccuratePlacement = this.m_Object.FindProperty("m_BuildSettings.accuratePlacement"); Object serializedAssetInterfaceSingleton = Unsupported.GetSerializedAssetInterfaceSingleton("NavMeshAreas"); this.m_NavMeshAreasObject = new SerializedObject(serializedAssetInterfaceSingleton); this.m_Areas = this.m_NavMeshAreasObject.FindProperty("areas"); if (((this.m_AreasList == null) && (this.m_NavMeshAreasObject != null)) && (this.m_Areas != null)) { this.m_AreasList = new ReorderableList(this.m_NavMeshAreasObject, this.m_Areas, false, false, false, false); this.m_AreasList.drawElementCallback = new ReorderableList.ElementCallbackDelegate(this.DrawAreaListElement); this.m_AreasList.drawHeaderCallback = new ReorderableList.HeaderCallbackDelegate(this.DrawAreaListHeader); this.m_AreasList.elementHeight = EditorGUIUtility.singleLineHeight + 2f; } }
private void InitProjectSettings() { if (m_NavMeshProjectSettingsObject == null) { Object obj = Unsupported.GetSerializedAssetInterfaceSingleton("NavMeshProjectSettings"); m_NavMeshProjectSettingsObject = new SerializedObject(obj); } }
private void InitProjectSettings() { if (this.m_NavMeshProjectSettingsObject == null) { UnityEngine.Object serializedAssetInterfaceSingleton = Unsupported.GetSerializedAssetInterfaceSingleton("NavMeshProjectSettings"); this.m_NavMeshProjectSettingsObject = new SerializedObject(serializedAssetInterfaceSingleton); } }