Skip to content

DataObjectFloatGet

15.10

Class Documentation

Edit documentation

A getter that reads a numeric property of a loaded bin object and returns it as a float. Read as an int, the result is truncated toward zero.

The getter finds the object by PathHash, then walks PropPath from it:

Path part Meaning
Name A property of the current object. The name is hashed and matched against the properties of the class and its base classes.
. Continues into the property just read. A pointer continues on the class of the object it points to, and an embed continues inside the embed.
[n] The list element at index n.
{key} The map entry with key key.

The property can have any integer type (i8 to u64) or be an f32.

Properties

PathHash

Hash = "0x0"
Edit documentation

The entry path hash of the bin object. If no loaded object has that path, the getter fails with a script error.

PropPath

String = ""
Edit documentation

The path of the property to read, relative to the object.