Was playing around with Mendix, a low-code service, and trying to display a list of items by its owner. Figured a way that works for me.
1. Create an association between your item model and the System.User.
2. Create a new microflow that sets the association when you save a new item.
3. Setup the items list/grid data with User (DataView) as the outer data widget. Add a ListView within the data view, and set the data source to Item_User data by association.
4. Use a microflow to load the page that displays your item list, and pass the currentUser object.
We all know about the benefits of using Singletons in our games - you just call YourClass.Instance, and wala! A new GameObject gets created with the class attached immediately at run-time if its not already there. Magic! The common Singleton class for Unity3d can be found at the Unity3d wiki page.
While the Singleton design pattern for scripting has been a revelation, what about the same concept applied prefabs with exposed values or predefined configurations? They will be in the likes of Game Manager, Player Controller, SFX/BGM manager, Message Boxes, and many more.
For my own projects, I have implemented a modified version of the Singleton class from the Unity wiki page, and it's been super convenient for me since. So I'm gonna share the code with you and I hope it helps you too! Do leave some feedback if you found it helpful, or thought of a better implementation, or if you've faced other challenges using this method.
I'm pasting the code below and also uploaded it to Github, so feel free to check it out!
Setting up a network of waypoints using the A* algorithm has never been easier! One click is all you need create, link and delete waypoints. Once they are linked up, you’re pretty much ready to go!
new in v1.1
To help you better understand how to use the tool, I've created a series of videos to guide you through the process. Hope you find it useful!
Setting up a network of waypoints using the A* algorithm has never been easier! Three buttons are all you need setup new, link existing, and insert in-between waypoints. Once they are linked up, you’re pretty much ready to go!