This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class NewBehaviourScript : MonoBehaviour | |
{ | |
void OnGUI() | |
{ | |
Rect rect = new Rect (0, 0, 200, 20); | |
if (GUI.Button (rect, "LoadAsync Single A") == true) | |
SceneManager.LoadSceneAsync ("A", LoadSceneMode.Single); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
private Animator animator; | |
private SimpleStateMachineBehaviour stateMachine; | |
void Awake () | |
{ | |
animator = GetComponent<Animator> (); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using System.Text.RegularExpressions; | |
using System.IO; | |
public class ReimportUnityEngineUI | |
{ | |
[MenuItem( "Assets/Reimport UI Assemblies", false, 100 )] | |
public static void ReimportUI() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections.Generic; | |
public class ExampleMonoBehaviour : MonoBehaviour | |
{ | |
private readonly Dictionary<string, string> dictionary = new Dictionary<string, string> (); | |
private int value; | |
#if UNITY_EDITOR | |
public abstract class AbstractEditor : UnityEditor.Editor { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
// 回転の中心になるオブジェクト | |
public Transform target; | |
// 回転速度 | |
public float speed = 10.0f; | |
void Update () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class Example : MonoBehaviour | |
{ | |
void Start () | |
{ | |
List<int> list = new List<int> { | |
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example | |
{ | |
[RuntimeInitializeOnLoadMethod] | |
private static void EntryPoint () | |
{ | |
Debug.Log ("EntryPoint"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
public Transform from = null; | |
public Transform to = null; | |
public float rotationSpeed = 10.0f; | |
private void Update () | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
public Transform from = null; | |
public Transform to = null; | |
private void Update () | |
{ | |
// fromをtoへ向ける |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
[SerializeField, FilterFileExtension ("unity")] | |
private Object[] sceneFileList = new Object[] {}; | |
} |
NewerOlder