Description
We provide custom nodes for UNode asset. The following nodes are available - read/write field values, create/delete rows, save/load game using save/load addon (see below for detailed list). All database fields are supported (unity assets fields are readonly).
Setup
Download and install the following plugin
Full list of custom actions
| # | Action | Description |
|---|---|---|
| 1 | Count | Retrieve the number of rows for specified table |
| 2 | Add a row | Add a new row to specified table |
| 3 | Delete a row | Delete specified row |
| 4 | Get row index | Calculate rows index by ID or name |
| 5 | Get {XXX} | Retrieve the cell value of type XXX from database. The following types are directly supported (bool, int, float, string, Color, Quaternion, Vector2/3/4, Rect, GameObject, UnityEngine.Object, Material, Sprite). For all other fields, use "Get object" node. It returns value with "System.Object" type, which can be cast to required type. |
| 6 | Set {XXX} | Write the cell value of type XXX to database. The following types are directly supported (bool, int, float, string, Color, Quaternion, Vector2/3/4, Rect). For all other fields, use "Set object" node. |
| 7 | Get related index | "Get value" override for relationSingle field, which uses related entity index of type int as result |
| 8 | Get related indexes | "Get value" override for relationMultiple and nested fields, which uses related entities indexes (List<int>)) as a result |
| 9 | Set related index | "Set value" override for relationSingle field, which uses related entity index of type int to set the value |
| 10 | Set related indexes | "Set value" override for relationMultiple fields, which uses related entities indexes (List<int>)) to set the value |
| 11 | Save game | Save the game to a file or byte array. Application.persistentFilePath folder and "sav" file extension is used |
| 12 | Load game | Load the game from a file or byte array |
| 13 | List saved files | List all saved files to string[] variable. |
| 14 | Delete saved file | Delete specified save file. |
