Question by
haroonarfan109 · Jul 30, 2020 at 11:45 PM ·
transformprefabslistschild-to-gameobject
How to add prefab children to a list in unity
I'm a beginner, so please forgive me if what I'm asking is very obvious.
I'm currently trying to add children of a prefab to a list of type "Transform" but unity is not letting me, shows none and also don't let me drop.
[SerializeField] List<Transform> waypoints;
Furthermore, my Waypoint gameObject only contains Transform same as Path (Empty game Object).
Comment
Your answer
Follow this Question
Related Questions
Is it possible to make a unity plane whose curvature can be controlled at run time? 0 Answers
Select a prefab from a list variable using an index by an integer variable? 2 Answers
Firing projectile from Transform. What am I doing wrong? 1 Answer
For Loop: Different count of objects are added to lists 0 Answers