Bootstrap

unity_预编译指令及文件路径

using UnityEngine;
public class KernalConstant 
{
#if UNITY_STANDALONE_WIN
    //日志配置文件路径
    internal static readonly string LogConfigInfoPath = "file://"+Application.dataPath+ "/StreamingAssets/ResCfgs/LogConfigInfo.xml";
    //日志根节点名称
    internal static readonly string LogConfigInfoRootNodename = "LogConfigInfo";
#elif UNITY_ANDROID
    //日志配置文件路径
    internal static readonly string LogConfigInfoPath = "file://" + Application.dataPath + "!/Assets/ResCfgs/LogConfigInfo.xml";
    //日志根节点名称
    internal static readonly string LogConfigInfoRootNodename = "LogConfigInfo";
    
#elif UNITY_IPHONE
    //日志配置文件路径
    internal static readonly string LogConfigInfoPath = "file://" + Application.dataPath + "/Raw/ResCfgs/LogConfigInfo.xml";
    //日志根节点名称
    internal static readonly string LogConfigInfoRootNodename = "LogConfigInfo";
#endif
}

;