Quantcast
Channel: Answers for "[solved]How can I get multiple properties for the same public array object?"
Browsing index pages (6 articles)

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


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

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


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
Browsing index pages (6 articles)


Latest Images