LEGENT
LEGENT copied to clipboard
An Error while run "Scene Generation"
系统: macOS 14.4.1 python版本: 3.9.16
运行代码:
from legent import Environment, ResetInfo env = Environment(env_path="auto") scene = { "instances": [ { "prefab": "LowPolyInterior_Floor_01", "position": [0, 0, 0], "rotation": [0, 0, 0], "scale": [4, 1, 4], "type": "kinematic" }, { "prefab": "LowPolyInterior_Potato", "position": [0,0.1,0], "rotation": [0, 0, 0], "scale": [1, 1, 1], "type": "interactable" }, ], "player": { "position": [0,0.1,1], "rotation": [0, 180, 0] }, "agent": { "position": [0,0.1,-1], "rotation": [0, 0, 0] }, "center": [0, 10, 0], "prompt": "" } try: env.reset(ResetInfo(scene)) while True: env.step() finally: env.close()
development console打印信息: NullReferenceException: Object reference not set to an instance of an object at Legent.AssetsLoader.LateUpdate () [0x0009e] in C:\Users\cheng\UnityProjects\thyplaymate\Assets\LEGENT\Runtime\AssetsLoader.cs:1913