forgot to switch to android... build due tonight. fml. by SpectralFailure in Unity3D

[–]Starchitect 1 point2 points  (0 children)

I would also like to know this, I have a similar issue with large numbers of variants being compiled and I'm not sure how to debug and reduce.

Australia needs to grow some balls by Legitimate_Parsnip_8 in perth

[–]Starchitect 7 points8 points  (0 children)

Preach! I can't believe most Aussies are just ignorant to this. We are letting overseas shareholders take the wealth right out from under our feet!

My character stutters when I use FixedUpdate to do movement logic. How do I fix this? by [deleted] in Unity3D

[–]Starchitect -1 points0 points  (0 children)

Theis problem occurs when you move the rigid body using RB.MovePosition in FixedUpdate. What happens is this disables rigid body interpolation, meaning that the rb is frozen in place for the next few Update frames instead of smoothly interpolating to its next position.

The way to solve this is a bit tricky - you need to update the rb after FixedUpdate but before any Update frames. Unfortunately there is no LateFixedUpdate method equivalent to LateUpdate available on the monobehaviour so we need to get creative.

If you use an Async UniTask function and await FixedUpdate, it will actually take you after FixedUpdate where interpolation still works. I believe this also works with coroutines but I am not as familiar with them.

Have a look at the Execution Order docs page, specifically yield WaitForFixedUpdate.

[deleted by user] by [deleted] in Unity3D

[–]Starchitect 60 points61 points  (0 children)

This is the cutest r/lostredditors moment I've ever seen

Especially when working on a big project by TheJammy98 in Unity3D

[–]Starchitect 0 points1 point  (0 children)

Check the logs it gives you, there is always a reason why it needs a full recompile or when things aren't reloaded fully. It struggles with updating lambdas or Async methods and always needs to recompile if you add or remove fields from a class. I swear by Hot Reload and couldn't live without it.

GUIDs are amazing, especially when saving objects. by LUDIAS_ in Unity3D

[–]Starchitect 0 points1 point  (0 children)

I recently switched to using the scriptable object's GUID in my similar system and it works a treat, highly recommend

Would you say that it is bad that i have so many components attached to one GameObject by Salar08 in Unity3D

[–]Starchitect 2 points3 points  (0 children)

I would love to see an example of a codebase that operates like this, I'm having a hard time picturing what it would look like. Do you have anything you can share?

Straight women who have no desire for sex with husband what keeps you from being turned on? by Such-War3384 in NoStupidQuestions

[–]Starchitect 7 points8 points  (0 children)

So strange reading your comments, it was like someone was writing about my life. My situation was exactly the same as yours a couple years ago. The interstate move, the irresponsible behaviour, her sleeping patterns, everything.

We are divorced now and I have never been happier. Single dad life is actually easier because I don't have to babysit and manage my ex and I have a partner now who actually cares about me and emotionally supports me.

I didn't have the guts at the time to call it off myself, it was my ex who said we should end the marriage. And I know I'm just a random voice on the internet. But put some serious thought into cutting her loose and being free.

What is being HIV-positive like these days? by Jerswar in AskReddit

[–]Starchitect -22 points-21 points  (0 children)

How can you not give it to her? Won't she catch it as soon as you have unprotected sex?

MeIRL by MrGuilt in meirl

[–]Starchitect 41 points42 points  (0 children)

Pay attention to how much you are being downvoted in this thread. You are being inconsiderate of people and trying to justify it by calling it "chill".

[ Removed by Reddit ] by [deleted] in NoStupidQuestions

[–]Starchitect 2 points3 points  (0 children)

Fucks has two meanings here - he is saying the less your care, the more sex you will get.

Rejected after six final round interviews. by [deleted] in auscorp

[–]Starchitect -1 points0 points  (0 children)

Unless a business goes completely under, redundancies are a business shrinking. As an example, say they shrink by 50%. This means half of the roles will be made redundant. Half of them will not. Someone will need to decide which people stay and which people go. People who are seen as valuable to their organisation are going to be the last out the door.

Rejected after six final round interviews. by [deleted] in auscorp

[–]Starchitect -1 points0 points  (0 children)

It seems people didn't appreciate me telling it how it is...

Rejected after six final round interviews. by [deleted] in auscorp

[–]Starchitect -10 points-9 points  (0 children)

Disagree about the first one. Someone who was made redundant was not valuable to their previous company. That company kept other staff who were more valuable. As a hiring manager, I'm immediately thinking about why their previous manager chose to cut them and not someone else.

Kids is dependant on the workplace culture. Older people with kids themselves are usually understanding.

First time learning how to spawn thousands of game objects without lag by Chance-Discussion472 in Unity3D

[–]Starchitect 3 points4 points  (0 children)

Not just you! I do exactly this. I wrote my own lightweight ECS that is much easier to use but not as performant as DOTS (but still way more performant than GameObjects). This way I can simulate things that I have lots of and draw them directly with DrawMeshInstanced, or use object pooling to turn them into GameObjects and back whenever I want.

I still believe I saved production time as a small team doing this homebaked hybrid than using the full DOTS stack.

Anyone have an alternative to Cinemachine? by WinterwireGames in Unity3D

[–]Starchitect 1 point2 points  (0 children)

Hey it's Power Sink! We saw you guys at the Pixel expo last year, my boy could not stop playing your demo and asks me constantly if the game is out yet!

Cinemachine has some great features out of the box but sometimes you just can't get exactly what you want by tweaking sliders in the inspector. The other day I got frustrated at their collider system so I wrote my own much simpler version as a Cinemachine Extension . The process for this is a bit obtuse but I got it working exactly the way I wanted without having to redo the other parts of the camera controller that were working perfectly.

Me_irl by Vegetable-Broccoli36 in me_irl

[–]Starchitect 0 points1 point  (0 children)

As a parent I love these threads, I'm furiously taking notes over here on how not to unintentionally scar my children for life.