插件之间的融合
MMT与高通直接的融合
在VuforiaNativeRendererController.mm中修改
///import MMT head file
#import <UIKit/UIKit.h>
/// Add original MMT function
extern "C" void MMTUnitySetGraphicsDevice(void* device, int deviceType, int eventType);
extern "C" void MMTUnityRenderEvent(int marker);
///merge two function
extern "C" void VuforiaSetGraphicsDeviceMerges(void* device, int deviceType, int eventType)
{
VuforiaSetGraphicsDevice(device,deviceType,eventType);
MMTUnitySetGraphicsDevice(device,deviceType,eventType);
}
extern "C" void VuforiaRenderEventMerges(int marker)
{
VuforiaRenderEvent(marker);
MMTUnityRenderEvent(marker);
}
最后在把触发旧方法改成新方法即可