Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.12 KB

isSavableComponent.md

File metadata and controls

33 lines (23 loc) · 1.12 KB

Function: isSavablecomponent

Returns whether or not the given component name belongs to a component that is normally savable on the given prefab hash or name.

Signatures

isSavablecomponent(componentName, prefabHash)

import { isSavableComponent } from 'att-string-transcoder';

if (isSavableComponent('NetworkRigidbody', 42230)) {
  // `Handle_Short` can save `NetworkRigidbody` component data.
}

isSavablecomponent(componentName, prefabName)

import { isSavablecomponent } from 'att-string-transcoder';

if (isSavableComponent('NetworkRigidbody', 'Handle_Short')) {
  // `Handle_Short` can save `NetworkRigidbody` component data.
}