-
-
Notifications
You must be signed in to change notification settings - Fork 955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content Loading Type Error #2178
Comments
Thanks to Eiderens help I added a new method for the conentmanager called If you have anymore suggestions please let us know. |
I think this is issue is more about the fact that the url does exist, but does not point to an object of the type the user specified. So what we should do is change the exception to specify if it's the url or the type provided that's invalid |
Yep, looks good ! |
Is your feature request related to a problem? Please describe.
If the content URL points to the wrong object type (e.g. model instead of prefab) the error reports that the "[c]ontent serializer can not be found." For a new developer with Stride it makes it sound like the issue is with the serialization of the object rather than with the generic type parameter used for the return type.
Describe the solution you'd like
When the URL is to a valid object but the generic type provided is incorrect for the URL the error should state "The asset at the provided URL is not of the requested type."
Describe alternatives you've considered
Once an individual user understands what the error message means they will likely be able to determine what the problem is with the current wording.
Additional context
https://github.com/jonyfries/LoadContentTypeError
Here are some questions that can aid in the description of the feature request:
The text was updated successfully, but these errors were encountered: