Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: diegographics on August 18, 2015, 07:46:34 PM

Title: Texture from WWW object to sprite[SOLVED]
Post by: diegographics on August 18, 2015, 07:46:34 PM
Hello,
i load a texture ( a profile picture from wordpress user) from web and want to put it in a unity UI Image but i don't find any action to convert textures to sprites and there is also no sprite variable, only a texture variable in playmaker.

is there any way to put the texture on the UI image?

 :)  ::) excuse my bad english.
Title: Re: Texture from WWW object to sprite
Post by: diegographics on August 19, 2015, 01:32:15 PM
Have anybody a answer to my question please ?
Title: Re: Texture from WWW object to sprite
Post by: dudebxl on August 19, 2015, 06:03:56 PM
does this help:http://answers.unity3d.com/questions/938516/convert-texture2d-to-sprite.html
Title: Re: Texture from WWW object to sprite
Post by: diegographics on August 20, 2015, 04:04:29 AM
does this help:http://answers.unity3d.com/questions/938516/convert-texture2d-to-sprite.html

Thankyou for your reply, i already read this article but i look for a solution directly in playmaker, because i have actually make a complete wordpress login api with playmaker, so i dont want one smaler functionality solve with hardcode, it would be great if they are a solution to make it directly in playmaker
Title: Re: Texture from WWW object to sprite
Post by: jeanfabre on August 20, 2015, 01:37:09 PM
Hi,

 I created a new custom action for this. you can get it on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)

 WWWSprite (https://github.com/jeanfabre/PlayMakerCustomActions_U4/blob/master/Assets/PlayMaker%20Custom%20Actions/Sprite/WWWSprite.cs)

 Bye,

 Jean