WowAddons

World of Warcraft Forever API · C_UIFileAsset.md, for your AI

C_UIFileAsset

3 functions, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_UIFileAsset.GetFileID

assetFileID = C_UIFileAsset.GetFileID(asset)

Returns the numeric file ID associated with a file asset.

Arguments

assetFileAsset

Returns

assetFileIDfileID may be nilThe file ID corresponding to the given asset. If the asset is already a file ID, it is returned unchanged; otherwise returns nil if the file path is not known to the client.

C_UIFileAsset.IsKnownFile

isValid = C_UIFileAsset.IsKnownFile(asset)

Determines whether a file asset is known to the client, either as a shipped asset or a locally existing loose file.

Arguments

assetFileAsset

Returns

isValidboolTrue if the asset is shipped with the client or refers to a known loose file. Existence or openability of loose files is not verified.

C_UIFileAsset.IsLooseFile

isLooseFile = C_UIFileAsset.IsLooseFile(asset)

Determines whether a file asset refers to a known loose (local) file.

Arguments

assetFileAsset

Returns

isLooseFileboolTrue if the asset refers to a loose file known to the client.

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows