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.