Skip to content

[rive_native] Animation Not Updating with rive.NumberInput #465

@BlockRen

Description

@BlockRen

Description:
In rive_native, the following code successfully sets the value for rive.NumberInput, and I can print the correct value of ctrl?.value using debugPrint. However, the Rive animation does not change accordingly. The same Rive animation file works correctly in rive_common.

void changeControl(String name, dynamic value, {String? nestedName}) {
  if (value is num) {
    rive.NumberInput? ctrl = stateMachineController?.number(name, path: nestedName);
    ctrl?.value = value.toDouble();
    debugPrint(">>> Rive Control: $name ${ctrl?.value}");
  }
}

Is there something I am missing or any additional steps required to make the animation update in rive_native?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions