ICubismLookTarget.cs 849 B

1234567891011121314151617181920212223242526272829303132
  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 UnityEngine;
  8. namespace Live2D.Cubism.Framework.LookAt
  9. {
  10. /// <summary>
  11. /// Target to look at.
  12. /// </summary>
  13. public interface ICubismLookTarget
  14. {
  15. /// <summary>
  16. /// Gets the position of the target.
  17. /// </summary>
  18. /// <returns>The position of the target in world space.</returns>
  19. Vector3 GetPosition();
  20. /// <summary>
  21. /// Gets whether the target is active.
  22. /// </summary>
  23. /// <returns><see langword="true"/> if the target is active; <see langword="false"/> otherwise.</returns>
  24. bool IsActive();
  25. }
  26. }