Page 1 of 1

Custom Controls in C# with Unity3D

Posted: 17 Dec 2017, 21:36
by A.Wieser
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

Re: Custom Controls in C# with Unity3D

Posted: 18 Dec 2017, 12:09
by sfernandez
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.

Re: Custom Controls in C# with Unity3D

Posted: 28 Mar 2019, 02:43
by shawn
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.
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!

Re: Custom Controls in C# with Unity3D

Posted: 01 Apr 2019, 18:21
by sfernandez
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.