Returns whether or not the given component name belongs to a component that is normally savable on the given prefab hash or name.
componentName
<keyof SupportedPrefabComponents>
The name of the component.prefabHash
<ATTPrefabHash>
The hash of the parent prefab.- Returns:
<boolean>
import { isSavableComponent } from 'att-string-transcoder';
if (isSavableComponent('NetworkRigidbody', 42230)) {
// `Handle_Short` can save `NetworkRigidbody` component data.
}
componentName
<keyof SupportedPrefabComponents>
The name of the component.prefabName
<ATTPrefabName>
The name of the parent prefab.- Returns:
<boolean>
import { isSavablecomponent } from 'att-string-transcoder';
if (isSavableComponent('NetworkRigidbody', 'Handle_Short')) {
// `Handle_Short` can save `NetworkRigidbody` component data.
}