GetAssetPath
How do I use Get Asset Path
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
File name: PhotonEditor.cs
Copy
886 public static void ReLoadCurrentSettings()
887 {
888 // this now warns developers if there are more than one settings files in resources folders. first will be used.
889 UnityEngine.Object[] settingFiles = Resources.LoadAll(PhotonNetwork.serverSettingsAssetFile, typeof(ServerSettings));
890 if (settingFiles != null && settingFiles.Length > 0)
891 {
892 PhotonEditor.Current = (ServerSettings)settingFiles[0];
893
894 if (settingFiles.Length > 1)
895 {
896 Debug.LogWarning(CurrentLang.MoreThanOneLabel + PhotonNetwork.serverSettingsAssetFile + CurrentLang.FilesInResourceFolderLabel + AssetDatabase.GetAssetPath(PhotonEditor.Current));
897 }
898 }
899 }
GetAssetPath 152 lượt xem
Gõ tìm kiếm nhanh...