embedding sources dynamically
问题 is it possible to embed sources dynamically. instead of doing this [Embed(source = '../../../../assets/levels/test.xml')] I could probably do something like this var src = '../../../../assets/levels/test.xml' [Embed(source = src )] 回答1: It's not possible for anything within metadata annotations to be dynamic :/. That is, you can't place variables into metadata annotations. If that was possible, there would be SO many cool possibilities. So your first option is the only way to directly embed