コード例 #1
0
        protected virtual void OnEnable()
        {
            this.waterVolumeTarget = (WaterVolume)this.target;

            this.density             = this.serializedObject.FindProperty("density");
            this.rows                = this.serializedObject.FindProperty("rows");
            this.columns             = this.serializedObject.FindProperty("columns");
            this.quadSegmentSize     = this.serializedObject.FindProperty("quadSegmentSize");
            this.autoUpdateWaterMesh = this.serializedObject.FindProperty("autoUpdateWaterMesh");
            //this.debugTrans = this.serializedObject.FindProperty("debugTrans");

            Undo.undoRedoPerformed += this.OnUndoRedoPerformed;
        }