Skip to content

Documentation / scene / isZHair

Function: isZHair()

isZHair(buffer): boolean

Defined in: libs/scene/src/asset/loaders/zhair/zhair_format.ts:330

Whether a buffer starts with the .zhair magic.

Parameters

buffer

ArrayBuffer

Bytes to test.

Returns

boolean

True when the buffer looks like a .zhair file.

Released under the MIT License.