and how exactly is unity going to know whether it was gotten legitimately or not? the only way the developers wouldn’t get charged is if crackers patched it out
They can’t detect everything, but let’s look at Steam as an example. If the game detects Steam DRM, then the game knows that they should’ve bought the game on Steam. They can check whether the Steam DRM is a stub and therefore a crack, or get your local Steam account ID and cross-check whether you bought the game with a Steam API.