コード例 #1
0
            public SerializedProperties(SerializedObject serializedObject)
            {
                SDFGroup     = serializedObject.FindProperty("m_group");
                MainSettings = serializedObject.FindProperty("m_mainSettings");
                // AutoUpdate = MainSettings.FindPropertyRelative("m_autoUpdate");
                OutputMode         = MainSettings.FindPropertyRelative("m_outputMode");
                IsAsynchronous     = MainSettings.FindPropertyRelative("m_isAsynchronous");
                ProceduralMaterial = MainSettings.FindPropertyRelative("m_proceduralMaterial");

                AlgorithmSettings        = serializedObject.FindProperty("m_algorithmSettings");
                MaxAngleTolerance        = AlgorithmSettings.FindPropertyRelative("m_maxAngleTolerance");
                VisualNormalSmoothing    = AlgorithmSettings.FindPropertyRelative("m_visualNormalSmoothing");
                IsosurfaceExtractionType = AlgorithmSettings.FindPropertyRelative("m_isosurfaceExtractionType");
                ConstrainToCellUnits     = AlgorithmSettings.FindPropertyRelative("m_constrainToCellUnits");
                OverrideQEFSettings      = AlgorithmSettings.FindPropertyRelative("m_overrideQEFSettings");
                QEFSweeps = AlgorithmSettings.FindPropertyRelative("m_qefSweeps");
                QEFPseudoInverseThreshold          = AlgorithmSettings.FindPropertyRelative("m_qefPseudoInverseThreshold");
                EdgeIntersectionType               = AlgorithmSettings.FindPropertyRelative("m_edgeIntersectionType");
                BinarySearchIterations             = AlgorithmSettings.FindPropertyRelative("m_binarySearchIterations");
                ApplyGradientDescent               = AlgorithmSettings.FindPropertyRelative("m_applyGradientDescent");
                GradientDescentIterations          = AlgorithmSettings.FindPropertyRelative("m_gradientDescentIterations");
                NudgeVerticesToAverageNormalScalar = AlgorithmSettings.FindPropertyRelative("m_nudgeVerticesToAverageNormalScalar");
                NudgeMaxMagnitude = AlgorithmSettings.FindPropertyRelative("m_nudgeMaxMagnitude");

                VoxelSettings = serializedObject.FindProperty("m_voxelSettings");
                CellSizeMode  = VoxelSettings.FindPropertyRelative("m_cellSizeMode");
                CellSize      = VoxelSettings.FindPropertyRelative("m_cellSize");
                CellCount     = VoxelSettings.FindPropertyRelative("m_cellCount");
                VolumeSize    = VoxelSettings.FindPropertyRelative("m_volumeSize");
                CellDensity   = VoxelSettings.FindPropertyRelative("m_cellDensity");

                AddMeshRenderers     = serializedObject.FindProperty("m_addMeshRenderers");
                AddMeshColliders     = serializedObject.FindProperty("m_addMeshColliders");
                MeshRendererMaterial = serializedObject.FindProperty("m_meshRendererMaterial");
            }