Skip to content

Instantly share code, notes, and snippets.

@rkandas
Last active August 26, 2019 14:54
Show Gist options
  • Save rkandas/bd3e54db3b550d4690028f85616c4480 to your computer and use it in GitHub Desktop.
Save rkandas/bd3e54db3b550d4690028f85616c4480 to your computer and use it in GitHub Desktop.
public class AssetSpawner
{
public void createAGameObjectFromString(String csvString)
{
String[] tokens = csvString.Split(",".ToCharArray());
if (tokens.Length >= 4)
{
GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
cube.name = tokens[0];
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment