A PlayerPrefs/mysql texture management for the Unity3d WebPlayer
In this experiment I have created a simple two level edition system for online edits of the WebPlayer content. The specially tagged geometry elements have a script attached, which displays a name label on hovering upon them. Clicking on them invokes the texture menu, which depends on number and kind of materials. There are two edition levels simply depending on the authorisation level of the current user. The basic level is simply just unlogged user, while admin level is equivalent with the logged one. Both allow for the edits of the content, but in case of of unlogged user these are saved to the PlayerPrefs, while in the admin case are saved to mysql database and retrieved after the loading the scene. The PlayerPrefs is the way for local storage of littleweight data on the local user computer, while mysql can serve for a global one. If any mysql data given, the WebPlayer loads them first, and then loads the PlayerPrefs data, if any. If you want to share the edits - you have of course to use the second option. At the moment the solution supports the texture management and is basically aimed at visualisation of scenes, that share the same geometry, but differ with texture sets. The base example is here:
1 Comment
Leave a Reply
You must be logged in to post a comment.
I am thinking of using this idea of yours and develop a website.
We are a small event management company. So it would be very great full if you share your Idea with us. or help us develop the idea.. and If you want what would be the charges.