| 45 | namespace |
| 46 | { |
| 47 | Actor* GetChildByPrefabObjectId(Actor* a, const Guid& prefabObjectId) |
| 48 | { |
| 49 | Actor* result = nullptr; |
| 50 | for (int32 i = 0; i < a->Children.Count(); i++) |
| 51 | { |
| 52 | if (a->Children[i]->GetPrefabObjectID() == prefabObjectId) |
| 53 | { |
| 54 | result = a->Children[i]; |
| 55 | break; |
| 56 | } |
| 57 | } |
| 58 | return result; |
| 59 | } |
| 60 | |
| 61 | Script* GetScriptByPrefabObjectId(Actor* a, const Guid& prefabObjectId) |
| 62 | { |