using System; namespace UnityEditor.TestTools { /// /// An interface for a callback modifying the when building a player for running tests in the runtime. /// public interface ITestPlayerBuildModifier { /// /// A callback to modify the when building a player for test run. Return the modified version of the provided build options. /// /// The unmodified BuildPlayerOptions. /// The modified BuildPlayerOptions. BuildPlayerOptions ModifyOptions(BuildPlayerOptions playerOptions); #if UNITY_6000_1_OR_NEWER /// /// A callback to modify the when building a player for test run. When called a /// should be specified. Build pipeline will use the /// instead of when a build profile is given. /// /// The unmodified BuildPlayerWithProfileOptions, does not specify a build profile. /// The modified BuildPlayerWithProfileOptions. If a build profile is given, then is /// used to build the player. BuildPlayerWithProfileOptions ModifyOptions(BuildPlayerWithProfileOptions playerOptions) { return playerOptions; } #endif } }