Change color or shape of original target-square.
vegiwoo opened this issue · comments
Vegi Woo commented
Describe the bug
Can't change the color of the target square and the shape (if I don't really like the square)
To Reproduce
class CustomARView: ARView {
var focusEntity: FocusEntity!
required init (frame frameRect: CGRect) {
super.init (frame: frameRect)
focusEntity = FocusEntity (on: self, style: .classic (color: .red))
// оr focusEntity = FocusEntity (on: self, style: .colored (onColor: .white, offColor: .gray, otherColor: .blue, mesh: MeshResource.generateSphere (radius: 0.5)))
focusEntity.delegate = self
focusEntity.setAutoUpdate (to: true)
}
@objc required dynamic init? (coder decoder: NSCoder) {
fatalError ("init (coder :) has not been implemented")
}
}
Expected behavior
Change the color or shape of the original target square.
Environment:
- iOS Version - 14.1
- Device Information - iPhone XS Max
- macOS Version - BigSur beta 11
- Xcode Version - 12.0