Tracking3DDelegate和Tracked3DDelegate在什么条件下执行? 是点击三维模型的点击事件回调吗? 我实现了这两个方法,但是方法不执行.如果不是点击事件的回调, 那么怎么拿到三维模型的点击事件呢?
@interface ViewController ()<Tracking3DDelegate,Tracked3DDelegate>
@property (strong, nonatomic) IBOutlet SceneControl *sceneControl;
@end
@implementation ViewController
@synthesize sceneControl = _sceneControl;
- (void)viewDidLoad {
[super viewDidLoad];
[_sceneControl initSceneControl:self];
_sceneControl.tracking3DDelegate = self;
_sceneControl.tracked3DDelegate = self;
BOOL isOpen = [_sceneControl.scene openSceneWithUrl:@"xxxxxxxxx" Name:@"xxxxxxx" Password:nil];
}
-(void)tracking3DEvent:(Tracking3DEvent *)event{
NSLog(@"xxxxxxxx");
}
- (void)tracked3DEvent:(Tracked3DEvent *)event{
NSLog(@"xxxxxxxx");
}