I've been trying to animate the OpacityComponent to fade in/out entities in my scene. I've tried animating the component with an AnimationResource as well as tried animating with a custom System. Both worked fine in the simulator, but failed on device.
AnimationResource: When I animated the opacity of an entity using an animation with an opacity bind target, the entity would not change opacity until I physically looked away from the object. It's almost as if the device keeps an entity visible for as long as you keep looking at it, but once you look away it plays the animation.
System: I created a custom system that manually changes the opacity over time, however, on device the gradual fade of the entity doesn't work. Instead, the entity literally pops in/out of view instead of fading.
Can someone explain exactly how this component is supposed to be used? The simulator plays the animations exactly the way I would expect, but on device it's completely different.
Edit:
I'm trying to change the opacity of entities with a VideoMaterial added to a ModelComponent. The fade animations are performed at certain points in the video that are triggered by an AVPlayer time boundary observer.
Post
Replies
Boosts
Views
Activity
I have a popover attached to a button in an iPad app. The location of the popover anchor looks fine at time of presentation, but when I change the orientation of the iPad the anchor becomes detatched from the button and floats somewhere else on the screen.Is this a known bug? Is there a workaround?
Every time I try using the new URLSessionWebSocketTask I eventually receive an error that crashes my app.Fatal error: Only one of message or error should be nil: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang_overlay_Foundation_Device/swiftlang-1100.2.32.33/swift/stdlib/public/Darwin/Foundation/URLSession.swift, line 46Has anyone experienced this issue? If so, do you know what's causing the problem?Development Setup:macOS 10.14.5 - Xcode 11 betaiPhone 8 Plus - iOS 13 beta