• 大小: 37.1MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-30
  • 语言: 其他
  • 标签: Vuforia  Unity3D  

资源简介

Unity3D 使用Vuforia Vuforia Engine 8.0发布AR视频播放

资源截图

代码片段和文件信息

/*===============================================================================
Copyright (c) 2017 PTC Inc. All Rights Reserved.

Confidential and Proprietary - Protected under copyright and other laws.
Vuforia is a trademark of PTC Inc. registered in the United States and other 
countries.
===============================================================================*/

using System.Linq;
using UnityEditor;
using UnityEngine;
using Vuforia;
using Vuforia.EditorClasses;

/// 
/// Creates connection between open source files and the Vuforia library.
/// Do not modify.
/// 

[Initializeonload]
public static class OpenSourceInitializer
{
    static OpenSourceInitializer()
    {
        GameobjectFactory.SetDefaultBehaviourTypeConfiguration(new DefaultBehaviourAttacher());
        ReplacePlaceHolders();
    }

    static void ReplacePlaceHolders()
    {
        var trackablePlaceholders = object.FindobjectsOfType().ToList();
        var initErrorsPlaceholders = object.FindobjectsOfTypeerrorHandlerPlaceHolder>().ToList();
        
        trackablePlaceholders.ForEach(ReplaceTrackablePlaceHolder);
        initErrorsPlaceholders.ForEach(ReplaceInitErrorPlaceHolder);
    }
    
    static void ReplaceTrackablePlaceHolder(DefaultTrackableBehaviourPlaceholder placeHolder)
    {
        var go = placeHolder.gameobject;
        go.AddComponent();

        object.DestroyImmediate(placeHolder);
    }

    static void ReplaceInitErrorPlaceHolder(DefaultInitializationerrorHandlerPlaceHolder placeHolder)
    {
        var go = placeHolder.gameobject;
        go.AddComponenterrorHandler>();

        object.DestroyImmediate(placeHolder);
    }

    class DefaultBehaviourAttacher : IDefaultBehaviourAttacher
    {
        public void AddDefaultTrackableBehaviour(Gameobject go)
        {
            go.AddComponent();
        }

        public void AddDefaultInitializationerrorHandler(Gameobject go)
        {
            go.AddComponenterrorHandler>();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-17 14:10  VideoVuforia\
     目录           0  2019-01-17 11:42  VideoVuforia\.vs\
     目录           0  2019-01-17 11:42  VideoVuforia\.vs\VideoVuforia\
     目录           0  2019-01-17 11:43  VideoVuforia\.vs\VideoVuforia\v15\
     文件      105472  2019-01-17 14:10  VideoVuforia\.vs\VideoVuforia\v15\.suo
     目录           0  2019-01-17 11:43  VideoVuforia\.vs\VideoVuforia\v15\Server\
     目录           0  2019-01-17 11:43  VideoVuforia\.vs\VideoVuforia\v15\Server\sqlite3\
     文件           0  2019-01-17 11:43  VideoVuforia\.vs\VideoVuforia\v15\Server\sqlite3\db.lock
     文件        4096  2019-01-17 11:43  VideoVuforia\.vs\VideoVuforia\v15\Server\sqlite3\storage.ide
     文件       32768  2019-01-17 11:43  VideoVuforia\.vs\VideoVuforia\v15\Server\sqlite3\storage.ide-shm
     文件     1182472  2019-01-17 14:10  VideoVuforia\.vs\VideoVuforia\v15\Server\sqlite3\storage.ide-wal
     目录           0  2019-01-17 11:33  VideoVuforia\Assets\
     文件     2543774  2019-01-17 11:09  VideoVuforia\Assets\002.mp4
     文件         453  2019-01-17 11:33  VideoVuforia\Assets\002.mp4.meta
     目录           0  2019-01-17 09:24  VideoVuforia\Assets\Editor\
     文件          60  2018-02-13 10:45  VideoVuforia\Assets\Editor.meta
     目录           0  2019-01-17 09:24  VideoVuforia\Assets\Editor\Vuforia\
     文件         191  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia.meta
     目录           0  2019-01-17 09:24  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures\
     文件         213  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures.meta
     目录           0  2019-01-17 09:24  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures\VuforiaMars_Images\
     文件         213  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures\VuforiaMars_Images.meta
     文件         417  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures\VuforiaMars_Images\authoringinfo.xml
     文件          60  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures\VuforiaMars_Images\authoringinfo.xml.meta
     文件       43258  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures\VuforiaMars_Images\RocketBooster.Body_scaled.jpg
     文件        1613  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures\VuforiaMars_Images\RocketBooster.Body_scaled.jpg.meta
     文件        6888  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures\VuforiaMars_Images\RocketBooster.Top_scaled.jpg
     文件        1613  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\CylinderTargetTextures\VuforiaMars_Images\RocketBooster.Top_scaled.jpg.meta
     目录           0  2019-01-17 09:24  VideoVuforia\Assets\Editor\Vuforia\Emulator\
     文件         213  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\Emulator.meta
     文件      141906  2018-02-13 10:45  VideoVuforia\Assets\Editor\Vuforia\Emulator\VuforiaEmulator.dat
............此处省略3882个文件信息

评论

共有 条评论