Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
514 B

  1. using UnityEngine;
  2. namespace OVR
  3. {
  4. /*
  5. -----------------------
  6. MinMaxAttribute
  7. -----------------------
  8. */
  9. public class MinMaxAttribute : PropertyAttribute {
  10. public float minDefaultVal = 1.0f;
  11. public float maxDefaultVal = 1.0f;
  12. public float min = 0.0f;
  13. public float max = 1.0f;
  14. public MinMaxAttribute( float minDefaultVal, float maxDefaultVal, float min, float max ) {
  15. this.minDefaultVal = minDefaultVal;
  16. this.maxDefaultVal = maxDefaultVal;
  17. this.min = min;
  18. this.max = max;
  19. }
  20. }
  21. } // namespace OVR