Add prefab reparenting python auto tests (#3653)

* Add prefab reparenting python auto tests

Signed-off-by: chiyteng <chiyteng@amazon.com>

* modify prefab python auto test framework

Signed-off-by: chiyteng <chiyteng@amazon.com>

* remove extra spaces

Signed-off-by: chiyteng <chiyteng@amazon.com>

* delete unused files

Signed-off-by: chiyteng <chiyteng@amazon.com>

* delete unused files

Signed-off-by: chiyteng <chiyteng@amazon.com>

* fix nits

Signed-off-by: chiyteng <chiyteng@amazon.com>

* Refactor prefab python tests

Signed-off-by: chiyteng <chiyteng@amazon.com>

* Fix nits

Signed-off-by: chiyteng <chiyteng@amazon.com>

* Modify comments

Signed-off-by: chiyteng <chiyteng@amazon.com>

* Fix nits and add comments for Prefab.py

Signed-off-by: chiyteng <chiyteng@amazon.com>
This commit is contained in:
chiyenteng
2021-09-03 12:06:22 -07:00
committed by GitHub
parent 64a561a948
commit f7d4d80e5b
16 changed files with 627 additions and 137 deletions
@@ -214,6 +214,12 @@ class EditorEntity:
"""
return editor.EditorEntityInfoRequestBus(bus.Event, "GetParent", self.id)
def get_children_ids(self) -> List[azlmbr.entity.EntityId]:
"""
:return: Entity ids of children. Type: [entity.EntityId()]
"""
return editor.EditorEntityInfoRequestBus(bus.Event, "GetChildren", self.id)
def add_component(self, component_name: str) -> EditorComponent:
"""
Used to add new component to Entity.