- Home /
creating a list of texture2d components
I am making a game and right now I want to create the splash screens. I have a total of two screens and what I want to do is create a public list comprising of Texture2D where the user specifies how many textures he/she wants to add and then draw them onto the screen using OnGUI method. My issue wis that when I GUI.DrawTexture and pass the list it gives me an error saying that argument 2 is wrong.
Here is what I have done so far:
public int _WaitTimeBetweenScreens; public List _Screen;
private void OnGUI()
{
GUI.DrawTexture(_someRect, _Screen);
}
Can anyone help me figure out how to get it to draw the texture correctly? Many thanks in advance!
Your answer
Follow this Question
Related Questions
C# Applying Transparency to a Single GUI.Button 1 Answer
C# Boolean Doesn't Change Value 1 Answer
Enable and disable a button selection 3 Answers
Issues creating a progress bar 1 Answer
Issues with Render Texture 1 Answer