For example, Asset::WaitForLoaded, from my understanding, when the method return true, it means that asset loaded successfully, but the fact is completely opposite.
So, I want to know how to better understand this type of return value?
Maybe in this case it returns false for being successful because the Asset is no longer waiting to be loaded?
https://docs.flaxengine.com/api-cpp/Asset.html#Asset_WaitForLoaded_double_
It’s from very old design in engine where many code paths returned error code (eg. enum or number). Then 0 was used as success. Then it slowly convered into simpler boolean were true was retained as failure flag. Always, code docs explain the value for consistency.
That was code design decision made over 14 years ago and remain in the engine codebase.