DCDC24-EmissionVision/Assets/WorldPoliticalMapGlobeEdition/Editor/Tools/MenuExtensions.cs
Negin Soltani 37239732ac Initial Push
- Globe Asset
- Spatial Anchors
- Photon Implementation
- Scripts for Globe Control and Initial Country Colorizing
- Script for Reading csv file
2024-05-16 14:41:23 +02:00

23 lines
625 B
C#

using UnityEngine;
using UnityEditor;
using System.Collections;
namespace WPM
{
static class MenuExtensions
{
[MenuItem ("GameObject/3D Object/World Map Globe Edition", false)]
static void CreateGlobeMenuOption (MenuCommand menuCommand)
{
// Create a custom game object
GameObject go = Object.Instantiate(Resources.Load<GameObject>("Prefabs/WorldMapGlobe"));
go.name = "WorldMapGlobe";
Undo.RegisterCreatedObjectUndo (go, "Create " + go.name);
go.transform.localRotation = Quaternion.Euler (0, 0, 0);
go.transform.localScale = new Vector3 (1f, 1f, 1f);
Selection.activeObject = go;
}
}
}