251
News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).
Unity 6.6: Anyone else having issues deleting stuff in their project view?
https://redd.it/1wqjnem
@r_Unity3D
My project Nova Slash will be released October 1st on Steam!
https://redd.it/1wlxu16
@r_Unity3D
(Rainy Demo) Raytraced Spatial Audio
https://redd.it/1wlwn44
@r_Unity3D
PSA about AutoStaticsCleanup
AutoStaticsCleanup is a newish attribute that's used to automagically reset/reinit static fields, properties, events, etc., so that you can skip domain and/or scene reloads. If you aren't aware of this feature yet, see the Unity docs.
Great idea to make a simpler workflow, but there are a few gotchas due the way it works behind the scenes: mainly, it doesn't always work and doesn't tell you that it isn't working for a particular field/prop/etc. unless you pore thru the editor log. I have no idea why they can't pipe the warnings and errors into the normal log, but so it goes.
**So if you just add the attribute, don't assume that it's actually doing anything!**
I ran into this when upgrading my TilePlus Toolkit asset for U6.6 and 6.7.
How to tell: if you add the attribute to a static class or a monobehaviour with static fields and **you do not get told to make the class partial** then it isn't working at all. However, it still might not be working for all fields etc in your class.
Edit: this warning or syntax highlighting is what I meant by 'told'. Drag0n122's comment below made me realize that. I will say that my venture into using this attribute was prompted by warnings about it from the Asset Store Tools' validator and to a lesser extent, the 'Auditor' tool. It's unfortunately something one can't ignore unless you want to keep domain/scene reload on and, I suppose, be compatible with the new Unity runtime coming soon.
If unsure, check the editor log (from the console's drop down menu). You'll see something similar to:
\`\`\`
warning CS8785: Generator 'AutoStaticsCleanupCodeGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'RoslynSymbolException' with message 'Field MyStaticClass.SomeField is readonly and has a non-trivial initialization expression'.
\`\`\`
There's no other way to see these messages since, as I mentioned, they're not in the console log.
I gave up on the use of this attr, since it's too easy to leave residual errors in your code due to the fact that it's difficult to tell whether or not an individual field/prop etc is actually generating code for resetting at all. It also won't work for many common situations that it can't reasonably handle. But failing without warning you in the console is dangerous IMO.
Instead, I use this approach, which is a little more work but ALWAYS works.
\`\`\`
#if UNITY_EDITOR
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
private static void Reinit()
{
//add reinitialization statements here.
}
#endif
\`\`\`
https://redd.it/1wlpmsr
@r_Unity3D
NEED HELP for an UI scrolling texture.
https://redd.it/1wls791
@r_Unity3D
Did I nail the old Source-era vibe in Unity?
https://redd.it/1wlo6oy
@r_Unity3D
I turbo charged UI toolkit adding declarative expressions to the UXML files
https://redd.it/1wlko6u
@r_Unity3D
Latest version of unity 6000.5.8f1 causing complete freeze/CTD?
I unfortunately have no additional helpful details here but noticing a lot of freezing and crashing to the desktop in the latest version of Unity that I currently have available on my PC. I should not have any issues though because I have a pretty ridiculous gaming rig and I'm creating a low poly game, I literally just started so there's like what 10 files inside my project but still, unity has been crashing just from going into the shader graph or being open at the same time that chrome is open. It makes no sense.
NVIDIA GeForce RTX 5070 Ti
AMD Ryzen 7 7700X
https://redd.it/1wlhohw
@r_Unity3D
Does any body knows how to keep the toon shader of a 3d model from blender on unity?
I tried many times but the toon shader (that is a emission colour) always disappear when I transfer that on unity. I've learned that it can't recognise this colour style because it is from blender. I know I can do the colours my self on unity but I take a lot of time and plus it doesn't always fit. So I wondered, is there a way to get the toon shader that keeps the colour of my 3d models?
https://redd.it/1wlcj8w
@r_Unity3D
How I turned boring gunshots into bouncing gum balls in my game 😂
https://redd.it/1wl9lpd
@r_Unity3D
[FREE SAMPLES] My Asset Packs Collection
https://redd.it/1wl451x
@r_Unity3D
We are looking for playtesters for the alpha version of our Narrative RPG!
https://redd.it/1wkyw7p
@r_Unity3D
I started using Unity yesterday
https://redd.it/1wkunz7
@r_Unity3D
1-bit OKLab quantization + dithering: There are two colors on this image!
https://redd.it/1wkq85p
@r_Unity3D
Why is unity hub trying to trick me into creating a cloud project? just keep it a toggle I can disable by default
https://redd.it/1wkk93x
@r_Unity3D
My marketing failed - is it just my strategy, or is my game not appealing?
https://www.reddit.com/gallery/1wm1ims
https://redd.it/1wm1jiw
@r_Unity3D
Do you think rebindable input like this worth the hassle?
https://redd.it/1wlymkf
@r_Unity3D
I'm creating a huge ambient particle pack... am I wasting my time?
https://redd.it/1wlrfvl
@r_Unity3D
swappable equipment sprites shifting out of place during animations is driving me crazy
i am setting up a basic 2d character customizer where the head, torso, armor, and boots are all separate sprite renderers running under a single animator controller.
The baseline idle look works fine, but the second the character transitions into a running or jump animation, the clothing sprites start shifting away from the body outline or floating out of place because the anchors don't line up perfectly.I am tired of going back into the sprite editor to manually guess the pivot pixel offsets for every single piece of gear idk if theres an easy way to prepare asset sheets so that separate clothing items automatically inherit the exact same spatial scaling and origin coordinates as the base character drawing?
https://redd.it/1wlt1nd
@r_Unity3D
wanted to share a quick update on what im working on and get your feedback.
https://redd.it/1wlnrlm
@r_Unity3D
I made this sci-fi scanner effect
https://redd.it/1wlmmnq
@r_Unity3D
One player took all tracks records in my Trackmania inspired game
https://redd.it/1wliohv
@r_Unity3D
I draw and animate my 2d characters from every angle so they feel 3d as you move around them
https://redd.it/1wlgaqw
@r_Unity3D
How do I do this effect?
https://redd.it/1wl84m8
@r_Unity3D
Working on new a Advanced Movement System
https://redd.it/1wkvv47
@r_Unity3D
Raytraced Spatial Audio on Unity URP
https://redd.it/1wkxsty
@r_Unity3D
This bouquet is just math
https://redd.it/1wkrlte
@r_Unity3D
Game dev can be exhausting sometimes. But being able to create worlds that you can later live in makes it all worth it. I’m really happy with how the next planet is coming along.
https://redd.it/1wkqva0
@r_Unity3D
I made a Unity plugin that adds soft-body flesh physics directly to animated characters
https://redd.it/1wkkmsx
@r_Unity3D