Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

BuildPipeline.GetPlaybackEngineDirectory

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static string GetPlaybackEngineDirectory(BuildTarget target, BuildOptions options);

Parameters

Parameter Description
target The build target to get the Player directory for.
options The build options for the Player.

Returns

string The path to the Player directory for the specified build target.

Description

Gets the path of the Player directory for a build target.

For example, Editor\Data\PlaybackEngines\AndroidPlayer. The path can depend on BuildOptions.Development. If the build target isn't supported, this overload logs an error.


Declaration

public static string GetPlaybackEngineDirectory(BuildTarget target, BuildOptions options, bool assertUnsupportedPlatforms);

Parameters

Parameter Description
target The build target to get the Player directory for.
options The build options for the Player.
assertUnsupportedPlatforms Set to true to log an error if the build target isn't supported. Set to false to return an empty string instead.

Returns

string The path to the Player directory for the specified build target.

Description

Gets the path of the Player directory for a build target, with the option to suppress errors for unsupported targets.

For example, Editor\Data\PlaybackEngines\AndroidPlayer. The path can depend on BuildOptions.Development.


Declaration

public static string GetPlaybackEngineDirectory(BuildTargetGroup buildTargetGroup, BuildTarget target, BuildOptions options);

Parameters

Parameter Description
buildTargetGroup The build target group that the build target belongs to.
target The build target to get the Player directory for.
options The build options for the Player.

Returns

string The path to the Player directory for the specified build target.

Description

Gets the path of the Player directory for a build target in a build target group.

For example, Editor\Data\PlaybackEngines\AndroidPlayer. The path can depend on BuildOptions.Development. If the build target isn't supported, this overload logs an error.


Declaration

public static string GetPlaybackEngineDirectory(BuildTargetGroup buildTargetGroup, BuildTarget target, BuildOptions options, bool assertUnsupportedPlatforms);

Parameters

Parameter Description
buildTargetGroup The build target group that the build target belongs to.
target The build target to get the Player directory for.
options The build options for the Player.
assertUnsupportedPlatforms Set to true to log an error if the build target isn't supported. Set to false to return an empty string instead.

Returns

string The path to the Player directory for the specified build target.

Description

Gets the path of the Player directory for a build target in a build target group, with the option to suppress errors for unsupported targets.

For example, Editor\Data\PlaybackEngines\AndroidPlayer. The path can depend on BuildOptions.Development.