- Home /
Parse.com and Unity integration
Hey, everyone.
I have "n" objects in Parse, each with 3 keys (a float and 2 strings). I have the unique objectID (generated by Parse), the name, the number and the Facebook ID for each.
How can I retrieve these in Unity and display them? Do I use three different arrays for the three different keys?
10 objectID, you mean instance ID? sorted by a float value from where? then store in 3 different arrays using keys you have, yes but we don't.
Asking a question you should consider we are dumber than we are (some of us really are) and give as much relevant info as possible
Ok you need to reformulate your question as it is getting confusing.
Answer by RudyTheDev · Feb 25, 2014 at 11:36 AM
Something like:
int[] topObjects = ourObjects.Select((data, index) => new { data, index }).OrderByDescending(o => o.data.value).Select(o => o.index).Take(10).ToArray();
where in this example
List<SomeObject> ourObjects = new List<SomeObject>();
for (int i = 0; i < 100; i++)
ourObjects.Add(new SomeObject(Random.Range(-10, 10)));
from
public class SomeObject
{
public float value;
public SomeObject(float givenValue) { value = givenValue; }
}
P.S. Your question is very vague.
Your answer
![](https://koobas.hobune.stream/wayback/20220613134642im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Double Parse a text file into 2d array or jagged array 1 Answer