-
-
Notifications
You must be signed in to change notification settings - Fork 911
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
[Asset] Valid default UrlReference prevent building #783
Comments
It's been along time since I looked at this. But I am pretty sure you should not be assigning it a value like that in code. It should only be set by the editor. Options:
The earliest I could look at this is the weekend. |
I completely understand why it shouldn't work for invalid paths but I don't see a reason not to support this for valid ones, is there a specific limitation that I'm not aware of ? |
References are different to paths. The Game studio links the |
It's been a while, but I think I told @dfkeenan to rely on Idea is that then it's properly serialized in asset file in format Not exactly sure what's best way to fix that yet, but could be either:
|
Release Type: Github
Version: Latest
Platform(s): Any
Describe the bug
public UrlReference SomeRefs = new UrlReference( "MainScene" );
Prevents building the game and logs an error when loading a game in the editor even if the url provided is valid.
To Reproduce
Steps to reproduce the behavior:
public UrlReference SomeRefs = new UrlReference( "MainScene" );
to one of the scripts.(andusing Stride.Core.Serialization;
)Expected behavior
Providing a default implementation that has a valid url should work. And if an invalid one has to throw it should be more explicit.
Log and callstacks
urlerror.txt
Additional context
You will have to remove the url property from the scene file after saving a scene to force stride to process the default value for that field again, otherwise it'll just throw with an empty url issue.
Pinging @dfkeenan to see if he can fix this really fast or has some additional insight into this issue.
The text was updated successfully, but these errors were encountered: