playMaker

Author Topic: Texture2d to Texture [SOLVED]  (Read 1361 times)

klvo

  • Playmaker Newbie
  • *
  • Posts: 13
Texture2d to Texture [SOLVED]
« on: January 13, 2017, 07:02:39 AM »
Hi, I'm trying to assign a texture to a material using the action Set Material Texture, but it only accepts texture of type Texture, and the texture I'm getting from my script can only be created as a Texture2d because of its functionality (using EncodeToPNG).

I tried modifying the Set Material Texture to accept a Texture2D, but seems like I can only create an FsmTexture and not an FsmTexture2D.

I can manually drag the same textures to both types of variables in the editor, but not using actions.
How can I set a Texture2D to a material using Playmaker?

Thanks, been trying this for hours but found no answer.




« Last Edit: January 13, 2017, 07:14:10 AM by klvo »

klvo

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Texture2d to Texture
« Reply #1 on: January 13, 2017, 07:13:03 AM »
Total noob...

In my script I'm now doing this:

Texture = Texture2D

Works fine