Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: t4d on June 04, 2018, 12:21:23 AM

Title: how to Change object 2Dtexture in to sprite or something i can uses ?
Post by: t4d on June 04, 2018, 12:21:23 AM
HI I using a Screen Capture ( Screenshot manager ) and I can get the Image data from playmaker but it stores it as a object type -Texture2D

how can I use that data ?  I can't access the variable object type -Texture2D
from Set sprite or set image or set texture ???
Title: Re: how to Change object 2Dtexture in to sprite or something i can uses ?
Post by: djaydino on June 05, 2018, 05:53:35 PM
Hi,
There is an action on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) called "ConvertTextureToSprite"

use that to convert to sprite and use that variable on the set sprite

If you use for example the action "Take Camera Screenshot Texture" from the ecosystem.

you need to do the convert in the next state OR Enable Action Sequence (right click in the state window)
Title: Re: how to Change object 2Dtexture in to sprite or something i can uses ?
Post by: t4d on June 05, 2018, 10:14:59 PM
no sprite or any texture actions can not access the texture2D object that I get from the Screen capture manager (i'm using screen capture manager because i need to capture the GUI as well )

playmaker not give access to a Texture2D object seems to be the problem.
Title: Re: how to Change object 2Dtexture in to sprite or something i can uses ?
Post by: djaydino on June 06, 2018, 01:34:55 AM
Hi,
I will lock this post and continue on your other post (http://hutonggames.com/playmakerforum/index.php?topic=18908.0) as it is about the same issue.