- Home /
Question by
superventure · Sep 20, 2016 at 03:17 PM ·
arrayslistsstrings
reference the name of each texture in a texture list as a string array for PlayerPrefsX.SetStringArray
gp refers to var accessories : List.<Textures>;
in another script. I'm trying to reference each name of the textures in the list with PlayerPrefsX.SetStringArray
Ive tried
#pragma downcast
import System.Collections.Generic;
if(gp.accessories.Count > 0)
PlayerPrefsX.SetStringArray("7LineUp" + i + "Cosplays", gp.accessories.ToArray() as String[]);
PlayerPrefsX.SetStringArray("7LineUp" + i + "Cosplays", gp.accessories.ToBuilltIn(String));
PlayerPrefsX.SetStringArray("7LineUp" + i + "Cosplays", gp.accessories.ToArray(typeof(String));
and each do not work at all. I write in js. What am I doing wrong? Thanks
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612093147im_/https://answers.unity.com/themes/thub/images/avi.jpg)