class Diorite::TextCommand3D

Overview

Internal command payload representing an immediate-mode 3D text billboard label request.

Defined in:

diorite/core/debug_command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(position : Godot::Vector3, text : String, color : Godot::Color, duration : Float64 = 0.0, on_top : Bool = true, channel : String = "default") #

Creates a new 3D text billboard command.


[View source]

Instance Method Detail

def channel : String #

Filter channel / layer category this command belongs to.


[View source]
def channel=(channel : String) #

Filter channel / layer category this command belongs to.


[View source]
def color : Godot::Color #

Text color modulate.


[View source]
def color=(color : Godot::Color) #

Text color modulate.


[View source]
def duration : Float64 #

Lifetime duration in seconds.


[View source]
def duration=(duration : Float64) #

Lifetime duration in seconds.


[View source]
def expired? : Bool #

Returns true if the command has exceeded its duration lifetime.


[View source]
def on_top : Bool #

Whether this text label bypasses depth testing.


[View source]
def on_top=(on_top : Bool) #

Whether this text label bypasses depth testing.


[View source]
def position : Godot::Vector3 #

World position of the 3D billboard text.


[View source]
def position=(position : Godot::Vector3) #

World position of the 3D billboard text.


[View source]
def remaining_time : Float64 #

Remaining lifetime in seconds.


[View source]
def remaining_time=(remaining_time : Float64) #

Remaining lifetime in seconds.


[View source]
def step(delta : Float64) : Void #

Advances time by delta seconds.


[View source]
def text : String #

String message to display.


[View source]
def text=(text : String) #

String message to display.


[View source]