init(id:time:duration:direction:opacity:offset:)
Creates a fade environment command instance.
Declaration
init(id: Int, time: CMTime, duration: CMTime, direction: FadeEnvironmentCommand.FadeDirection, opacity: Float, offset: CMTime? = nil)Parameters
- id:
The unique ID of this command.
- time:
The time this command starts during playback.
- duration:
The duration of the command. This can be
.zeroif the command doesn’t have a specific duration. - direction:
The fade direction for this command instance.
- opacity:
The fade opacity.
- offset:
The offset from the start time of this command.