SwillyDo

u/SwillyDo


r/Unity3D•

Outside of the editor the functionality is for all changes made to scriptable objects to be lost between loads, so it is bizarre that changes during runtime in the editor make permanent changes, and it makes development and testing very annoying. There are a few workarounds, like using proxy values that get reset, but when you have 20+ variables that could be changed it is very tedious to manually create and reset proxies for all of them.

You often have to jump through hoops to make editor changes to data permanent, it seems bizarre that the editor-runtime would explicitly have different functionality to normal runtime.

Honestly I would just love if there was a box to tick or an attribute

514

r/Unity3D•

I just discovered this 'feature' on something minor (thankfully), and it seems like such a weird design decision I am having trouble believing I understand it correctly.

  1. I make ObjectA in the hierarchy.
  2. I make PrefabA based on ObjectA.
  3. If I delete PrefabA ObjectA still exists in the hierarchy, and I can make a new prefab from it.

That's how it works with one scene. The following is also true:

  1. I make ObjectA in the hierarchy.
  2. I make PrefabA based on ObjectA.
  3. I load a different scene and delete PrefabA.
  4. I return to the first scene and ObjectA is now an empty gameobject complaining about a missing prefab. The data unique to ObjectA is now gone forever.

Where is the logi

17

r/Unity3D•

Title should say "instantiated".

I have a ScriptableObject A that instantiates a Class B, which does some stuff and then is needed no more. I can't destroy a class instance directly; I have tried removing all references to the class but I don't know how to tell if it's been collected. It's not a Monobehaviour so there is no OnDisable() in which I can put a debug.log.

Any reference to check if it is still alive will presumably prevent garbage collection, so it feels like Heisenberg's Uncertainty Principle.

Do I just wait and see if performance is hit by a memory leak...?

18

r/rpg_gamers•

I mostly enjoyed the prologue, I don't care about it being difficult, I don't care about having to reload; I am disappointed that the one thing everyone sings its praises for doesn't seem well done to me: player decisions.

I am playing as a merchant with almost no combat skills, and avoid all combat, so it's nothing to do with that. My issue is that every plot and plot-resolution seems to be just handed to me, and I click the one solution available. Despite there supposedly being a great amount of player agency, I usually end up feeling like I am just being led from point to point and doing what I am told. Of course it's difficult to give the impression that the player has come up with idea

812

r/computers•

I have a 4k60hz, a 1080@60hz, and a 1080@144hz. The 144 is my first-person gaming monitor, the 4k is my normal day-to-day multimedia/other gaming monitor, and the other 1080p display is a productivity over-flow monitor.

I find swapping between them completely tedious. From the bad Windows UI that takes way too many clicks, to the fact that it gets confused about what refresh rate I want (frequently the 144hz monitor will get set down to 60hz, even when it's set as the only monitor in use), scaling is a total shitshow, etc.

I tried googling but can't find any good options. Are there are solutions that would let me swap between 'modes', in the sense of having a "First person shooter mode" th

00

r/Unity3D•

I am just starting to come up with some AI systems for my enemies, and my first issue is for them to know when the player is close enough for them to engage.

I also want a faction system of sorts, so AI entities can fight with each other depending on circumstances. My first thought was for every entity to check its distance against every other entity with Vector3.Distance and see if it's close enough. Which is an obvious solution but the processor load scales exponentially with more entities. Then again, I am probably only looking at a couple dozen entities in play at any one time so maybe it'd be no big deal to run a few hundred distance checks constantly (and it doesn't need to be every f

37

r/rpg_gamers•

I love isometric-style rpgs. Played and loved the classics (Baldur's Gate/PST), and I liked most of the new generation (which came with lots of quality-of-life improvements, but a reduction in actual gameplay and storytelling, I think).

Here is my list of things I would like to see done differently:

- Generic fantasy setting. It was already pretty tired when they did it in Baldur's Gate, the fact that we're still getting so much wizard/dragon/dungeon content is a little tiresome. I'd love more off-the-wall fantasy like PST, and scifi. Modern, Victorian, steampunk, Dark City weirdness - there are just so many other kinds of settings we could have and we see so little variety.

- Related

5796

r/Unity3D•

Has anyone seen this before? Visual Studio loses all Unity-specific intellisense for scripts in an editor folder, but works just fine for everything else. If I close the editor script in Visual Studio, move it out of the editor folder, and then reopen the script, intellisense is working perfectly again.

The editor folders are not showing up in the VS Unity explorer window. Googling shows up nothing for this bug (?) as far as I can see. Any ideas?

EDIT: I worked out a temporary fix. If you go to Project > Show All Files then the Solution Explorer will show all folders, including the Editor folders that it was mysteriously ignoring. Then you can right click on the missing folders and choo

11

r/Minecraft•

I haven't played in a few years, decided to dust the game off. I have died a handful of times now, usually in the nether, because the game world will freeze for a second or two, and then instantly update as if resynchronising with an online server. Enemies teleport during the resynch and any damage they were trying to do gets instantly applied all at once. It's really just made me want to quit, it's no fun having a singleplayer game freeze and then jump forward like an online server.

And whatever they have done with refactoring the game's code, I am seeing far more bugs now than I did when I played three or four years ago.

On PC Java edition if that matters.

62

r/gamedev•

If you commission someone to make music for your game, would it be standard in the contract that rights belong to the gamedev? Obviously there are soundtracks and special editions with soundtracks for sale on Steam - in those circumstances they must have the right to sell the music separately. Soundtracks also end up on Spotify; is it the artist or the dev who put it up and profits from it?

Is there no standard way of doing this, and it really just boils down to whatever the musician and the dev negotiate in their unique case? Is there a standard fee-reduction for if the musician gets to keep the rights vs the dev owning everything?

If a game becomes a big success then the soundtrack will

15

r/learncsharp•

I have a working prototype for my save/load system in Unity but it relies on a weird hack I came up with. But if it works with a hack then I am clearly not doing something C# fundamentally cannot do, so I would really like to know what the non-hacky way of doing this is.

So, the short version is that I have Base class and Derived class. And I have a function, lets call it SaveGame(), in a third class. And I want SaveGame() to be able to take Base or Derived as an argument. If I make the function SaveGame(Base myBase) it rejects any attempt to invoke SaveGame(myDerived) [I don't have the code in front of my right now, so maybe it takes the argument but it can't access any of the Derived

325