| | 1 | | using UnityEngine; |
| | 2 | |
|
| | 3 | | public class NFTShapeConfig : ScriptableObject |
| | 4 | | { |
| 0 | 5 | | public float loadingMinDistance = 30; |
| 0 | 6 | | public float hqImgMinDistance = 7; |
| 0 | 7 | | public float hqImgFacingDotProdMinValue = 0.4f; |
| 0 | 8 | | public float hqImgInFrontDotProdMinValue = 0.2f; |
| | 9 | |
|
| | 10 | | #if UNITY_EDITOR |
| | 11 | | private void OnEnable() |
| | 12 | | { |
| 0 | 13 | | Application.quitting -= CleanUp; |
| 0 | 14 | | Application.quitting += CleanUp; |
| 0 | 15 | | } |
| | 16 | |
|
| | 17 | | private void CleanUp() |
| | 18 | | { |
| 0 | 19 | | Application.quitting -= CleanUp; |
| 0 | 20 | | if (UnityEditor.AssetDatabase.Contains(this)) |
| 0 | 21 | | Resources.UnloadAsset(this); |
| 0 | 22 | | } |
| | 23 | | #endif |
| | 24 | | } |