Unity 6.3
0 онлайн 21 гостей 3 в системе
Вход

AssetDatabase.GetCurrentCacheServerIp

Declaration

public static string GetCurrentCacheServerIp();

Возвращаемое значение

строка Возвращает строку, представляющую текущий адрес Сервера Кэширования IP.

Описание

Получает адрес IP Сервера Кэширования, который в данный момент используется Редактором.

using UnityEditor;
using UnityEngine;

public class AssetDatabaseExamples : AssetPostprocessor { static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths) { //Throw a warning in the console if Cache Server IP is not set or could not be connected to if(AssetDatabase.GetCurrentCacheServerIp() == "") Debug.LogWarning("Cache Server IP is not set!"); } }