- Home /
Question by
RaiSacdalandrs · Jul 23, 2013 at 03:36 AM ·
objectimagepuzzle
Split Image
Hi guys, Im new with puzzle game genre in unity, How can i split an image to other object ? I want to create a jigsaw puzzle thats why im asking for it.
Comment
Answer by chris_taylor · Jul 23, 2013 at 05:07 AM
You could use Texture2D.GetPixels and setPixels to create textures at runtime or a faster method is to give all parts the same Texture but differnt materials and change the offset and scale parameters
link to Texture2D documentation http://docs.unity3d.com/Documentation/ScriptReference/Texture2D.html