Version: 2022.1
言語: 日本語
public static string GetCurrentCacheServerIp ();

戻り値

string Returns a string representation of the current Cache Server IP address.

説明

現在、エディターによって使用中のキャッシュサーバーの 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!"); } }