using System; namespace UnityEngine.Experimental.Perception.Randomization.Scenarios { /// /// A scenario that runs for a fixed number of frames during each iteration /// [AddComponentMenu("Perception/Randomization/Scenarios/Fixed Length Scenario")] public class FixedLengthScenario: USimScenario { /// /// Constants describing the execution of this scenario /// [Serializable] public class Constants : USimConstants { /// /// The number of frames to generate per iteration /// public int framesPerIteration = 1; } /// /// Returns whether the current scenario iteration has completed /// public override bool isIterationComplete => currentIterationFrame >= constants.framesPerIteration; } }