UIView as SCNMaterialProperty on iOS

旧时模样 提交于 2019-12-07 23:25:33

问题


When using a UIView as an SCNMaterialProperty in a SceneKit scene, can that view be part of the responder chain?

To clarify how:

omg_you_can_use_an_actual_uiview_now = UIView(frame: CGRect(x: 0, y: 0, width: 500, height: 500))
material_plane.diffuse.contents = omg_you_can_use_an_actual_uiview_now
let geom_plane = SCNPlane(width: 1, height: 1)
geom_plane.materials = [material_plane]

来源:https://stackoverflow.com/questions/48425281/uiview-as-scnmaterialproperty-on-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!