private string emojiText => Regex.Replace(text, "\\[[a-z0-9A-Z]+\\]", "%%"); private static Dictionary<string, EmojiInfo> m_EmojiIndexDict = null; struct EmojiInfo { public float x; public float y; public float size; } readonly UIVertex[] m_TempVerts = new UIVertex[4]; prot...
publicclassDialogData{publicstaticDialogData instance = null;//对话框单例List<string> allShowTexts = new List<string>();//需要显示的所有文本public delegatevoidOnCloseDialog(); public OnCloseDialog onCloseDialog = null; publicstaticDialogDataGetInstance(){if(instance == null) { instance = new D...
define PRODUCT_VERSION ";//版本号conststringPublisherText="!define PRODUCT_PUBLISHER ";//出版商conststringOutFileText="OutFile \"";//安装输出路径publicintcallbackOrder=>0;privatestaticStringBuildersb;privatestringpath;privatestaticintrootLength;privatestaticList<string>outList=newList<string>();publicvoi...
stringdeviceName = cameraDevices[0].name; Debug.Log(deviceName); camTexture =newWebCamTexture(deviceName); img.canvasRenderer.SetTexture(camTexture);//注意改行代码 camTexture.Play(); } } }
usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingSystem;publicclassSerialHandler:MonoBehaviour{SerialPortUtility.SerialPortUtilityProserialPort;privatestring_on="relay on 0";privatestring_off="relay off 0";voidAwake(){serialPort=this.GetComponent<SerialPortUtility.SerialPortUtilityPr...
您可以使用Excel编译如下内容,并保存为文件setting/test.xls: Id#SomethingValueComment intstringstringstring 关键字/注释行带#开头的注释列内容带Comment开头的注释列 1无用注释Abcdefg一些注释 #注释行无用注释Abcdefg一些注释 Comment注释行无用注释Abcdefg一些注释 ...
public static void CloseDialog() { if (GetInstance().onCloseDialog != null) { GetInstance().onCloseDialog(); } GetInstance().ClearData(); } public void ClearData() { GetInstance().allShowTexts = new List<string>(); onCloseDialog = null; ...
publicclassCameraTest : MonoBehaviour { WebCamTexture camTexture; voidStart () { StartCoroutine(CallCamera()); } IEnumerator CallCamera() { yieldreturnApplication.RequestUserAuthorization(UserAuthorization.WebCam); if(Application.HasUserAuthorization(UserAuthorization.WebCam)) ...