-
Notifications
You must be signed in to change notification settings - Fork 0
Show images and atlas region
Radomiej edited this page Apr 2, 2017
·
3 revisions
If you need show image from single image file or atlas file you can use SpriteRenderer component.
Show image:
JGameObject logo = scene.instantiateGameObject(new Vector2(100, 200));
logo.addComponent(new SpriteRenderer("resources/atlas/images.png"));Show image region:
JGameObject logo = scene.instantiateGameObject(new Vector2(100, 200));
logo.addComponent(new SpriteRenderer("resources/atlas/images.atlas#regionName"));*Supported image format are: .png, .jpg, .bmp