Is there a way to check and see if an image was displayed or if one exists?
colander
Member Posts: 1,610
I have a list of event names in a table which is imported from a server and I named my images which display event names to match. I am using spawned actors to display the names with a Constrain Attribute self.image To tableCellValue( game.tblEventNames , self.meID ,1) in each actor.
This works as expected displaying all the event names in separate actors on the screen ready for the user to choose one. The problem occurs when a new event is added and there is no matching image in the app for it. The actor is just a white square on the screen.
Is there a condition I can use to check if an image was displayed or if one exists?
Comments
No, there is not so you would need to make sure you have the actual image file available that you call upon.
@JSproject thanks. I didn't think so but I thought I would check anyway. I got around it by creating a table to list all the image names in and I check the imported table event names against that. If it is not there I use a blank image with Text Display and will upload a new image in the next app update.
Universal Binary Template - Universal Binary Template Instructions Rev 4 (Short) - Custom Score Display Template
No problem and yeah, that's the way to do it!