Marketplace.GetAssetInfo as an alias for Marketplace.GetProductInfo, potentially supersede latter

As a Roblox developer, it is too confusing, especially for novice developers, to understand that a native way to fetch information about assets exists in the engine.

The method for doing so, GetProductInfo, makes it sound as though it should only be used with products, however it supports any valid asset with the proper id and AssetType Enum supplied to it (places, shirts, game passes, so on). Clarity is fairly important to code and I understand that there is a very keen desire on naming methods appropriately to reflect what they really do.

If Roblox were able to address this issue, it would improve my development experience because now I can clearly see in my code that a call to GetAssetInfo is trying to query information about an asset on the site even if I’m not working with developer products. The method name would also look more appropriate and searchable to novice developers who are looking for a way to get information on an asset and don’t know that GetProductInfo is currently the way to do that.

3 Likes