# Native render fixture for reviewing new assets and their authoring controls. extends SceneTree func _initialize():call_deferred("run") func run(): var app=load("res://designer/scenes/workshop.tscn").instantiate();root.add_child(app) app.apply_data({"schemaVersion":2,"pieces":[],"entities":[ {"id":"wall_preview","kind":"wall","position":[-1,0,0],"quarter":0}, {"id":"hole_preview","kind":"goal_hole","position":[1,1,0],"quarter":0}], "balls":[{"id":"floating_iron","ballTypeId":"iron_ball","position":[1.3,2.3,0],"launchDirection":[1,0,0]}]}) app.select_category("nonInteractive") app.select_record("wall_preview") app.ball_cursor=Vector3(1.3,2.3,0) app.refresh_selection();app.refresh_ball_marker();app.ball_marker.hide() app.camera_size=7;app.update_camera() app.status="标准墙壁 · 锥口球洞 · 独立悬空铁球";app.refresh_ui() for i in range(15):await process_frame await RenderingServer.frame_post_draw root.get_texture().get_image().save_png(ProjectSettings.globalize_path("res://playtest/artifacts/styled/entity_assets.png")) quit()