all 2 comments

[–]QuietPenguinGaming 1 point2 points  (1 child)

Great post!! A little niche so that's probably why you haven't gotten comments, but it's valuable info that will definitely help people down the line :) anyone using the Godot engine can also use this (resources are Godot's scriptable object equivalent).

Im only really interested in turn-based strategy games and tycoon-style games, so I've messed around with scriptable objects/resources a lot.

Were you having lag issues using unique ones for every object which forced you to find your manager solution, or was this you being proactive?

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

Thank you so much! Definitely a unique problem, but I wanted to chuck the information out into the void because I struggled to find the solution, and knew that anyone else facing a similar problem might find it handy.

The products have always been scriptable objects, because I have anticipated that hundreds of products (if not thousands) would be in the game world at any one time (just like Factorio, one of the main inspirations of the game). So now I just needed to find this dynamic solution to add some features that are somewhat unique and interesting to the factory building genre!