public arraytype(_type typ = default, ref ptr <_type> elem = default, ref ptr <_type> slice = default, System.UIntPtr len = default) { this.typ = typ; this.elem = elem; this.slice = slice; this.len = len; }
public sFile(_type t, String value) { type = t; if (t == _type.FileName) { FileName = value; } else { ExtInfo = value; } }
void DoorJudgment()//どのドアを使っているか判定 { if (gameObject.transform.Find("1").gameObject.activeSelf) { eDoorType = _type.Door1; } else if (gameObject.transform.Find("2").gameObject.activeSelf) { eDoorType = _type.Door2; } else if (gameObject.transform.Find("3").gameObject.activeSelf) { eDoorType = _type.Door3; } else { eDoorType = _type.Other; } }
set => SetProperty(ref _type, value);
public chantype(_type typ = default, ref ptr <_type> elem = default, System.UIntPtr dir = default) { this.typ = typ; this.elem = elem; this.dir = dir; }
void OnGUI() { //load lists // if(_FC != null) // { // imageList = _FC.imageList; // textList = _FC.textList; // } EditorGUILayout.Space(); thisType = (_type)EditorGUILayout.EnumPopup("UI Type", thisType); EditorGUILayout.Space(); scrollPos = EditorGUILayout.BeginScrollView(scrollPos); if(thisType == _type.Image) { foreach(CTS_Image i in imageList) { EditorGUILayout.Space(); EditorGUILayout.LabelField("Style : " + i.styleName); EditorGUI.indentLevel++; EditorGUILayout.Space(); i.styleName = EditorGUILayout.TextField("Style Name : ", i.styleName); EditorGUILayout.BeginHorizontal(); EditorGUILayout.BeginVertical(); i.color = EditorGUILayout.ColorField("Tint", i.color); i.material = EditorGUILayout.ObjectField("Material", i.material, typeof(Material),false) as Material; i.raycastTarget = EditorGUILayout.Toggle("Raycast Target", i.raycastTarget); EditorGUILayout.EndVertical(); i.sprite = EditorGUILayout.ObjectField("Image", i.sprite, typeof(Sprite), false) as Sprite; EditorGUILayout.EndHorizontal(); i.imageType = (UnityEngine.UI.Image.Type) EditorGUILayout.EnumPopup("Image Type", i.imageType); if(i.imageType == UnityEngine.UI.Image.Type.Filled) { i.fillMethod = (UnityEngine.UI.Image.FillMethod)EditorGUILayout.EnumPopup("Fill Method",i.fillMethod); EditorGUI.indentLevel++; switch(i.fillMethod) { case UnityEngine.UI.Image.FillMethod.Horizontal: i.originHorz = (UnityEngine.UI.Image.OriginHorizontal)EditorGUILayout.EnumPopup("Fill Method",i.originHorz); break; case UnityEngine.UI.Image.FillMethod.Vertical: i.originVert = (UnityEngine.UI.Image.OriginVertical)EditorGUILayout.EnumPopup("Fill Method",i.originVert); break; case UnityEngine.UI.Image.FillMethod.Radial90: i.origin90 = (UnityEngine.UI.Image.Origin90)EditorGUILayout.EnumPopup("Fill Method",i.origin90); break; case UnityEngine.UI.Image.FillMethod.Radial180: i.origin180 = (UnityEngine.UI.Image.Origin180)EditorGUILayout.EnumPopup("Fill Method",i.origin180); break; case UnityEngine.UI.Image.FillMethod.Radial360: i.origin360 = (UnityEngine.UI.Image.Origin360)EditorGUILayout.EnumPopup("Fill Method",i.origin360); break; } i.fillAmount = EditorGUILayout.Slider("Fill Amount",i.fillAmount,0f,1f); i.clockwise = EditorGUILayout.Toggle("Clockwise", i.clockwise); EditorGUI.indentLevel--; } else { i.fillCenter = EditorGUILayout.Toggle("Fill Center", i.fillCenter); } i.preserveAspect = EditorGUILayout.Toggle("Preserve Aspect", i.preserveAspect); EditorGUILayout.BeginHorizontal(); EditorGUILayout.Space(); if(GUILayout.Button("Remove Format")) { removeImageList.Add(i); } EditorGUILayout.EndHorizontal(); EditorGUI.indentLevel--; } } else{ foreach(CTS_Text t in textList) { EditorGUILayout.Space(); EditorGUILayout.LabelField("Style : " + t.styleName); EditorGUI.indentLevel++; EditorGUILayout.Space(); t.styleName = EditorGUILayout.TextField("Style Name : ", t.styleName); t.font = EditorGUILayout.ObjectField("Font",t.font,typeof(Font),false) as Font; t.fontSize = EditorGUILayout.IntField("Font Size", t.fontSize); t.fontStyle = (FontStyle) EditorGUILayout.EnumPopup("Font Sytle", t.fontStyle); EditorGUILayout.Space(); // EditorGUILayout.BeginHorizontal(); // EditorGUILayout.BeginVertical(); t.textAnchor = (TextAnchor) EditorGUILayout.EnumPopup("Text Alignment", t.textAnchor); t.horzWrap = (HorizontalWrapMode) EditorGUILayout.EnumPopup("Horizontal Overflow", t.horzWrap); t.vertWrap = (VerticalWrapMode) EditorGUILayout.EnumPopup("Vertical Overflow",t.vertWrap); t.resizeForBestFit = EditorGUILayout.ToggleLeft("Best Fit", t.resizeForBestFit); if(t.resizeForBestFit) { EditorGUI.indentLevel++; t.minSize = EditorGUILayout.IntField("Min Size", t.minSize); t.maxSize = EditorGUILayout.IntField("Max Size", t.maxSize); EditorGUI.indentLevel--; } EditorGUILayout.Space(); t.textColor = EditorGUILayout.ColorField("Text Color",t.textColor); t.textMat = EditorGUILayout.ObjectField("Material", t.textMat, typeof(Material),false) as Material; t.isRaycastTarget = EditorGUILayout.ToggleLeft("Raycast Target", t.isRaycastTarget); // EditorGUILayout.EndVertical(); EditorGUILayout.Space(); EditorGUILayout.Space(); EditorGUILayout.BeginHorizontal(); EditorGUILayout.Space(); // if(GUILayout.Button("Save Changes")) // { // UpdateAsset(); // } if(GUILayout.Button("Remove Format")) { removeTextList.Add(t); UpdateAsset(); } EditorGUILayout.EndHorizontal(); EditorGUILayout.Space(); EditorGUI.indentLevel--; } } EditorGUILayout.Space(); EditorGUILayout.Space(); EditorGUILayout.Space(); EditorGUILayout.Space(); EditorGUILayout.EndScrollView(); if(GUILayout.Button("Add " + thisType.ToString() + " Style")) { switch(thisType) { case _type.Image: AddImage(); break; case _type.Text: AddText(); break; } UpdateAsset(); } RemoveText(); RemoveImage(); if(GUI.changed) { EditorUtility.SetDirty(CTS_Data); } // if(GUI.changed) // { // Debug.Log("changed"); // UpdateAsset(); // } CTS_Data.imageList = imageList; CTS_Data.textList = textList; }
writer.WriteStringValue(Enum.GetName(_type, val));
public maptype(_type typ = default, ref ptr <_type> key = default, ref ptr <_type> elem = default, ref ptr <_type> bucket = default, Func <unsafe.Pointer, System.UIntPtr, System.UIntPtr> hasher = default, byte keysize = default, byte elemsize = default, ushort bucketsize = default, uint flags = default)
public functype(_type typ = default, ushort inCount = default, ushort outCount = default) { this.typ = typ; this.inCount = inCount; this.outCount = outCount; }
public ptrtype(_type typ = default, ref ptr <_type> elem = default) { this.typ = typ; this.elem = elem; }
public interfacetype(_type typ = default, name pkgpath = default, slice <imethod> mhdr = default) { this.typ = typ; this.pkgpath = pkgpath; this.mhdr = mhdr; }
set => Set(ref _type, value, SetExecutionAction, nameof(Type), nameof(TypeDisplayName));
public Bird(string _name = "noNameYet", _type _Type = _type._nullType) { name = _name; type = _Type; }
public structtype(_type typ = default, name pkgPath = default, slice <structfield> fields = default) { this.typ = typ; this.pkgPath = pkgPath; this.fields = fields; }