The RID type is used to access the unique integer ID of a resource. They are opaque, which means they do not grant access to the associated resource by themselves. They are used by and with the low-level Server classes such as godot.VisualServer.

Constructor

@:native("new")new(from:Object)

Constructs a new godot.RID for the given godot.Object from.

Variables

@:native("NativeInstance")read onlynativeInstance:IntPtr

The pointer to the native instance of this godot.RID.

Methods

@:native("Dispose")dispose():Void

Disposes of this godot.RID.

@:native("GetId")getId():Int

Returns the ID of the referenced resource.

Returns:

The ID of the referenced resource.

@:native("ToString")toString():String

Converts this godot.RID to a string.

Returns:

A string representation of this RID.