✨
RealityKitでシンプルなbox entityを生成する
いつも忘れちゃうのでメモ
let mesh = MeshResource.generateBox(size: 0.05, cornerRadius: 0.01)
let material = SimpleMaterial(color: .blue, isMetallic: false)
let cube = ModelEntity(mesh: mesh, materials: [material])
いつも忘れちゃうのでメモ
let mesh = MeshResource.generateBox(size: 0.05, cornerRadius: 0.01)
let material = SimpleMaterial(color: .blue, isMetallic: false)
let cube = ModelEntity(mesh: mesh, materials: [material])
Discussion