Custom Controls in C# with Unity3D
Hey,
I am currently evaluating Noesis for a new project and was wondering whether it is now, with version 2.0 being out, possible to create custom controls in C#.
While there are many posts here about that topic, all of them are at least a couple of years old.
Regards
Alexander
I am currently evaluating Noesis for a new project and was wondering whether it is now, with version 2.0 being out, possible to create custom controls in C#.
While there are many posts here about that topic, all of them are at least a couple of years old.
Regards
Alexander
-
sfernandez
Site Admin
- Posts: 2995
- Joined:
Re: Custom Controls in C# with Unity3D
Hi,
In Unity3D you can create custom controls but with some limitations, as C# API doesn't expose protected virtual methods from base classes.
For example, if your control needs to do something when a mouse button is pressed, you have to hook to MouseDown event, instead of overriding OnMouseDown method as you would do in WPF.
In a lot of scenarios this is enough for creating custom controls, but as this is not perfect, we will expose all base class protected virtual methods in future versions.
In Unity3D you can create custom controls but with some limitations, as C# API doesn't expose protected virtual methods from base classes.
For example, if your control needs to do something when a mouse button is pressed, you have to hook to MouseDown event, instead of overriding OnMouseDown method as you would do in WPF.
In a lot of scenarios this is enough for creating custom controls, but as this is not perfect, we will expose all base class protected virtual methods in future versions.
Re: Custom Controls in C# with Unity3D
It's now Mar 28 2019. and we are now having the same requirment. so when will you support to override the protected virtual methods in C#. We are eager to use this feature!Hi,
In Unity3D you can create custom controls but with some limitations, as C# API doesn't expose protected virtual methods from base classes.
For example, if your control needs to do something when a mouse button is pressed, you have to hook to MouseDown event, instead of overriding OnMouseDown method as you would do in WPF.
In a lot of scenarios this is enough for creating custom controls, but as this is not perfect, we will expose all base class protected virtual methods in future versions.
-
sfernandez
Site Admin
- Posts: 2995
- Joined:
Re: Custom Controls in C# with Unity3D
Hi, as I mentioned in one of your posts we work on every version to incorporate more and more features for the C# layer, focusing on the features and requests from our customers.
Anything that you find missing, please create a ticket in our bugtracker and we will work on it as soon as possible.
Thanks for your feedback.
Anything that you find missing, please create a ticket in our bugtracker and we will work on it as soon as possible.
Thanks for your feedback.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 3 guests