Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support switching idling mode #267

Merged
merged 1 commit into from
Nov 19, 2023
Merged

Support switching idling mode #267

merged 1 commit into from
Nov 19, 2023

Conversation

uezo
Copy link
Owner

@uezo uezo commented Nov 19, 2023

You can now have multiple idling mode. The default is normal. Add animations and face expressions if you want to add another mode like below:

modelController.AddIdleAnimation(new Model.Animation("BaseParam", 101, 5f), mode: "sleep");
modelController.AddIdleFace("sleep", "Blink");

Switch using ChangeIdlingModeAsync.

modelController.ChangeIdlingModeAsync("sleep");

The animation for sleep starts immediately.

You can now have multiple idling mode. The default is normal. Add animations and face expressions if you want to add another mode like below:

```csharp
modelController.AddIdleAnimation(new Model.Animation("BaseParam", 101, 5f), mode: "sleep");
modelController.AddIdleFace("sleep", "Blink");
```

Switch using `ChangeIdlingModeAsync`.

```csharp
modelController.ChangeIdlingModeAsync("sleep");
```

The animation for `sleep` starts immediately.
@uezo uezo merged commit c0206c0 into master Nov 19, 2023
@uezo uezo deleted the switching-idling-mode branch November 19, 2023 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant