You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Haxe, wan...@gmail.com
I'm trying to revive Unity support for Haxe. The HEAD CS generator is pretty good at using C# dlls, so thanks for that!
One issue I'm having is: how to do C# attributes in Haxe? I.e., like [Range(-100, 100)] or [ExecuteInEditMode]?
Thanks,
Fernando
Dan Korostelev
unread,
Jun 2, 2016, 3:49:51 PM6/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Haxe, wan...@gmail.com
Hey!
You can do that using the `@:meta` metadata. For example: @:meta(UnityEngine.Range(-100, 100)). For more complex cases you could also use string constant for that metadata, like @:meta("global::WhateverNameSpace.MyAttribute(...)")
четверг, 2 июня 2016 г., 22:41:06 UTC+3 пользователь Fernando Serboncini написал:
Fernando Serboncini
unread,
Jun 2, 2016, 3:52:04 PM6/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com, Dan Korostelev
On a related note, is there a way to globally replace "trace" ?
I know one can do haxe.Log.trace = function(v, ?posInfo) {...}, but is there a way to do this that would work on Unity? I.e., where I don't have a main entry point and don't want to do this before every use?
Cauê Waneck
unread,
Jun 2, 2016, 5:08:14 PM6/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com, Dan Korostelev
You can use `static function __init__()` to initialize functions like these