label_engine.gd 374 B

123456789101112
  1. extends Label
  2. func _process(_delta):
  3. var engine_name = ""
  4. match System.get_physics_engine():
  5. System.PhysicsEngine.GODOT_PHYSICS:
  6. engine_name = "GodotPhysics 3D"
  7. System.PhysicsEngine.OTHER:
  8. var engine_setting = ProjectSettings.get_setting("physics/3d/physics_engine")
  9. engine_name = "Other (%s)" % engine_setting
  10. set_text("Physics engine: %s" % engine_name)