Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gregacuna on July 13, 2021, 12:41:34 AM

Title: Data from Google Sheets for Text Array
Post by: gregacuna on July 13, 2021, 12:41:34 AM
Hey All...

I'm creating a game which needs to have a lot of long text strings which I'm randomly generating onto cards. Years ago I used a Localization asset to do this (with some hacks) and had to generate the text like I was filling in text of different languages. It worked, but was clunky.

Now I'm wondering if there is something which would allow me to do this putting the data directly into arrays...and which has Playmaker actions.

Would like to have better tools for adding, delete and editing the data than I would have doing it directly in Unity.

Thanks!
Title: Re: Data from Google Sheets for Text Array
Post by: gregacuna on July 13, 2021, 11:46:07 AM
UPDATE: Did a test with I2 Localization which worked pretty well. Able to create the Google Sheet from inside the Unity Editor following their excellent instructions. Then used Playmaker to create a random key for the test data I had in the spreadsheet and was able to assign it to the text mesh pro text object. Did a quick test of a WebGL build and it worked. Now going to try it inside the actual game to make sure it not only works, but that it doesn't weigh it down.

Still, if anyone has a lighter, more elegant way of doing this do please add to the thread.