ICubismOpacityHandler.cs 795 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Copyright(c) Live2D Inc. All rights reserved.
  3. *
  4. * Use of this source code is governed by the Live2D Open Software license
  5. * that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
  6. */
  7. using Live2D.Cubism.Core;
  8. namespace Live2D.Cubism.Rendering
  9. {
  10. /// <summary>
  11. /// Allows listening to <see cref="CubismDrawable"/> draw order changes.
  12. /// </summary>
  13. public interface ICubismOpacityHandler
  14. {
  15. /// <summary>
  16. /// Called when opacity did change.
  17. /// </summary>
  18. /// <param name="controller">The <see cref="CubismRenderController"/>.</param>
  19. /// <param name="newOpacity">New opacity.</param>
  20. void OnOpacityDidChange(CubismRenderController controller, float newOpacity);
  21. }
  22. }