#AssetStore #unity #unity3d #new #asset #gamedev #indiedev #GameContentShopper

Publisher

Simon István

Please Note

This entry is from Wednesday October 4, 2023. The price of the asset may have changed since then.
Please visit our homepage for recent offers and sales. Official and private Unity Asset Store™ sales usually last about 14 days.

Overview

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);
}
}
X