T
T
TheTalion2017-05-16 05:23:22
C++ / C#
TheTalion, 2017-05-16 05:23:22

How to cut an image into sprites received via url (website\folder) in unity?

Suppose I have strict standards for the picture (the canvas itself is of a certain size, the sprites in it are at a certain distance, etc.), for example:
b7NSmmO.png
How can I specify the path to the picture from the code, cut it into sprites and throw links to them into a pre-declared array ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Delakey Blackhole, 2017-05-16
@TheTalion

to load by url, the WWW class is used
to create sprites, the Sprite.Create method, textures are passed to it, coordinates from where to where to cut and
20170516-y2pg-371kb.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question