CancellationToken while loading a 3D scene in C#
Contents
[
Hide
]
CancellationToken while loading a 3D scene
All open/save methods will have an extra cancellationToken parameter with a default value, so codes that used these methods don’t need to modify to compile.
You can use the CancellationTokenSource
to cancel the save/open task at any time you need, as shown in this C# code example with C# 3D file formats manipulation API: