运行 场景(场景套件)?
run scene (scene kit )?
是否可以在 Apple Watch 上运行此代码:
SCNScene *scene = [SCNScene sceneNamed:@"art.scnassets/ship.dae"];
// retrieve the ship node
SCNNode *ship = [scene.rootNode childNodeWithName:@"ship" recursively:YES];
// animate the 3d object
[ship runAction:[SCNAction repeatActionForever:[SCNAction rotateByX:0 y:2 z:0 duration:1]]];
// retrieve the SCNView
SCNView *scnView = (SCNView *)self.view;
// set the scene to the view
scnView.scene = scene;
// allows the user to manipulate the camera
scnView.allowsCameraControl = YES;
// show statistics such as fps and timing information
scnView.showsStatistics = YES;
主控无法放场景
SCNView *scnView = (SCNView *)self.view;
拜托,帮忙。
为 Apple Watch 制作应用程序的唯一方法是 WatchKit。 WatchKit 不包含在手表上呈现任何 iOS 视图的能力,仅包含 WatchKit 框架中定义的一组特定 UI 控件。有关详细信息,请参阅 WatchKit Programming Guide。
是否可以在 Apple Watch 上运行此代码:
SCNScene *scene = [SCNScene sceneNamed:@"art.scnassets/ship.dae"];
// retrieve the ship node
SCNNode *ship = [scene.rootNode childNodeWithName:@"ship" recursively:YES];
// animate the 3d object
[ship runAction:[SCNAction repeatActionForever:[SCNAction rotateByX:0 y:2 z:0 duration:1]]];
// retrieve the SCNView
SCNView *scnView = (SCNView *)self.view;
// set the scene to the view
scnView.scene = scene;
// allows the user to manipulate the camera
scnView.allowsCameraControl = YES;
// show statistics such as fps and timing information
scnView.showsStatistics = YES;
主控无法放场景
SCNView *scnView = (SCNView *)self.view;
拜托,帮忙。
为 Apple Watch 制作应用程序的唯一方法是 WatchKit。 WatchKit 不包含在手表上呈现任何 iOS 视图的能力,仅包含 WatchKit 框架中定义的一组特定 UI 控件。有关详细信息,请参阅 WatchKit Programming Guide。