| 103 | } |
| 104 | |
| 105 | void LinkPrefabRecursive(Actor* actor, Prefab* linkPrefab) |
| 106 | { |
| 107 | for (auto script : actor->Scripts) |
| 108 | LinkPrefab(script, linkPrefab); |
| 109 | for (auto child : actor->Children) |
| 110 | LinkPrefab(child, linkPrefab); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | Actor::Actor(const SpawnParams& params) |