Version: 2022.1
言語: 日本語

Undo.postprocessModifications

マニュアルに切り替える
public static Undo.PostprocessModifications postprocessModifications ;

説明

Callback that is triggered whenever a new set of property modifications is created.

using UnityEditor;
using UnityEngine;

public class ExamplePostprocessModificationScript : MonoBehaviour { void Start() { Undo.postprocessModifications += MyPostprocessModificationsCallback; }

void OnDestroy() { Undo.postprocessModifications -= MyPostprocessModificationsCallback; }

UndoPropertyModification[] MyPostprocessModificationsCallback(UndoPropertyModification[] modifications) { // here, you can perform processing of the recorded modifications before returning them return modifications; } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961