Forums › 💬 Slate Sequencer › ⚙️ Support › How to add onFinish callback to PlayFromSection? › Reply To: How to add onFinish callback to PlayFromSection?
[quote quote=2242]Hey, sorry for the late reply. I somehow missed your post :-/ Here is how to use lambda: <!– Crayon Syntax Highlighter v_2.7.2_beta –>
</td>
<td class=”crayon-code”>
</td>
</tr>
</tbody>
</table>
<!– [Format Time: 0.0009 seconds] –> In case of PlayFromSection method, the existing overload that accepts callback requires to also provide a wrapping method parameter: <!– Crayon Syntax Highlighter v_2.7.2_beta –>
</td>
<td class=”crayon-code”>
</td>
</tr>
</tbody>
</table>
<!– [Format Time: 0.0002 seconds] –> You can alternatively also replace the lambda with a method if that is easier for you. So for example: <!– Crayon Syntax Highlighter v_2.7.2_beta –>
void OnCutsceneFinish(){
//your code here
Debug.Log(“Finished”);
}
</textarea>
</td>
<td class=”crayon-code”>
</td>
</tr>
</tbody>
</table>
<!– [Format Time: 0.0002 seconds] –> Let me know if that works for you. [/quote]
Works perfectly- thank you!