5using System.Diagnostics.CodeAnalysis;
10 public sealed partial class Asset
26 public static Boolean
Enabled => AssetDatabase.IsCacheServerEnabled();
35 public static Boolean
Connected => AssetDatabase.IsConnectedToCacheServer();
59 public static String
Address => AssetDatabase.GetCacheServerAddress();
71 public static UInt16
Port => AssetDatabase.GetCacheServerPort();
80 public static String
NamespacePrefix => AssetDatabase.GetCacheServerNamespacePrefix();
89 public static Boolean
UploadsAllowed => AssetDatabase.GetCacheServerEnableUpload();
98 public static Boolean
DownloadsAllowed => AssetDatabase.GetCacheServerEnableDownload();
107 [ExcludeFromCodeCoverage]
121 [ExcludeFromCodeCoverage]
122 public static Boolean
CanConnect([NotNull] String ipAddress, UInt16 port) =>
123 AssetDatabase.CanConnectToCacheServer(ipAddress, port);
133 [ExcludeFromCodeCoverage]
143 [ExcludeFromCodeCoverage]
144 public static void Disconnect() => AssetDatabase.CloseCacheServerConnection();
static void Disconnect()
Disconnects any active cache server (Accelerator) connection.
static String NamespacePrefix
Returns the cache server (Accelerator) namespace prefix from Project Settings.
static Boolean Enabled
Returns true if cache server (Accelerator) is enabled in Project Settings / Preferences.
static Boolean Connected
Returns true if the editor is connected to a cache server (Accelerator).
static Boolean DownloadsAllowed
Returns whether the cache server (Accelerator) is allowed to download files.
static Boolean CanConnect([NotNull] String ipAddress, UInt16 port)
Tests if the cache server (Accelerator) connection can be established with the given IP address and p...
static String Address
Returns the cache server (Accelerator) IP address from Project Settings.
static void ResetReconnectTimer()
Resets the internal reconnect timer which subsequently increases to up to 5 minutes if connection att...
static String ConnectedAddress
Returns the cache server (Accelerator) IP address the editor is currently connected to.
static void ApplySettings()
Applies modified cache server (Accelerator) settings so that they take effect immediately.
static UInt16 Port
Returns the cache server (Accelerator) port number from Project Settings.
static Boolean UploadsAllowed
Returns whether the cache server (Accelerator) is allowed to upload files.
Groups CacheServer (Accelerator) related functionality.
Groups all asset database functionality.