« first day (2970 days earlier)      last day (2040 days later) » 

12:56 AM
What is the correct way to Vector2.zero();
 
 
11 hours later…
12:27 PM
what language? what library's Vector2? are you trying to mutably change an existing vector to zero or are you trying to create a new zero vector?
 
 
1 hour later…
1:52 PM
@coffeemancer Unity's C# API has a Vector2 class with a static readonly property that's just Vector2.zero - no parentheses. So you can initialize a zero vector as var myVector = Vector2.zero; or return a zero vector as return Vector2.zero; - is that what you're looking for?
 
 
1 hour later…
user92578
3:01 PM
 
user92578
got text selection working in the multiline entry box too
 
user92578
just gotta do some performance optimizations, it's currently quite expensive to calculate what character the cursor is on
 
Nicely done!
 
 
3 hours later…
Kay
6:29 PM
@Tyyppi_77 If changing the font is an option, maybe take a monospace one
 
user92578
it is not
 
Kay
I remember I had to do a performance optimization much like that one because the UI library we used didnt had it inbuilt. That was a pain to deal with :D
 
user92578
yeah, I need to do the calculations myself too
 
user92578
It should already be cached, I need to run some profiling to see where it fails
 
11:20 PM
Hello!
 

« first day (2970 days earlier)      last day (2040 days later) »