コード例 #1
0
    /// <summary>
    /// mount or unmount a dedicated symbol for legacy vuforia support
    /// </summary>
    static void CheckAndUpdateVersionIfNeeded()
    {
        VersionInfo _version        = new VersionInfo(VuforiaUnity.GetVuforiaLibraryVersion());
        VersionInfo _7_2_20_Version = new VersionInfo("7.2.20");

                #if PLAYMAKER_VUFORIA_7_2_20_OR_NEWER
        if (_version < _7_2_20_Version)
        {
            PlayMakerEditorUtils.UnMountScriptingDefineSymbolToAllTargets(PLAYMAKER_VUFORIA_7_2_20_OR_NEWER);
        }
                #else
        if (_version >= _7_2_20_Version)
        {
            PlayMakerEditorUtils.MountScriptingDefineSymbolToAllTargets(PLAYMAKER_VUFORIA_7_2_20_OR_NEWER);
        }
                #endif

                #if PLAYMAKER_VUFORIA_PRIOR_7_2
        if (_version >= _7_2_20_Version)
        {
            PlayMakerEditorUtils.UnMountScriptingDefineSymbolToAllTargets(PLAYMAKER_VUFORIA_PRIOR_7_2);
        }
                #else
        if (_version < _7_2_20_Version)
        {
            PlayMakerEditorUtils.MountScriptingDefineSymbolToAllTargets(PLAYMAKER_VUFORIA_PRIOR_7_2);
        }
                #endif
    }
コード例 #2
0
    static PlayMakerUtilsDefines()
    {
                #if !PLAYMAKER_UTILS
        PlayMakerEditorUtils.MountScriptingDefineSymbolToAllTargets("PLAYMAKER_UTILS");
                #endif

                #if !PLAYMAKER_UTILS_1_4_OR_NEWER
        PlayMakerEditorUtils.UnMountScriptingDefineSymbolToAllTargets("PLAYMAKER_UTILS_1_4_OR_NEWER");
                #endif

                #if !PLAYMAKER_UTILS_1_5_OR_NEWER
        PlayMakerEditorUtils.UnMountScriptingDefineSymbolToAllTargets("PLAYMAKER_UTILS_1_5_OR_NEWER");
                #endif
    }