-
Notifications
You must be signed in to change notification settings - Fork 14
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
any option to have [GetComponent] not override user set reference? #72
Comments
Hi, this is now possible in 3.4.0: [GetComponent(EXP.Silent | EXP.NoPicker)] public Dummy issue72Dummy;
[GetComponent(EXP.Silent | EXP.NoPicker | EXP.NoResignButton)] public Dummy issue72DummySimple; The config is kinda tedious. It might be optimized on a later version. Note: This update might contain bugs. |
is it X or the cycling button? in the other post it was an X so maybe I don't understand its purpose |
Hi, "X" means the value is manually signed, but the "Reload" means the value is manually signed, but the And |
Hi, To use this feature, you need to at lease set // simple
[GetComponentInChildren(EXP.Silent)] public MCMineable source;
// no picker button, no resign/remove button
[GetComponentInChildren(EXP.Silent | EXP.NoPicker | EXP.NoResignButton)] public MCMineable sourcePlain; Unity_6P8yr3lWNK.mp4I do plan to make a config function to set default config globally for many attributes. But that will be much later, after I finish some important features first. |
Ok. Why silent? Seems like a good default behavior. |
Well, I can not give a good reason. When I design When I refactored it into When I'm working in the company, one thing I need to do constantly is: to re-bind all the lost references after a code merge. Yep, we decide not to merge the Unity scene because it's just not possible: Unity has a so-called So, with not enough thought, I picked that aggressive behavior as the default. And I regret it... Yep, that's the story. That's also why I plan to support a config file to allow to change of the default behavior globally (like what |
oh boy, it's like thinking of a name for a method then you're stuck with a naming convention... |
Hi, Since 3.4.11 you can use |
Cool, I was just running into default collision! |
Oh holy fuck... your version is indeed a bit low that does not have ManagedReference yet I'll fix it soon |
Sorry for the trouble, it's been fixed in 3.4.12 |
No worry, I needed to go to bed anyway :D |
I'd like to use [GetComponent] to auto set a default value that can be overridden by the user.
But GetComponent overrides user value.
Is there a way around that?
The text was updated successfully, but these errors were encountered: