Skip to content

An Error while run "Scene Generation" #14

@Mitty-ZH

Description

@Mitty-ZH

系统: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions