New trusted macro function createAsset(name,imageData) that will return an asset:\\< asset ID > value on success.
Checks are made for data types and only webp,jpg,png are permitted raw data types.
Possible Drawbacks
createAsset can allow scriptable asset creation and if implemented improperly, could be campaign breaking.
With great power comes great responsibility.
Release Notes
Examples:
[r: createAsset("Test", < raw image data >)]
outputs
asset:\\< asset ID >
Description of the Change
New trusted macro function
createAsset(name,imageData)
that will return anasset:\\< asset ID >
value on success. Checks are made for data types and onlywebp
,jpg
,png
are permitted raw data types.Possible Drawbacks
createAsset
can allow scriptable asset creation and if implemented improperly, could be campaign breaking. With great power comes great responsibility.Release Notes
Examples:
[r: createAsset("Test", < raw image data >)]
outputsasset:\\< asset ID >
This change is