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
Due to no changes CubismUpdateController to add new type Controllers #34
Due to no changes CubismUpdateController to add new type Controllers #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
提供ありがとうございます。
ご指摘頂いたCubismUpdateController
の部分ですが、こちらは弊社が提供している実装の順番でOnLateUpdate
を呼び出す必要があります。(さもないと、コンポーネント間にて値の伝搬が正しく行われないためです)
順番を維持するか、それに準じた実装として頂けますでしょうか。
実行順序の定義を追加しました。 |
@koichiyamashita |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@koichiyamashita
修正対応ありがとうございます。
意図通りの動作になることを確認いたしました。
一点だけ対応をお願いしたいのですが、各クラスでExecutionOrderに設定する値を定数にするなどで、マジックナンバーを使わないようにしていただけませんでしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
問題なさそうです😀
対応ありがとうございます!
public static readonly int CubismHarmonicMotionController = 600; | ||
public static readonly int CubismLookController = 700; | ||
public static readonly int CubismRenderController = 10000; | ||
public static readonly int CubismMaskController = 10100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
問題なさそうです😃
CubismUpdateExecutionOrder にてSDK でのExecutionOrder を定義しました。 |
@koichiyamashita |
We defined the execution orders of
|
@koichiyamashita |
When we add a new custom Controller, we have to change CubismUpdateController.
Due to no changes CubismUpdateController to add new Controllers.
SDK利用者がController を追加したい場合にSDK内のCubismUpdateController の変更が必要になると思いますが、そういった場合でもCubismUpdateControllerの変更なしで行えるように対応しました。