load sprite resources in asset with string

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

the sprite name is

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


body.sprite = Resources.Load (bodystring);

will it work?


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.