Upgraded original RothenburgAR to Unity version 2017.4.5f1 (and upgrading from standalone vuforia to the version integrated in unity)

This commit is contained in:
2018-08-03 15:43:36 +02:00
parent 64f296a0aa
commit 13041e7a70
738 changed files with 592316 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
/*===============================================================================
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;
/// <summary>
/// Creates connection between open source files and the Vuforia library.
/// Do not modify.
/// </summary>
[InitializeOnLoad]
public static class OpenSourceInitializer
{
static OpenSourceInitializer()
{
GameObjectFactory.SetDefaultBehaviourTypeConfiguration(new DefaultBehaviourAttacher());
ReplacePlaceHolders();
}
static void ReplacePlaceHolders()
{
var trackablePlaceholders = Object.FindObjectsOfType<DefaultTrackableBehaviourPlaceholder>().ToList();
var initErrorsPlaceholders = Object.FindObjectsOfType<DefaultInitializationErrorHandlerPlaceHolder>().ToList();
trackablePlaceholders.ForEach(ReplaceTrackablePlaceHolder);
initErrorsPlaceholders.ForEach(ReplaceInitErrorPlaceHolder);
}
static void ReplaceTrackablePlaceHolder(DefaultTrackableBehaviourPlaceholder placeHolder)
{
var go = placeHolder.gameObject;
go.AddComponent<DefaultTrackableEventHandler>();
Object.DestroyImmediate(placeHolder);
}
static void ReplaceInitErrorPlaceHolder(DefaultInitializationErrorHandlerPlaceHolder placeHolder)
{
var go = placeHolder.gameObject;
go.AddComponent<DefaultInitializationErrorHandler>();
Object.DestroyImmediate(placeHolder);
}
class DefaultBehaviourAttacher : IDefaultBehaviourAttacher
{
public void AddDefaultTrackableBehaviour(GameObject go)
{
go.AddComponent<DefaultTrackableEventHandler>();
}
public void AddDefaultInitializationErrorHandler(GameObject go)
{
go.AddComponent<DefaultInitializationErrorHandler>();
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 06a6d43752a6a6440822e730bd68070c
timeCreated: 1493023741
licenseType: Pro
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: