FloatModel#

class omni.kit.property.usd.FloatModel(parent)#

Bases: SimpleFloatModel

A model providing a simple interface for a floating-point value.

This model is a thin wrapper around a float, allowing for easy integration with UI components that require a model to represent and manipulate floating-point numbers. It is particularly useful for scenarios where a float value needs to be observed or edited within a user interface.

Parameters:

parent – A weak reference to the parent of this model, allowing this model to notify the parent about changes to the value.

Methods

__init__(parent)

Initializes a new instance of the FloatModel.

begin_edit()

Begins editing the value.

end_edit()

Ends editing the value.

Attributes

__init__(parent)#

Initializes a new instance of the FloatModel.

begin_edit()#

Begins editing the value.

end_edit()#

Ends editing the value.