123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- using PublicTools.Unity;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace ShadowStudio.Tool
- {
- /// <summary>
- /// 黑板的配置
- /// </summary>
- public class BoardConf
- {
- /// <summary>
- /// 黑板的key
- /// </summary>
- private string prikey = "MainBord";
- /// <summary>
- /// 物体的边界大小,尺寸
- /// 默认是1920*1080的屏幕
- /// </summary>
- private XVector2 boundary = new XVector2(new Vector2(3000, 1400));
- /// <summary>
- /// 网格大小,尺寸,默认10*10的大小
- /// </summary>
- private XVector2 cellSize = new XVector2(Vector2.one * 10);
- /// <summary>
- /// 吸附的距离,点到平面的距离
- /// 如果是边界,判断是否相交
- /// </summary>
- private float adsorption = 10;
- /// <summary>
- /// 展示的距离,吸附在表面的距离,避免和黑板重叠,设置位置差
- /// </summary>
- private float showDis = -1;
- /// <summary>
- /// 是否自动对齐网格
- /// </summary>
- private bool isAutoAlign = true;
- /// <summary>
- /// 是否自动排列
- /// 按照网格的顺序自动排列
- /// </summary>
- private bool isAutoArrange = false;
- /// <summary>
- /// 误差相差的角度
- /// </summary>
- private float angle = 15;
- /// 按下移出距离
- /// </summary>
- private float pressPonit = -0.1f;
- /// <summary>
- /// 黑板的key
- /// </summary>
- public string Prikey { get => prikey; set => prikey = value; }
- /// <summary>
- /// 物体的边界大小,尺寸
- /// 默认是1920*1080的屏幕
- /// </summary>
- public XVector2 Boundary { get => boundary; set => boundary = value; }
- /// <summary>
- /// 网格大小,尺寸,默认10*10的大小
- /// </summary>
- public XVector2 CellSize { get => cellSize; set => cellSize = value; }
- /// <summary>
- /// 吸附的距离,点到平面的距离
- /// 如果是边界,判断是否相交
- /// </summary>
- public float Adsorption { get => adsorption; set => adsorption = value; }
- /// <summary>
- /// 是否自动对齐网格
- /// </summary>
- public bool IsAutoAlign { get => isAutoAlign; set => isAutoAlign = value; }
- /// <summary>
- /// 是否自动排列
- /// 按照网格的顺序自动排列
- /// </summary>
- public bool IsAutoArrange { get => isAutoArrange; set => isAutoArrange = value; }
- /// <summary>
- /// 平面相差角度
- /// </summary>
- public float Angle { get => angle; set => angle = value; }
- public float ShowDis { get => showDis; set => showDis = value; }
- public float PressPonit { get => pressPonit; set => pressPonit = value; }
- }
- }
|