Esempio n. 1
0
 public void SyncOptions()
 {
     if (Foliage != null && InstanceIndex > -1 && InstanceIndex < Foliage.InstancesCount)
     {
         _instance = Foliage.GetInstance(InstanceIndex);
     }
 }
        /// <inheritdoc />
        public void Do()
        {
            var foliageId = _foliageId;
            var foliage   = FlaxEngine.Object.Find <FlaxEngine.Foliage>(ref foliageId);

            _instance = foliage.GetInstance(_index);
            foliage.RemoveInstance(_index);
            foliage.RebuildClusters();

            Editor.Instance.Scene.MarkSceneEdited(foliage.Scene);
        }