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

Animator内のパラメーターをParameterInfoで取りたい #207

Open
Narazaka opened this issue Mar 17, 2024 · 1 comment
Open

Animator内のパラメーターをParameterInfoで取りたい #207

Narazaka opened this issue Mar 17, 2024 · 1 comment

Comments

@Narazaka
Copy link
Contributor

Narazaka commented Mar 17, 2024

VRCAvatarDescriptorやMA Merge Animatorが参照するAnimator内のローカルパラメーターもProvidedParameterとして提供されると便利な場合があります。

  • VRC Avatar Parameter DriverなどではExpression Parametersに定義されていないAnimator内のパラメーターでも扱えます
  • 必要なプラグイン個別で実装するにはちょっと一般的すぎるし複数プラグインで実装するとProvidedParameterのオンオフが効かないのでかぶると思います
  • メモリ計算には不要ですし、いつも参照されることが便利では無いかもしれません
    • ParameterInfo.GetParametersForObject(GameObject obj, ProvidedSource source)みたいなインターフェースで種類別に取れると嬉しい気がします(Animatorローカルであるかどうか以外にも、PBのやつだけとか指定できる感じ)
      • あるいはProvidedParameterをIParameterProviderクラスごとにフィルタ出来ると?
@bdunderscore
Copy link
Owner

よさそうだけど、MA1.9.9後にはなると思います(あとから困らないようにAPIを見直しておきます)

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

2 participants