Solar System Handler

$9
Publisher Simon István
File size 738.79MB
Number of files 498
Latest version 1
Latest release date 2018-01-26 06:04:24
First release date 2018-01-26 06:04:24
Supported Unity versions 2018.4.2 or higher
Describe your solar system in a text file and create by script.

Documentation included! Support: e-mail
WEBGL preview
Author profile

This pack contains our solar system objects;
sun,
13 planets,
185 moons,
ring,
asteroid fields (generated randomly by script).
17 materials,
3 (low, mid, hi poly)*18 + 1 meshes,
388 textures.


Scripts;
-InputHandler: compact component for desktop/webgl/mobil platform.
Moving, scrolling, zooming, clicking, doubleclicking easy to use by event. Don't need to know which platform is active.

-ObjectHandler:
Dinamically create mesh/texture/prefab/material (with resolutions), sharedmesh handler.

-SolarSystemHandler:
Main class for the solar system, import system from textfile or save system to textfile.



InputHandler example:
public class Example : MonoBehaviour {
private InputHandler inp;

void Start () {
inp = GetComponent();
InitActions();
}
private void InitActions()
{
inp.ClickSafeAction.Add(ClickSafe);
inp.DoubleClickDownAction.Add(ClickSafe);
inp.ChangeTargetAction.Add(TargetChanged);
inp.ZoomAction.Add(Zoom);
}
private void ClickSafe (GameObject g)
{
Debug.Log(„Click”);
}
private void TargetChanged (GameObject g)
{
if (g != null) Debug.Log(„Target name=”+g.name);
}
private void Zoom(GameObject g)
{
Debug.Log(„Zoom value=”+inp.Zoom);
}
}

Top Publisher Assets