ドキュメント

Unity Engine

Unity Engine

GetUnityTargetName()

Deprecated. Returns the default main target name in Unity project.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

注意
Removed. This function is deprecated. There are two targets now, call GetUnityMainTargetGuid() - for app or GetUnityFrameworkTargetGuid() - for source/plugins to get Guid instead of calling to TargetGuidByName(GetUnityTargetName()).
public static string GetUnityTargetName()

Returns

Type

Description

stringThe default main target name.

Remarks

Deprecated. The returned target name can then be used to retrieve the GUID of the target via PBXProject.TargetGuidByName function. This function can only be used in Unity-generated projects. Use PBXProject.GetUnityMainTargetGuid or PBXProject.GetUnityFrameworkTargetGuid to get GUID. You need not call PBXProject.TargetGuidByName function.