unbindRule(params: IUnbindRule)

Requires:
@ray-js/ray≥1.5.15

Description

Unbind linkage and delete the binding between button conditions and scene rules

Parameters

ParameterTypeRequiredDescription
YesParameters for unbinding rules

Return Value

Type: Promise<boolean>
Whether unbinding succeeded

Examples

import { unbindRule } from '@ray-js/ray';

const unbindSceneRule = async () => {
  try {
    const success = await unbindRule({
      bindId: '123456',
      gid: '12345678',
    });
    console.log('Unbind result:', success);
  } catch (err) {
    console.error('Unbind failed:', err);
  }
};