non-readable textures

Hello, I’m trying to insantiate a sprite object , that is in the “resources/TurnAvatar/” folder with this line:

GameObject avatar = Instantiate(Resources.Load(“TurnAvatar/” + name),TurnInfo.transform.position, Quaternion.identity)as GameObject;

the “name” var contains the name of the wanted sprite in the directory (in this case :“Knight”).
but i get this error message that I don’t quite get :
Instantiating a non-readable ‘Knight’ texture is not allowed! Please mark the texture readable in the inspector or don’t instantiate it.
UnityEngine.Object:Instantiate(Object, Vector3, Quaternion)

Are you trying to instantiate a texture? Or what kind of resource are you loading in Resources.Load?

If you want to create a sprite from a loaded texture it’s a bit of work. You’ll need to load the texture resource into a Texture2D, then call Sprite.Create to create the actual sprite object. And then assign that sprite object to the sprite property on a SpriteRenderer.