c# - Resourses.LoadAll not working -


I'm trying to load in the Sprite Array Sprite, using the code, the editor is cut into the editor, 0 gives. A folder named "Sprites" is in the folder of properties and a cut image is in Sprites, why is not it working?

  Sprite [] sprites = resources.LoadAll & lt; Sprite & gt; ("Sprites");    

The Spirits folder should be in the Resources folder. Like this:

Enter image details here

Also Is to indicate that your code is Sprite . Is looking for files marked as. Sprite [] sprites = Resources.LoadAll & lt; Sprite & gt; ("Sprites");

This means that your images should be in this format or they will not be added to the array.

Enter image details here

Or you can just add them all Can load as a type of object:

  object [] Sprites = resource Load ("Sprites");  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -