ExportationOptions.cs 935 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using UnityEngine;
  3. namespace Unity3D2Babylon
  4. {
  5. public class ExportationOptions
  6. {
  7. public string DefaultFolder { get; set; }
  8. public float ReflectionDefaultLevel { get; set; }
  9. public bool ExportCollisions { get; set; }
  10. public bool ExportPhysics { get; set; }
  11. public bool ExportShadows { get; set; }
  12. public SerializableVector3 CameraEllipsoid { get; set; }
  13. public SerializableVector3 Gravity { get; set; }
  14. public ExportationOptions()
  15. {
  16. DefaultFolder = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
  17. ReflectionDefaultLevel = 0.3f;
  18. ExportCollisions = false;
  19. ExportPhysics = false;
  20. ExportShadows = false;
  21. CameraEllipsoid = new Vector3(0.5f, 1.0f, 0.5f);
  22. Gravity = new Vector3(0, -0.9f, 0);
  23. }
  24. }
  25. }