主题
GameUI
AssemblySetup 仅客户端
命名空间 GameUI
csharp
public static class AssemblySetup属性
Loaded 仅客户端
csharp
public static bool Loaded { get; }Loading 仅客户端
csharp
public static bool Loading { get; }方法
Setup 仅客户端
csharp
public static void Setup()ImageCache 仅客户端
命名空间 GameUI
csharp
public static class ImageCacheControls the image cache of the current GameUI view.
方法
Invalidate 仅客户端
csharp
public static bool Invalidate(string imagePath)Invalidates one cached image path so it is loaded again the next time it is drawn.
imagePath— The same logical image path used by a GameUI control orCanvas.DrawImage.
返回: true when an active GameUI view accepted the invalidation request; otherwise false.
备注
This is intended for replacing a loose image file at the same path during development or testing. Atlas entries and other packaged image collections may require rebuilding or restarting the game view. Runtime textures whose names start with RT: must be removed with String) instead.
RuntimeTexture 仅客户端
命名空间 GameUI
csharp
public static class RuntimeTextureRegisters runtime GPU textures so GameUI image properties can reference them by name.
方法
NormalizeName 仅客户端
csharp
public static string NormalizeName(string name)Converts a runtime texture image name to the canonical RT-prefixed form.
Register 仅客户端
csharp
public static bool Register(string name, Texture2D texture)Registers a Texture2D as a GameUI runtime image.
Unregister 仅客户端
csharp
public static bool Unregister(string name)Removes a GameUI runtime image registration.
字段
Prefix 仅客户端
csharp
public const string PrefixPrefix used by runtime texture image names.
ScopeData 仅客户端
命名空间 GameUI
csharp
public class ScopeData : IGameClass构造函数
ScopeData 仅客户端
csharp
public ScopeData()方法
OnRegisterGameClass 仅客户端
csharp
public static void OnRegisterGameClass()Called during game class registration phase to initialize scope data.