zoukankan      html  css  js  c++  java
  • ahjesus Unity3D XML注释被编译的问题

    public class XMLStringReader : MonoBehaviour {
            public string slectedItem;
            private bool editing = false;
    
            public string signalsa;
            public XmlReaderSettings settings;
    
            void OnGUI() {
                if (GUILayout.Button(slectedItem)) {
                    editing = true;
                }
    
                XmlReaderSettings settings = new XmlReaderSettings();
                settings.IgnoreWhitespace = true;
                settings.IgnoreComments = true;
    
                using (XmlReader reader = XmlReader.Create("D://Docs/Unity3D/cdp/UDPApplication/Components/UDPIOServer.xml", settings)) {
                    while (reader.Read()) {
                        if (reader.NodeType == XmlNodeType.Element) {
                            if (reader.HasAttributes) {
                                if (reader.GetAttribute("UnityName") != null) {
                                    signalsa = reader.GetAttribute("UnityName");
                                    string[] signalsCDP = { signalsa };
                       //ahjesus  
    if (editing) { for (int i = 0; i < signalsCDP.Length; i++) { if (GUILayout.Button(signalsCDP[i])) { slectedItem = signalsCDP[i]; editing = false; print(signalsCDP[i].ToString()); } } } } } } } } } }
  • 相关阅读:
    NSOperationQueue
    iOS开发网络数据之AFNetworking使用
    NSURLConnection
    SQLite3 嵌入式数据库
    iOS中常用的四种数据持久化方法简介
    <转> core Animation动画-2
    core Animation动画
    ios数据库操作SQLite
    SQLite3-各个函数
    SQLite3-数据类型
  • 原文地址:https://www.cnblogs.com/ahjesus/p/3435266.html
Copyright © 2011-2022 走看看