noio, to random
@noio@mastodon.gamedev.place avatar

Created a little setup for adding (level design) Notes in Play Mode, then saving those back to the editor!

(They even propagate back through the procedural generation to the "source" tiles)

video/mp4

maartenballiauw, to random
@maartenballiauw@mastodon.online avatar

With the help of #JBAIAssistant and #JetBrainsRider, I built my first game called "JumpyCube", where Cubano Reeves jumps when pressing the space key.

Cubano Reeves, you say? Well look at that bullet time effect! #unitytips

video/mp4

bamboy, to unity
@bamboy@mastodon.gamedev.place avatar


The engine is not deterministic! What does this mean?

Applying a specific set force to an object will move that object a slightly different way and/or amount each time you do it.

This makes physics bad for things like character controllers, where you want your character to reach a specific height every jump.

Knowing when and when not to use physics as a shortcut will lead to less headache for you, and to better game feel.

maxim, to gamedev
@maxim@mastodon.gamedev.place avatar

Example of ejection mechanism so that the character does not get stuck in the ceiling

https://store.steampowered.com/app/1224030?utm_source=mastodon

video/mp4

maxim, to unity
@maxim@mastodon.gamedev.place avatar

OnApplicationFocus catch the real Player size on Unity Editor, be careful with this

Start: 1920
OnApplicationFocus -: 1920
OnApplicationFocus +: 1318
LateUpdate: 1920

spielmannspiel, to steam
@spielmannspiel@mastodon.online avatar

A friend just wrote:
"The Unity Runtime Fee will be charged to the entity that distributes the runtime."
That's not us, that's steam!

spielmannspiel, to unity
@spielmannspiel@mastodon.online avatar

The ultimate conspiracy theory what's going on with Unity:

The executives who sold their shares before announcing the changes will get a huge bonus next year, cause they increased the revenue by 1000%+, because all the games out there can't just switch the engine and have to pay.
These people will leave shortly after they got their bonus.

spielmannspiel, to unity
@spielmannspiel@mastodon.online avatar

Unity right now.
We are not affected by the pricing model changes (so far), but Unity has set it self up as an unreliable "partner" you do not want to work with.

Who holds them back from doing in 2 years a retroactive "per game start" fee?

Darth Vader "altering the deal"

spielmannspiel, to unity
@spielmannspiel@mastodon.online avatar

So Unity decided to "alter the deal" on their game engine.
Aggro Crab Games made a great post about it on Twitter.
Maybe they are doing a "Twitch" here, "going way too far, tuning down, looking as if they did something "good" and getting what they actually wanted without any backlash".
We will see.

Also the execs sold their shares on the company shortly before announcing this: https://mastodon.social/@gamingonlinux/111054023440776533

https://twitter.com/AggroCrabGames/status/1701691036832309260

maxim, to unity
@maxim@mastodon.gamedev.place avatar

Evil button 👹

Accidentally clicked on this button and for a long time could not understand why UNITY is buggy, does not want to display focus on an object in the Hierarchy when selecting it on the Scene

maxim, to unity
@maxim@mastodon.gamedev.place avatar

I hate artifacts that appear when the code has been written for a long time.

While pausing the gameplay, I stop the listener
AudioListener.pause = true;

From pause I increase the AudioMixer volume smoothly from -80 to last value

When pausing I hear a nasty stop sound if no music is playing. I will have to make a smooth stop of all this 🔊 💩

How did you solve this problem?

video/mp4

maxim, to mastodon
@maxim@mastodon.gamedev.place avatar

Specially for community, some stuff from Erra: Exordium - a demonstration of the effects manager and the monitoring console

Early access https://store.steampowered.com/app/1224030?utm_source=mastodon

Discord http://discord.gg/B5q9dec

video/mp4

maxim,
@maxim@mastodon.gamedev.place avatar

Why do I need my own console for monitoring various objects, you ask me 🧐 🤪

Because in game there is one MonoBehaviour object with Update method, all others are packaged in my architecture, which I talked about here a long time ago

video/mp4

shadow_grove, to gamedev

Use the PlayOneShot method of the Audio Source component to play a sound without interrupting any other sounds that are already playing on the same Audio Source. This is useful for playing overlapping or repeating sounds such as machine gun fire or footsteps.

maartenballiauw, to unity
@maartenballiauw@mastodon.online avatar

Rider 2023.2 gets a huge improvement in productivity working with files. Typing assistance, completion, live templates and more!

Read on for more details: https://jb.gg/y6xbey

maxim, to gamedev
@maxim@mastodon.gamedev.place avatar

Unity 💩 Time.timeScale and Quaternion.Euler

I made a mechanism to damage the hero and some enemies due to time freezing a long time ago... during damage, the gameplay freezes for a split second: Time.timeScale = 0f;

noticed an interesting error

Assertion failed on expression: 'CompareApproximately(SqrMagnitude(result), 1.0F)'

when another object rotates through this

transform.localRotation = Quaternion.Euler

it happens when timeScale = 0

video/mp4

maxim, to gamedev
@maxim@mastodon.gamedev.place avatar

One interface becomes a bridge to create many different situations... this way I pass a command from one scene object to another in Erra: Exordium

https://store.steampowered.com/app/1224030?utm_source=mastodon

#gamedev #coding #madewithunity #programming

maxim,
@maxim@mastodon.gamedev.place avatar
maxim, to gamedev
@maxim@mastodon.gamedev.place avatar

AudioMixer in Unity 📌

Unity why can't the volume control feature be made for humans?

For example, I want to lower the volume by 0, this should be set to a value -80f on AudioMixer. Ok.

But when I want to do it smoothly, for example, smoothly reduce the volume of the music, then in the second half of the value scale, no sound is heard. So instead of 2 seconds, I have to do 7 seconds of fading

video/mp4

Ffyhlkain, to gamedev

After I changed my scene creator tool to work with json files instead of ScriptableObjects, I thought it might be an interesting 🧵 to talk about some pros and cons.

shadow_grove, to gamedev

Use the PlayClipAtPoint static method of the AudioSource class to play a sound at a specific position in 3D space without needing an Audio Source component. This is useful for playing one-off sounds such as explosions or impact sounds.

maxim, (edited ) to mastodon
@maxim@mastodon.gamedev.place avatar

Hello Unity Developers from 🐸

What Unity version are you currently using?

⭐ please write why exactly this version

MartinTilo, to CSharp German
@MartinTilo@mastodon.gamedev.place avatar

Dear all , and especially devs:
I keep seeing people say that building strings manipulation has to allocate managed heap because C# strings are immutable. But really, that's just a social construct.

If you're not working with interned strings and you know you're the only thread working with that string, nothing stops you from changing the chars from within an unsafe fixed context.

Heck, you can make it x chars shorter:
unsafe fixed (char* c = s)
(((int)c) -1) = s.Length -x;

MartinTilo,
@MartinTilo@mastodon.gamedev.place avatar

You obviously can't make it bigger than the original allocation, and you might want to flush the remaining chars with '\0' in case you hand this over to something that ignores the string.Length property.

And well, maybe don't do that to literals either...

But other than that, totally fine to do. Especially for value to string conversion, this is my go to solution, as StringBuilder will still allocate needlessly for that.

No more FPS counters that unduly lower the FPS!

maxim, to gamedev
@maxim@mastodon.gamedev.place avatar

Where the RaycastNonAlloc will not be able to process, if Ray is born inside the collider, then I use an additional check OverlapCircleNonAlloc

video/mp4

maxim, to gamedev
@maxim@mastodon.gamedev.place avatar
maxim, to gamedev
@maxim@mastodon.gamedev.place avatar

Interframe sprites with color lerp example. The idea is good, but I don't like it

https://store.steampowered.com/app/1224030/

> ERRA: EXORDIUM 🚘 Under the hood <

video/mp4

maxim, to mastodon
@maxim@mastodon.gamedev.place avatar

Unity Tooools ⛏️ 🔨 🔧 🛠️ 🔩

Hey game developers from

Let's make a list of tools and templates Unity assets!

⭐ Please write what assets you use when working on a game in Unity. What exactly do you like about them?

video/mp4

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • tacticalgear
  • magazineikmin
  • cubers
  • everett
  • rosin
  • Youngstown
  • ngwrru68w68
  • slotface
  • osvaldo12
  • Durango
  • kavyap
  • InstantRegret
  • DreamBathrooms
  • JUstTest
  • khanakhh
  • GTA5RPClips
  • normalnudes
  • thenastyranch
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • tester
  • provamag3
  • cisconetworking
  • anitta
  • lostlight
  • All magazines