A.Wieser
Topic Author
Posts: 1
Joined: 19 Nov 2017, 18:29

Custom Controls in C# with Unity3D

17 Dec 2017, 21:36

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
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: Custom Controls in C# with Unity3D

18 Dec 2017, 12:09

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.
 
shawn
Posts: 13
Joined: 14 Mar 2019, 10:05

Re: Custom Controls in C# with Unity3D

28 Mar 2019, 02:43

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!
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: Custom Controls in C# with Unity3D

01 Apr 2019, 18:21

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.

Who is online

Users browsing this forum: Google [Bot] and 66 guests