playMaker

Author Topic: is a sprite I create in playmaker an Instance ?  (Read 906 times)

t4d

  • Junior Playmaker
  • **
  • Posts: 70
is a sprite I create in playmaker an Instance ?
« on: June 06, 2018, 01:40:43 AM »
HI I'm dealing afew issues and need to explain

I need to capture the screen with GUI and place it on a GUI object

I'm using Screen capture manager from the asset store ( the only one that can  capture the GUI ) the data I get from that is a Texture2D object

I convert by sending to a Bolt variable  and bring it back as a Texture

then i convert it to a Sprite and apply a Gui Texture objects in my scene

I do this to 5 different screen captures ( let's say 5 pages ) to 5 gui objects

I have 5 different Texture Variables  ( Page_1,Page2, Page 3,Page 4, Page5 )


Now I'm running into an issue where I have a different variable each step in the chain ( Page1Capture, Page1FromBolt, Page1ConverttoSprite etc)

but when I apply to the final variable let say Page2ConverttoSprite2
ALL the sprites Variables get updated? 
Page1ConverttoSprite,
Page2ConverttoSprite
Page3ConverttoSprite
Page4ConverttoSprite
Page5ConverttoSprite

to explain again   when i apply a new texture to GUI page 5 all sprites in the code get updated ?

is the sprite data a Instance?  i think it is because all data related to that instance is getting updated ? and the sprite does not have a name  ?

I was thinking since i sent it to Bolt and back and the converted each image data in it's own Variable at each step in the command chain it is would be isolated  ?

currently very confused how to proceed ??