Auki::ConjureKit::Manna::DebugStorage::MetadataEncodingUtility
A utility class for encoding and decoding metadata inside a textures as pixels.
Public Functions
Name | |
---|---|
void | EncodeMetadata(string metadata, Texture2D targetTexture) Encodes the provided metadata string into the target texture. |
string | DecodeMetadata(Texture2D sourceTexture) Decodes metadata from the provided source texture. |
Public Functions Documentation
function EncodeMetadata
static void EncodeMetadata(
string metadata,
Texture2D targetTexture
)
Encodes the provided metadata string into the target texture.
Parameters:
- metadata The metadata string to encode.
- targetTexture The target Texture2D to store the metadata in.
function DecodeMetadata
static string DecodeMetadata(
Texture2D sourceTexture
)
Decodes metadata from the provided source texture.
Parameters:
- sourceTexture The source Texture2D containing encoded metadata.
Return: The decoded metadata string.