#SetImage problem 2.0

1 messages · Page 1 of 1 (latest)

strange storm
#

here is the path to the image "E:\SteamLibrary\steamapps\common\dota 2 beta\content\dota_addons\dotacycle\images\custom_game\UnitsPortrait\Ranged\portrait_npc_sniper_1.png"

cursive silo
#

compile you image from png to css

#

just put image link to any css or xml

strange storm
#

I didn't quite understand what that meant?

cursive silo
#

to vtex i mean

raw plank
#

iirc should be <Image src=... instead <Image file=...

#

about .SetImage error: image should be precompiled before use it by .SetImage

zealous cloak
#

try
<Image src="file://images/custom_game/UnitsPortrait/Ranged/portrait_npc_sniper_1.png" />

#

also it might not be compiling the images automatically so you may want to find the "compiled_res.xml" file in your asset browser, right click and select compile