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

想知道 如何动态修改数值 #22

Open
zjsjmvn opened this issue May 16, 2024 · 2 comments
Open

想知道 如何动态修改数值 #22

zjsjmvn opened this issue May 16, 2024 · 2 comments
Labels
question Further information is requested

Comments

@zjsjmvn
Copy link

zjsjmvn commented May 16, 2024

感谢No78Vino提供的框架,打算新项目用一下试试。目前有点不清楚下面两点要怎么做。
1.如何动态修改game play effect 里的duration。技能升级之后duration可能要延长。
2.如何动态修改timeline里的mark的trigger帧数。

@No78Vino
Copy link
Owner

1.如何动态修改game play effect 里的duration。技能升级之后duration可能要延长。
A:GameplayEffectSpec提供了SetDuration()方法可以手动修改duration。CD的实现逻辑就是依赖SetDuration()。
如果是buff叠加类的时间刷新或者延长duration,可以等最近的GameplayEffect stack的功能补全。用ge stack会更方便一点。

2.如何动态修改timeline里的mark的trigger帧数。
A:如果你是说动态的修改Mark的执行在第几帧,那现在还没有接口。时间轴技能目前没有提供原生参数的构造函数。
这个需求挺合理的,我可以之后加上动态生成时间轴技能数据的方法。

@No78Vino No78Vino added the question Further information is requested label May 16, 2024
@zjsjmvn
Copy link
Author

zjsjmvn commented May 16, 2024

好的,感谢解答

@No78Vino No78Vino reopened this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants