Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Miniking on May 30, 2020, 07:04:29 PM
-
I have a problem how use this.
I try All ways to find a texture image in folder, I try:
Assets/Cards/XXX.jpg
Cards/XXX.jpg
//Assets/Cards/XXX.jpg
//Cards/XXX.jpg
//XXX.jpg
And no any response , only a blank Var :(
+ Any convert String to Int Dont work!
-
The answer is already at the topic title :D
You should place all your stuff in the folder named "Resources".
//Assets/Resources/xxx [EDITED: don't put the extension of the file in the path]
https://docs.unity3d.com/ScriptReference/Resources.Load.html
-
Dont work :
//Assets/Resources/xxx.jpg
to beters explain, the action "Resource Load"
Need :
Path //Assets/Resources/xxx.jpg
Type var Texture
Store Asset VarTest
I dont load any texture to var :(
-
Hi.
Resources load can load what's 'inside' a Resources folder.
Best is to use sub folders.
Create a folder called Resources anywhere in the project.
Then create a folder inside it (call it "MyImages" for example)
Then inside it place you image (xxx.jpg)
In the action, set the Path of whats "behind" Resources/
Also do not add the .jpg extension.
So in this case it would be "MyImages/xxx"
-
Yeahhhhhhhhhhh now work fine!
Thank you for this great Help!!!!
;D ;D ;D ;D ;D ;D