I try to change background in ARSCNView. It works with below code.
I want to add animation such as fade in and fade out when changing the background.
I did with CAAnimation but it is not working. I read document of contents is animatable.
https://developer.apple.com/documentation/scenekit/scnmaterialproperty/1395372-contents
Give me some advice about animate contents.
Code Block let background = MDLTexture(named: "Background/photo_studio_01.jpg", bundle: nil) // or UIImage. scene.background.contents = background
I want to add animation such as fade in and fade out when changing the background.
I did with CAAnimation but it is not working. I read document of contents is animatable.
https://developer.apple.com/documentation/scenekit/scnmaterialproperty/1395372-contents
Give me some advice about animate contents.