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

sdk设置模型参数代码 #2

Open
2439905184 opened this issue Jun 15, 2021 · 1 comment
Open

sdk设置模型参数代码 #2

2439905184 opened this issue Jun 15, 2021 · 1 comment

Comments

@2439905184
Copy link
Owner

2439905184 commented Jun 15, 2021

jp.live2d.ModelContext.setParamFloat

@2439905184 2439905184 changed the title sdk环境设置参数代码 sdk设置模型参数代码 Jun 15, 2021
@2439905184
Copy link
Owner Author

2439905184 commented Jun 15, 2021

public void setParamFloat(int paramIndex, float value) { 356        if (Float.isNaN((float)value)) { 357            value = 0.0f; 358        } 359        if (value < this.o[paramIndex]) { 360            value = this.o[paramIndex]; 361        } 362        if (value > this.p[paramIndex]) { 363            value = this.p[paramIndex]; 364        } 365        this.m[paramIndex] = value; 366    }

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

No branches or pull requests

1 participant