Skip to main content

Foliage Plugin 2.1.0

Check this when you upgrade
  • On Foliage Harvested is now sent to one target only: the first of the Instigator, the Instigator's Pawn and the Damage Causer that implements the Foliage Plugin Interface. Before, both the Instigator and the Damage Causer could receive it, so a player could get the reward twice.
  • Save File Per Level is on by default. The first time a level loads without its own save file, it reads the shared file once and moves its data over. Turn the setting off to keep one file for all levels. See One save file per level.
  • A Foliage Actor that runs out of time without being depleted no longer counts as depleted. BPE On Foliage Depleted and the physics only run when the uses reach 0, so loot you drop in that event is no longer given for free.
  • The save finds instances by their mesh and original location instead of their index. Saves from older versions still load.
  • The default Field System Actor is now FoliagePluginFieldSystemActor instead of the engine's FS_MasterField. If your Plugin Settings still point to FS_MasterField, reset the setting. See Field System Actor.

New​

  • Interaction and pickups. Interact With Foliage harvests without damage, for example to pick berries. Harvest Without Actor gives the rewards and hides the instance without spawning a Foliage Actor. See Interaction and Pickups.
  • Respawn Delay per Data Table row, instead of a fixed 20 seconds. The delay is real time and is saved, so it continues while the server is offline.
  • Stumps and regrowth. A Stump Mesh shows where a harvested instance stood, and Regrow Duration lets it grow back when it respawns. See Stumps and Regrowth.
  • Idle Reset Time per row: a Foliage Actor that is not depleted turns back into the instance, with full uses, after this many seconds without hits.
  • Actor pooling. Foliage Actors can be reused instead of spawned and destroyed. See Actor pooling.
  • PCG and Instanced Static Meshes. Instances spawned by PCG or added to your own components can be harvested, and keep their state when PCG generates them again. See PCG and Instanced Static Meshes.
  • Auto Convert Instanced Meshes converts painted foliage, or all instanced meshes, when a level loads, so you don't have to change the Component Class. See Automatic conversion.
  • A Blueprint function library: Is Harvestable Foliage, Get Foliage Data From Hit, Get Foliage Actor From Hit and Get Foliage Manager.
  • Remove Foliage Instance on the Foliage Plugin Component, and Restore All Foliage Instances, Get Num Harvested Instances and the save functions on the Foliage Manager.
  • New Foliage Actor events: BPE On Foliage Interacted and BPE On Foliage Returned To Pool.

Improved​

  • Faster lookups and smaller network messages in levels with a lot of harvested foliage.
  • Respawn checks are spread over several frames, limited by the new Max Respawn Checks Per Frame setting.

Fixed​

  • Foliage with Enable Respawning off disappeared for good after a single hit, even when the Foliage Actor was never depleted.
  • Respawn timers restarted when the server restarted, so every saved instance respawned at the first check.
  • Clients got an extra, empty Geometry Collection Actor for every destructible mesh.
  • Destructible meshes could fail to break in packaged builds, because the default Field System Actor was an editor asset.
  • Material overrides on the foliage were lost when it turned into a Foliage Actor.
  • Trees fell in a different direction on the server and on each client.
  • The damage handler was not bound if something else had already bound the instance damage event.
  • Remaining uses on clients could be lost when they arrived before the Foliage Actor's data.
  • Harvested foliage from one level was loaded and replicated in every other level.

Foliage Plugin 2.0.1

General​

PCG documentation

  • Added support for PCG, set Component Class to FoliagePluginComponent in the Static Mesh Spawner Descriptor
  • Instances generated by PCG can be harvested, both when generated in the editor and at runtime
  • FoliagePluginComponent can now be added to your own Actors and harvested like painted foliage
  • Harvested and removed instances are now matched by mesh and original location instead of instance index
  • Harvested instances stay hidden when foliage is repainted, PCG regenerates or a component is replaced
  • Harvested instances are hidden again after a component’s instances change at runtime
  • Saves from 2.0.0 still load and are updated automatically

Foliage Plugin 2.0

Requires UE 5.1 or later. UE 4.27 is no longer supported.

General​

  • Added Foliage Plugin Geometry Collection Actor. This new actor shows the destructible mesh of a Foliage Actor
  • Added the Geometry Collection Actor Class setting to Plugin Settings. You can set your own Blueprint child class here to add custom logic to the destructible mesh.
  • Saving is asynchronous and only happens when something changed
  • If you paint or erase foliage after release, saved instances are found again by their original location.
  • Field System Actor Life Span
  • The navigation mesh updates when foliage is harvested or respawns
  • Copied or duplicated foliage components no longer get the same ID
  • The foliage mesh now always shows on the Foliage Actor

Multiplayer​

  • Instances no longer respawn while their Foliage Actor still exists
  • Respawn no longer restores the wrong instance on clients
  • Clients no longer get duplicate instances when the same data is received more than once

Damage fixes​

  • Radial damage no longer hits the wrong instances
  • Handle Foliage Reward and BPE On Foliage Damaged always received UDamageType instead of the actual damage type
  • Damage now reaches the destructible mesh after an instance with a destructible version has been hit
  • The Foliage Actor static mesh is now hidden and its collision disabled while the destructible mesh is shown
  • Resources with a destructible mesh no longer simulate physics on depletion when the destructible mesh is shown

Breaking changes​

  • UE4 support has been removed, and the plugin no longer depends on ApexDestruction.

Foliage Plugin 1.7.8

General​

  • Changed how the foliage data table is loaded on startup
  • Fixed linking/packaging issues that occured in some configurations that did not include the plugin when packaging

Foliage Plugin 1.7.7

Replication​

  • Fixed foliage instances not being replicated correctly with the new replication system

Foliage Plugin 1.7.3

General​

  • Fixed a race condition where the plugin intitialized before engine modules
  • Fixed an issue where delegates were not unbound in the foliage component on endplay

Foliage Plugin 1.7.2

General​

  • Fixed an issue with respawning foliage and auto saving was disabled
    Thanks to Rhomita for reporting this issue