버전

menu_open
Wwise SDK 2022.1.16

◆ ak_wwise_plugin_undo_group_close_action

Action to apply once this undo group is closed.

The goal of an undo group is to keep a list of actions being executed that can be undone (for example, a property set modification). Once the operations are all done, this indicates what should be done with the internal operations.

  • AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_APPLY : The usual operation is to open an undo group, and then close and apply the group to the undo stack. This provides a valid Undo/Redo label, as well as a description of all the operations that need to be done.
  • AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_APPLY_FIRST_EVENT_NAME and AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_APPLY_LAST_EVENT_NAME are convenience operations, where the Undo operation title is retrieved from either the first or the last event's name, instead of hard-coding it ourselves.
  • AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_CANCEL cancels the undo operations. It happens when an abnormal termination occurs, such as an error, or the user cancelling a lengthy operation. Since the operation states aren't known, you are responsible to handle the stored undo yourself, and manually revert all operations first before closing the action. An example of this operation is doing a slider drag event, where the user presses the Escape key instead of doing a Mouse Up. Effectively, all the inner operations will simply be cancelled by storing the initial value before doing the cancel operation on close.
  • AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_CLOSE temporarily closes the undo state, leaving it possible to reopen it later. This is useful during lengthy processes, such as a user dragging a slider. You are expected to temporarily close the undo group when going out of scope, and reopening it when receiving a new system mouse drag event in this particular example.
열거형 멤버
AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_CLOSE 

Close this group session (going out of scope), but do not apply it yet.

AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_APPLY 

Close this group session permanently, and apply its operations to the englobing group.

AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_APPLY_FIRST_EVENT_NAME 

Same than AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_APPLY, but copies the name of the first inner undo event as the name.

AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_APPLY_LAST_EVENT_NAME 

Same than AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_APPLY, but copies the name of the last inner undo event as the name.

AK_WWISE_PLUGIN_UNDO_GROUP_CLOSE_ACTION_CANCEL 

Close this group session permanently, and cancel all its internal operations. Undo operations are not applied.

PluginDef.h 파일의 957 번째 라인에서 정의되었습니다.


이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요