public void OnInspectorGUI()
        {
            EditorGUILayout.Space();

            EditorGUILayout.LabelField("Vegetation Studio Pro", GUIStyles.GroupTitleStyle);

            GUILayout.BeginHorizontal();
            {
                // create biome mask
                if (GUILayout.Button("Refresh Vegetation"))
                {
                    VegetationStudioProUtils.RefreshVegetation();
                }
            }
            GUILayout.EndHorizontal();
        }
        private void CreateLineMask()
        {
            if (editorTarget.dataSource == null)
            {
                Debug.LogError("Container isn't set. Please specify a GameObject which contains transforms as children.");
                return;
            }

            List <Vector3> positions = GetPositions();

            // closed path: connect last with first position
            if (closedPath.boolValue && positions.Count > 1)
            {
                // add first position as last position
                positions.Add(positions[0]);
            }

            mask.ClearNodes();
            mask.AddNodesToEnd(positions.ToArray());

            VegetationStudioProUtils.RefreshVegetation();
        }
        private void ClearLineMask()
        {
            mask.ClearNodes();

            VegetationStudioProUtils.RefreshVegetation();
        }