GUIStyle mystyle = new GUIStyle("some string from the list below");
- "CN Box"
- "Button"
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.Tilemaps; | |
| namespace Assets.Scripts.Editor | |
| { |
| // Based on the Unity Wiki FloatingOrigin script by Peter Stirling | |
| // URL: http://wiki.unity3d.com/index.php/Floating_Origin | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| public class FloatingOrigin : MonoBehaviour | |
| { | |
| [Tooltip("Point of reference from which to check the distance to origin.")] | |
| public Transform ReferenceObject = null; |
| ## Unity ## | |
| *.cs diff=csharp text | |
| *.cginc text | |
| *.shader text | |
| *.mat merge=unityyamlmerge eol=lf | |
| *.anim merge=unityyamlmerge eol=lf | |
| *.unity merge=unityyamlmerge eol=lf | |
| *.prefab merge=unityyamlmerge eol=lf |
| // Copyright (c) 2012 Calvin Rien | |
| // http://the.darktable.com | |
| // | |
| // This software is provided 'as-is', without any express or implied warranty. In | |
| // no event will the authors be held liable for any damages arising from the use | |
| // of this software. | |
| // | |
| // Permission is granted to anyone to use this software for any purpose, | |
| // including commercial applications, and to alter it and redistribute it freely, | |
| // subject to the following restrictions: |