BuildPlayerWindow.RegisterBuildPlayerHandler

public static void RegisterBuildPlayerHandler(Action<BuildPlayerOptions> func);

Parameters

funcDelegate System.Action that takes a BuildPipeline.BuildPlayerOptions parameter.

Description 描述

Register a delegate to intercept or override the build process executed with the "Build" and "Build and Run" buttons. Registering a null value will restore default behavior, which is the equivalent of calling BuildPlayerWindow.DefaultBuildMethods.BuildPlayer.