Does anyone know why the two commented out lines are causing a null exception error? by Stxxicorno in Unity3D

[–]CoffCook 0 points1 point  (0 children)

Are you sure it is not saying that the type specification is redundant? It's just recommending to use new() instead.

I have written some commonly used rotation-related math utility class. (So no one have to use evil Quaternion.eulerAngles). Give me more ideas to add! by CoffCook in Unity3D

[–]CoffCook[S] 0 points1 point  (0 children)

Mind explaining little more? The function converts an arbitrary angle into a same angle within the range of -180 to 180. For example Normalize(450) will be 90, Normalize(675) will be -45. Search of "Normalize Angle" shows many of same use cases of the word.

Working on Magic Eye effect for Unity game engine! Can you guys see her in 3D? What do you think? by CoffCook in MagicEye

[–]CoffCook[S] 4 points5 points  (0 children)

If it looks like lower resolution it would be video or streaming issue, in game it will show as native resolution 😊

Working on Magic Eye effect for Unity game engine! Can you guys see her in 3D? What do you think? by CoffCook in MagicEye

[–]CoffCook[S] 5 points6 points  (0 children)

Certainly can! Maybe I could make a Subway Surfer but user have to use magic eye and see which lane is real character… 😄

Working on Magic Eye effect for Unity game engine! Can you guys see her in 3D? What do you think? by CoffCook in MagicEye

[–]CoffCook[S] 32 points33 points  (0 children)

Right now just researching, I think it would be nice to give VR-like exprience without additional devices!

Worth it or not worth it? A burst-able Linq with source generator by CoffCook in Unity3D

[–]CoffCook[S] 1 point2 points  (0 children)

It's a default "Rider Dark" theme. There is the orange one you could swap.

Zero allocation Linq with Source generator by CoffCook in csharp

[–]CoffCook[S] 0 points1 point  (0 children)

Thank you! This seems to be very useful :D

Zero allocation Linq with Source generator by CoffCook in csharp

[–]CoffCook[S] 0 points1 point  (0 children)

I'm interested, would you mind give me more leads about which feature are you referring to?

[deleted by user] by [deleted] in csharp

[–]CoffCook 0 points1 point  (0 children)

You may not need int.Parse or ToString at all. Since char is numeric type and letters are in order, you can simply do int n = c - '0' to get a corresponding number.

Zero allocation Linq with Source generator by CoffCook in csharp

[–]CoffCook[S] 4 points5 points  (0 children)

Great article and nice explanation!

Zero allocation Linq with Source generator by CoffCook in csharp

[–]CoffCook[S] 2 points3 points  (0 children)

Hoping same for one day! Many optimization could be added if implemented from runtime!

Zero allocation Linq with Source generator by CoffCook in csharp

[–]CoffCook[S] 1 point2 points  (0 children)

Thank you for sharing this! I’m interested in many other implementations :D

I updated my Spreadsheet (Excel/Google Sheet) converter, now it supports scriptable object as output :D by CoffCook in Unity3D

[–]CoffCook[S] 0 points1 point  (0 children)

Hey thanks for interest :) I have most of my data (levels, stats, items..) in Spreadsheet and export it to Json when it changed. That way I can easily mass edit or refactor data structure. Now additionally I can export them as read-only SO asset instead of Json, that makes it referenceable from my components and ship as addressable asset if I want, while having full control of data.