I'm creating an object from a template in a tile map but I want to set the image programmatically at the time of object creation. Is this possible?
I tried the following, and various alternatives, but none worked:
I tried the following, and various alternatives, but none worked:
B4X:
Dim template As X2TileObjectTemplate = TileMap.GetObjectTemplateByName(ObjectLayer, "ball template")
template.CustomProps.Put("graphic file 1", "ball" & Rnd(0, BallCount) & ".png")
TileMap.CreateObject(template)