ezEngine  Release 25.03
ezOnComponentFinishedAction2 Struct Reference

Same as ezOnComponentFinishedAction, but additionally includes 'Restart'. More...

#include <Declarations.h>

Inheritance diagram for ezOnComponentFinishedAction2:

Public Types

enum  Enum {
  None, DeleteComponent, DeleteGameObject, Restart,
  Default = None
}
 
using StorageType = ezUInt8
 

Static Public Member Functions

static void HandleFinishedAction (ezComponent *pComponent, ezOnComponentFinishedAction2::Enum action)
 See ezOnComponentFinishedAction::HandleFinishedAction()
 
static void HandleDeleteObjectMsg (ezMsgDeleteGameObject &ref_msg, ezEnum< ezOnComponentFinishedAction2 > &ref_action)
 See ezOnComponentFinishedAction::HandleDeleteObjectMsg()
 

Detailed Description

Same as ezOnComponentFinishedAction, but additionally includes 'Restart'.

Member Enumeration Documentation

◆ Enum

Enumerator
None 

Nothing happens after the action is finished.

DeleteComponent 

The component deletes only itself, but its game object stays.

DeleteGameObject 

When finished the component deletes its owner game object. If there are multiple objects with this mode, the component instead deletes itself, and only the last such component deletes the game object.

Restart 

When finished, restart from the beginning.


The documentation for this struct was generated from the following files: