Question by
Wolfshadow · Apr 08, 2017 at 01:14 AM ·
c#javascripttranslateeasy
Javascript-C#
Does anyone know what:
var gos : GameObject[];
gos = GameObject.FindGameObjectsWithTag ("SaveObject");
is in c#? Sorry, I know this is probably very simple, but I am having trouble experimenting in translating it. Thank you for the help.
Comment
Best Answer
Answer by UnityCoach · Apr 08, 2017 at 07:20 AM
GameObject [] gos;
gos = GameObject.FindGameObjectsWithTag ("SaveObject");
this one worked for me...but maybe you were also right, mrcrumbl
Answer by MrCrumbl3d · Apr 08, 2017 at 06:24 AM
its.. javascript of you see var it's js.. but sometime it can be use with C#..
public GameObject gos;
gos = GameObject.FindGameObjectsWithTag ("SaveObject");
that's it...
thank you. This didn't work without a [], but it put me on the right track
Your answer
