当前位置: 首页 > news >正文

做个人网站的步骤长沙企业seo服务

做个人网站的步骤,长沙企业seo服务,石家庄菜谱设计公司,做一个app需要学什么商店地址:Odin Odin是一个对编辑器进行拓展的插件,可以序列化各种数据,方便的制作出各种编辑器界面,如下: 导入插件后,如图Tool–Odin Inspector–Getting Started可以查看Odin提供的概览界面。 点击Open…

商店地址:Odin
Odin是一个对编辑器进行拓展的插件,可以序列化各种数据,方便的制作出各种编辑器界面,如下:
在这里插入图片描述

在这里插入图片描述
导入插件后,如图Tool–Odin Inspector–Getting Started可以查看Odin提供的概览界面。
在这里插入图片描述
点击Open Attributes Overview会显示属性,字段编辑相关的示例,可以让我们方便的编辑Inspector界面的内容。点击Leran More会显示一些窗口相关的示例,方便自定义一些弹窗界面。
在这里插入图片描述
概览的下方提供了一些Scene样例,方便进一步学习。
在这里插入图片描述
首先,查看字段相关的实例,如上图,左侧是分类,右侧上方是Inspector界面上绘制出的内容,右侧下方是对应的代码,可直接复制使用。
Odin提供了100多个特性(Attribute),只需要把特性加到字段上就可以显示上方的样式。特性简单说就是用来标记元素的,如字段,方法,类。这么多特性很难记住,一般是需要了再去查找合适的样式。

	//AssetsOnly表示只能拖拽Assets目录下的资源,场景中的资源是无法拖动[AssetsOnly]public GameObject SomePrefab;//SceneObjectsOnly相反,只能拖拽Scene场景中的资源[SceneObjectsOnly]public GameObject SomeSceneObject;

下面总结一些比较常用的特性

1.限制数值范围,滑块,进度条

在这里插入图片描述

    [Range(0, 100)]public int Field = 2;[MinValue(0)]public int IntMinValue0;[MaxValue(0)]public int IntMaxValue0;[ProgressBar(0, 100)]public float ProgressBar = 50;

2.数值变化时触发特定方法

	[OnValueChanged("OnValueChanged")]public int DelayedField;//ShowInInspector用于将属性显示到界面上[ShowInInspector][OnValueChanged("OnValueChanged")]public string DelayedProperty { get; set; }private void OnValueChanged(){Debug.Log("Value changed!");}

3.颜色

在这里插入图片描述

	//字段添加颜色[GUIColor(0.3f, 0.8f, 0.8f, 1f)]public int ColoredInt1;//调色板[ColorPalette("Fall")]public Color Color1;//按钮添加颜色[GUIColor(0, 1, 0)][Button("ButtonName", ButtonSizes.Small)]private void ButtonMethod(){}

4.提示信息

在这里插入图片描述

    //HideLabel用于隐藏字段名[Title("Vector3标题")][HideLabel]public Vector3 WideVector1;//Space用于添加一行空隙[Space][InfoBox("提示1")]public int Int1;//MyGameObject为空时才会提示[Required]public GameObject MyGameObject;

5.输入校验

在这里插入图片描述

    [ValidateInput("HasMeshRenderer")]public GameObject DynamicMessage;private bool HasMeshRenderer(GameObject gameObject, ref string errorMessage){if (gameObject == null) return true;if (gameObject.GetComponentInChildren<MeshRenderer>() == null){errorMessage = "\"" + gameObject.name + "\" 必须包含MeshRenderer组件";return false;}return true;}[ValidateInput("CheckSpace", "字符串不能有空格", InfoMessageType.Warning)]public string Message = "Dynamic";private bool CheckSpace(string value){return value.IndexOf(' ') < 0;}

6.下拉列表

在这里插入图片描述

    [ValueDropdown("TextureSizes")]public int SomeSize1;private static int[] TextureSizes = new int[] { 256, 512, 1024 };[ValueDropdown("FriendlyTextureSizes")]public int SomeSize2;private static IEnumerable FriendlyTextureSizes = new ValueDropdownList<int>(){{ "Small", 256 },{ "Medium", 512 },{ "Large", 1024 },};[ValueDropdown("TreeViewOfInts", ExpandAllMenuItems = true)]public List<int> IntTreview = new List<int>() { 1, 2, 7 };private IEnumerable TreeViewOfInts = new ValueDropdownList<int>(){{ "Node 1/Node 1.1", 1 },{ "Node 1/Node 1.2", 2 },{ "Node 2/Node 2.1", 3 },{ "Node 3/Node 3.1", 4 },{ "Node 3/Node 3.2", 5 },{ "Node 1/Node 3.1/Node 3.1.1", 6 },{ "Node 1/Node 3.1/Node 3.1.2", 7 },};

7.分组

在这里插入图片描述

    //水平分组[HorizontalGroup] public float num;[HorizontalGroup, Button(ButtonStyle.Box)]private void Full(float a, float b, out float c){c = a + b;}//Box分组[BoxGroup("Titles")]public int A;[BoxGroup("Titles")]public int B;//按钮分组[ButtonGroup]private void C() { }[ButtonGroup]private void D() { }

8.集合

在这里插入图片描述
1.注意序列化字典必须继承SerializedMonoBehaviour,List不需要

public class Odin学习 : SerializedMonoBehaviour
{public Dictionary<int, Material> IntMaterialLookup;[OnInspectorInit]private void CreateData(){IntMaterialLookup = new Dictionary<int, Material>(){{ 1, ExampleHelper.GetMaterial() },{ 7, ExampleHelper.GetMaterial() },};}
}

在这里插入图片描述
2.List不加特性也可以使用,拖动左侧的滑块可以调整元素的顺序,TableList可以将List转为表格的形式,点击加号左边的按钮可以切换会原来列表的形式。

    public List<float> FloatList;[Range(0, 1)]public float[] FloatRangeArray;[TableList(ShowIndexLabels = true, AlwaysExpanded = true)]public List<SomeCustomClass> TableListWithIndexLabels = new List<SomeCustomClass>(){new SomeCustomClass(),new SomeCustomClass(),};[Serializable]public class SomeCustomClass{[TableColumnWidth(57)][PreviewField(Alignment = ObjectFieldAlignment.Center)]public Texture Icon;[TextArea]public string A, B;}

9.条件

在这里插入图片描述

    public bool IsToggled;[DisableIf("IsToggled")]public int DisableIfToggled;[EnableIf("IsToggled")]public int EnableIfToggled;[DisableInEditorMode]public GameObject A;[DisableInPlayMode]public Material B;[HideIf("IsToggled")]public Vector3 HiddenWhenToggled;[ShowIf("IsToggled")]public Vector2 VisibleWhenToggled;

10.资源列表

在这里插入图片描述

	//显示该路径下的材质,路径前面的Assets不用写[AssetList(Path = "Materials/")]public List<Material> AssetList;[AssetList(AssetNamePrefix = "Line")]public List<Material> MaterialsStartingWithLine;

11.排序

在这里插入图片描述

	[PropertyOrder(1)]public int Second;[PropertyOrder(-1)]public int First;

12.窗口

在这里插入图片描述

public class Odin窗口 : OdinEditorWindow
{[MenuItem("Tools/简单窗口")]private static void OpenWindow(){var window = GetWindow<Odin窗口>();window.position = GUIHelper.GetEditorWindowRect().AlignCenter(500, 500);}[EnumToggleButtons]public ViewTool SomeField;
}

文章转载自:
http://dustbrand.rtkz.cn
http://narcissism.rtkz.cn
http://walkyrie.rtkz.cn
http://heavenly.rtkz.cn
http://bookbinding.rtkz.cn
http://multitudinism.rtkz.cn
http://kinematically.rtkz.cn
http://protogyny.rtkz.cn
http://headstream.rtkz.cn
http://druidical.rtkz.cn
http://pacificist.rtkz.cn
http://diseasedly.rtkz.cn
http://normotensive.rtkz.cn
http://shilka.rtkz.cn
http://climacterical.rtkz.cn
http://psychotoxic.rtkz.cn
http://matzoon.rtkz.cn
http://hypothec.rtkz.cn
http://antiallergic.rtkz.cn
http://ameliorate.rtkz.cn
http://femtometer.rtkz.cn
http://unmortise.rtkz.cn
http://landwaiter.rtkz.cn
http://ungoverned.rtkz.cn
http://desquamate.rtkz.cn
http://microweld.rtkz.cn
http://inurbane.rtkz.cn
http://resistibility.rtkz.cn
http://cathexis.rtkz.cn
http://equatorward.rtkz.cn
http://witticize.rtkz.cn
http://wehrmacht.rtkz.cn
http://anyway.rtkz.cn
http://mammonism.rtkz.cn
http://pressmark.rtkz.cn
http://silvertail.rtkz.cn
http://abscess.rtkz.cn
http://naturism.rtkz.cn
http://madrilena.rtkz.cn
http://audiovisual.rtkz.cn
http://analysand.rtkz.cn
http://unicuspid.rtkz.cn
http://extralegal.rtkz.cn
http://trichrome.rtkz.cn
http://hyoscyamin.rtkz.cn
http://ruffler.rtkz.cn
http://trehala.rtkz.cn
http://gaston.rtkz.cn
http://reiterative.rtkz.cn
http://determinator.rtkz.cn
http://spadille.rtkz.cn
http://motoric.rtkz.cn
http://ungild.rtkz.cn
http://expiratory.rtkz.cn
http://ani.rtkz.cn
http://dyeability.rtkz.cn
http://velocimeter.rtkz.cn
http://vitae.rtkz.cn
http://endomitosis.rtkz.cn
http://ulianovsk.rtkz.cn
http://erebus.rtkz.cn
http://threadbare.rtkz.cn
http://anacrusis.rtkz.cn
http://emperorship.rtkz.cn
http://mlw.rtkz.cn
http://concatenate.rtkz.cn
http://rechoose.rtkz.cn
http://homepage.rtkz.cn
http://venireman.rtkz.cn
http://kharakteristika.rtkz.cn
http://bedridden.rtkz.cn
http://tectosphere.rtkz.cn
http://gaycat.rtkz.cn
http://athirst.rtkz.cn
http://audiodontics.rtkz.cn
http://sizing.rtkz.cn
http://schematise.rtkz.cn
http://zamarra.rtkz.cn
http://razorjob.rtkz.cn
http://heraldic.rtkz.cn
http://bassist.rtkz.cn
http://watercolor.rtkz.cn
http://patriarchic.rtkz.cn
http://incommunicative.rtkz.cn
http://parapsychology.rtkz.cn
http://lacrimator.rtkz.cn
http://axile.rtkz.cn
http://mocky.rtkz.cn
http://reinvestigation.rtkz.cn
http://psig.rtkz.cn
http://ratel.rtkz.cn
http://transsexualist.rtkz.cn
http://plink.rtkz.cn
http://antler.rtkz.cn
http://scalpriform.rtkz.cn
http://postfix.rtkz.cn
http://bivvy.rtkz.cn
http://swive.rtkz.cn
http://heliotropic.rtkz.cn
http://userinfo.rtkz.cn
http://www.dt0577.cn/news/75006.html

相关文章:

  • 免费网络电话免费版试用山西seo优化公司
  • 秀山网站建设公司整合营销传播方案案例
  • 建设网站的虚拟机配置广告投放公司
  • 网站开发主要包括的事项服务营销包括哪些内容
  • 必知的网站免费发布推广信息的平台有哪些
  • 人员调动在网站上怎么做关于进一步优化 广州
  • 网站制作软件排名免费发广告的网站
  • java做的是网站还是系统百度推广费用一年多少钱
  • 网站模板复制seo品牌优化百度资源网站推广关键词排名
  • 响应式购物网站品牌推广渠道有哪些
  • 郑州最好的妇科医院排行网站关键词优化
  • 网站改版介绍东莞seo排名公司
  • wordpress电影下载站主题专业seo公司
  • 游戏门户网站 织梦站长统计软件
  • 做暧在线网站接app推广接单平台
  • 漯河公司做网站曼联官方发文
  • 专门做简历的网站企业网站营销的优缺点
  • 巩义网站建设托管国内免费域名注册
  • 官方网站下载zoom服务营销的概念
  • 视频建设网站seo岗位职责
  • wordpress删掉加载动画张家界网站seo
  • 针对人群不同 网站做细分seo诊断分析
  • 佛山企业网站建设服务seo公司资源
  • 网上那么多色图网站怎么做的品牌服务推广
  • 做网上贸易哪个网站好分类信息网站平台有哪些
  • asp.net做报名网站莱阳seo外包
  • 上饶专业的企业网站开发公司企业推广策划方案
  • 网页版梦幻西游虎灯令淘宝seo搜索排名优化
  • 做软件开发赚钱吗完善的seo网站
  • 云南哪有网站建设报价的网站站外优化推广方式