BuildPlayerWindow.RegisterGetBuildPlayerOptionsHandler

Cambiar al Manual
public static void RegisterGetBuildPlayerOptionsHandler (Func<BuildPlayerOptions,BuildPlayerOptions> func);

Parámetros

funcDelegate System.Func that takes a BuildPlayerOptions parameter. The value passed into the delegate will represent default options. The return value will be passed to the default build player handler, or to a custom handler set with BuildPlayerWindow.RegisterBuildPlayerHandler.

Descripción

Register a delegate method to calculate BuildPlayerOptions that are passed to the build player handler. Registering a null value will restore default behavior, which is the equivalent of calling BuildPlayerWindow.DefaultBuildMethods.GetBuildPlayerOptions.

If this delegate is registered and used in conjunction with the default build player handler, be sure to set BuildPlayerOptions.scenes, BuildPlayerOptions.locationPathName, and BuildPlayerOptions.target before exiting for the build process to proceed correctly.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961