Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

PackedFloat32Array

A packed array of 32-bit floating-point values.

Description

An array specifically designed to hold 32-bit floating-point values (float). Packs data tightly, so it saves memory for large array sizes.

If you need to pack 64-bit floats tightly, see PackedFloat64Array.

Примітка

There are notable differences when using this API with C#. See Відмінності API C# в GDScript for more information.

Constructors

PackedFloat32Array

PackedFloat32Array ( )

PackedFloat32Array

PackedFloat32Array ( PackedFloat32Array from )

PackedFloat32Array

PackedFloat32Array ( Array from )

Methods

bool

append ( float value )

void

append_array ( PackedFloat32Array array )

int

bsearch ( float value, bool before=true )

void

clear ( )

int

count ( float value ) const

PackedFloat32Array

duplicate ( )

void

fill ( float value )

int

find ( float value, int from=0 ) const

bool

has ( float value ) const

int

insert ( int at_index, float value )

bool

is_empty ( ) const

bool

push_back ( float value )

void

remove_at ( int index )

int

resize ( int new_size )

void

reverse ( )

int

rfind ( float value, int from=-1 ) const

void

set ( int index, float value )

int

size ( ) const

PackedFloat32Array

slice ( int begin, int end=2147483647 ) const

void

sort ( )

PackedByteArray

to_byte_array ( ) const

Operators

bool

operator != ( PackedFloat32Array right )

PackedFloat32Array

operator + ( PackedFloat32Array right )

bool

operator == ( PackedFloat32Array right )

float

operator [] ( int index )


Constructor Descriptions