Quantcast
Browsing latest articles
Browse All 6 View Live

Answer by Hoeloe

If you're using C#, you can use the generic datatype Tuple to store those two different types. Arrays, in general, can only store one type, but by wrapping both types into a single container, you can...

View Article


Answer by Brahim113

Array of struct object that contains what you need? public struct Data { public Texture2D _Texture; public bool _Active; } Data[] _data = new Data[100]; You then use it in a way like this:...

View Article

Browsing latest articles
Browse All 6 View Live