【发布时间】:2015-05-19 12:47:36
【问题描述】:
是否可以在 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;
请帮忙。
【问题讨论】:
标签: ios scenekit apple-watch