Click or drag to resize

VisualServerOmniLightCreate Method

Creates a new omni light and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID can be used in most light_* VisualServer functions.

Once finished with your RID, you will want to free the RID using the VisualServer's FreeRid(RID) static method.

To place in a scene, attach this omni light to an instance using InstanceSetBase(RID, RID) using the returned RID.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static RID OmniLightCreate()

Return Value

Type: RID

[Missing <returns> documentation for "M:Godot.VisualServer.OmniLightCreate"]

See Also