diff --git a/doc/classes/World2D.xml b/doc/classes/World2D.xml index 136acf108..6f22a5b08 100644 --- a/doc/classes/World2D.xml +++ b/doc/classes/World2D.xml @@ -10,11 +10,6 @@ $DOCS_URL/tutorials/physics/ray-casting.md - - - - - @@ -29,6 +24,9 @@ The [RID] of this world's physics space resource. Used by the [Physics2DServer] for 2D physics, treating it as both a space and an area. + + The [RID] of this world's vertex light 2d space resource. Used by the [VertexLights2DServer] for static 2D lights. If the vertex lights 2d module is not enabled this will just return an empty RID. + diff --git a/scene/resources/world_2d.cpp b/scene/resources/world_2d.cpp index 34913da5c..b5620c4aa 100644 --- a/scene/resources/world_2d.cpp +++ b/scene/resources/world_2d.cpp @@ -371,6 +371,7 @@ void World2D::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::RID, "space", PROPERTY_HINT_NONE, "", 0), "", "get_space"); ADD_PROPERTY(PropertyInfo(Variant::RID, "navigation_map", PROPERTY_HINT_NONE, "", 0), "", "get_navigation_map"); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "direct_space_state", PROPERTY_HINT_RESOURCE_TYPE, "Physics2DDirectSpaceState", 0), "", "get_direct_space_state"); + ADD_PROPERTY(PropertyInfo(Variant::RID, "vertex_lights_2d_map", PROPERTY_HINT_NONE, "", 0), "", "get_vertex_lights_2d_map"); } Physics2DDirectSpaceState *World2D::get_direct_space_state() {