Будет ли редактирование скрипта Vuforia ARCamera работать? Кажется, что ARCamera не работает с камерой телефона, но я хочу, чтобы камера Epson BT-35E работала из приложения Unity на телефоне. https://tech.moverio.epson.com/en/bt-35e/index.html Любая помощь или идеи очень ценятся:)
using System;
using UnityEngine;
namespace Vuforia.UnityCompiled
{
public class RuntimeOpenSourceInitializer
{
static IUnityCompiledFacade sFacade;
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
static void OnRuntimeMethodLoad()
{
InitializeFacade();
}
static void InitializeFacade()
{
if (sFacade != null) return;
sFacade = new OpenSourceUnityCompiledFacade();
UnityCompiledFacade.Instance = sFacade;
}
class OpenSourceUnityCompiledFacade : IUnityCompiledFacade
{
readonly IUnityRenderPipeline mUnityRenderPipeline = new UnityRenderPipeline();
public IUnityRenderPipeline UnityRenderPipeline
{
get { return mUnityRenderPipeline; }
}
}
class UnityRenderPipeline : IUnityRenderPipeline
{
public event Action<Camera[]> BeginFrameRendering;
public event Action<Camera> BeginCameraRendering;
public UnityRenderPipeline()
{
#if UNITY_2018
UnityEngine.Experimental.Rendering.RenderPipeline.beginFrameRendering += OnBeginFrameRendering;
UnityEngine.Experimental.Rendering.RenderPipeline.beginCameraRendering += OnBeginCameraRendering;
#else
UnityEngine.Rendering.RenderPipelineManager.beginFrameRendering += OnBeginFrameRendering;
UnityEngine.Rendering.RenderPipelineManager.beginCameraRendering += OnBeginCameraRendering;
#endif
}
#if UNITY_2018
void OnBeginCameraRendering(Camera camera)
#else
void OnBeginCameraRendering(UnityEngine.Rendering.ScriptableRenderContext context, Camera camera)
#endif
{
if (BeginCameraRendering != null)
BeginCameraRendering(camera);
}
#if UNITY_2018
void OnBeginFrameRendering(Camera[] cameras)
#else
void OnBeginFrameRendering(UnityEngine.Rendering.ScriptableRenderContext context, Camera[] cameras)
#endif
{
if (BeginFrameRendering != null)
BeginFrameRendering(cameras);
}
}
}
}`enter code here`