Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: PlaymakerNOOB on August 21, 2019, 09:53:24 AM

Title: Find local files (SOLVED)
Post by: PlaymakerNOOB on August 21, 2019, 09:53:24 AM
So in my game, I have levels that are .JSON files.  I have the game count the files in the Unity Editor directory (Assets/Resources/Levels/) to determine the maximum amount of levels it can show on the overworld map. However on Mobile, I am unable to successfully locate the directory to count the files, as apparently its changed.

As this is a single player game, I suppose I could host the level files online and have them download them before the title screen, but I am hoping to find a better answer.
Title: Re: Find local files
Post by: PlaymakerNOOB on August 23, 2019, 07:27:36 AM
Looks like there are several solutions.

Resources / Asset Bundles = https://learn.unity.com/tutorial/assets-resources-and-assetbundles#5c7f8528edbc2a002053b5a8

Newer versions of Unity supports Addressable Assets = https://docs.unity3d.com/Packages/com.unity.addressables@0.3/manual/AddressableAssetsGettingStarted.html