Class PrefabPasteEvent

All Implemented Interfaces:
ICancellableEcsEvent

public class PrefabPasteEvent extends CancellableEcsEvent
An event that is fired when a prefab paste starts or ends in a world.

If cancelled, the prefab paste will not occur.

  • Constructor Details

    • PrefabPasteEvent

      public PrefabPasteEvent(int prefabId, boolean pasteStart)
      Default Constructor for a PrefabPasteEvent instance.
      Parameters:
      prefabId - The ID of the prefab being pasted.
      pasteStart - Whether the paste is starting or ending.
  • Method Details

    • getPrefabId

      public int getPrefabId()
      Returns:
      The ID of the prefab being pasted.
    • isPasteStart

      public boolean isPasteStart()
      Returns:
      true if the paste is starting, false if it is ending.