playMaker

Author Topic: how to Change object 2Dtexture in to sprite or something i can uses ?  (Read 1474 times)

t4d

  • Junior Playmaker
  • **
  • Posts: 70
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 ???
« Last Edit: June 04, 2018, 03:24:21 AM by t4d »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Hi,
There is an action on the Ecosystem 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)

t4d

  • Junior Playmaker
  • **
  • Posts: 70
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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Hi,
I will lock this post and continue on your other post as it is about the same issue.