void OnEnable() { m_TerrainDataProperty = serializedObject.FindProperty("m_TerrainData"); m_ChunkSizeProperty = serializedObject.FindProperty("m_ChunkSize"); m_BorderVertexCountProperty = serializedObject.FindProperty("m_BorderVertexCount"); m_LODDistanceProperty = serializedObject.FindProperty("m_LODDistance"); m_CullDistanceProperty = serializedObject.FindProperty("m_CullDistance"); m_LODSlider = new LODSlider(true, "Cull"); m_LODSlider.InsertRange("High", m_LODDistanceProperty); m_LODSlider.InsertRange("Low", m_CullDistanceProperty); m_SimplifierTypes = Simplifier.SimplifierTypes.GetTypes(); m_SimplifierNames = m_SimplifierTypes.Select(t => t.Name).ToArray(); m_StreamingTypes = Streaming.StreamingBuilderTypes.GetTypes(); m_StreamingNames = m_StreamingTypes.Select(t => t.Name).ToArray(); }
void OnEnable() { m_MinSizeProperty = serializedObject.FindProperty("m_MinSize"); m_LODDistanceProperty = serializedObject.FindProperty("m_LODDistance"); m_CullDistanceProperty = serializedObject.FindProperty("m_CullDistance"); m_ThresholdSizeProperty = serializedObject.FindProperty("m_ThresholdSize"); m_LODSlider = new LODSlider(true, "Cull"); m_LODSlider.InsertRange("High", m_LODDistanceProperty); m_LODSlider.InsertRange("Low", m_CullDistanceProperty); m_BatcherTypes = BatcherTypes.GetTypes(); m_BatcherNames = m_BatcherTypes.Select(t => t.Name).ToArray(); m_SimplifierTypes = Simplifier.SimplifierTypes.GetTypes(); m_SimplifierNames = m_SimplifierTypes.Select(t => t.Name).ToArray(); m_StreamingTypes = Streaming.StreamingBuilderTypes.GetTypes(); m_StreamingNames = m_StreamingTypes.Select(t => t.Name).ToArray(); }