SAMYieldInstruction Class

public class SAMYieldInstruction : YieldInstruction

You can override this class to create custom Yield Instructions. This class mimics Unity's built in CustomYieldInstruction, however that class cannot be used since it does not derive from YieldInstruction.

Properties

Name Type Description
keepWaiting bool

Override this to tell methods driving the enumerator whether to keep waiting.