load sprite resources in asset with string

i want to change sprites with the string in the assets.

the sprite name is 1.3.1.2

i created a string with the int variables: healthstatus,age,happy,stomach.

bodystring=(“w”+“.”+“x”+“.”+“y”+“.”+“z”;healthstatus,age,happy,stomach);

body.sprite = Resources.Load (bodystring);

will it work?

Hello.

bodystring = w.ToString()+"."+x.ToString()+"."+ ..... + healthstatus.ToString()+age.ToString()+ .....

bodysprite = Resources.Load(bodystring) as Sprite;

Remeber you need to configure the image in resources folder as a sprite type! you can do it in the inspector once selected the image in the folder.

Bye!