Answer the question
In order to leave comments, you need to log in
Why can't prefabs be initialized on the device?
I made initialization of levels from pictures and texts in the unit
int CountLevels = 30;
for(int lvl = 1; lvl < (CountLevels + 1); ++lvl){
Levels[lvl] = Instantiate(levelPrefab, transform) as LevelPrefab;
Levels[lvl].transform.SetParent(ContentScroll.transform);
Levels[lvl].Level = lvl;
}
Answer the question
In order to leave comments, you need to log in
For example raskolbas with scale. Why do you SetParent
, why not immediately create where you need it?
Everything is as simple as 2 fingers.
Let's go here , from the docks we take an example with a modal window. We create it. In this window we create markup.
Using the open callback, inside it, we initialize the slick sliders. Vertical and horizontal. Well, that's all. Further on your own
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question