Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetUnityTargetName()

Deprecated. Returns the default main target name in Unity project.
Read time 1 minuteLast updated 9 days ago

Definition

Warning
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.