Skip to content

UniTask based method silently failed if Assert is done without trycatch #690

@kenofori

Description

@kenofori

Hi there,

Following code simply doesnt work in Play Mode in Editor or reach status point

` public async UniTask PreLoadParticleSystem()
{

        Assert.IsTrue(status == RemoteContentStatus.Loading, $"{particleName} iss already loaded");

//it doesnt reach here
status = RemoteContentStatus.Loading;
`

However if does work if i put Assert.IsTrue in try catch, which defeat the prupose of using Assert for automatically removing in production build.
Please advise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions