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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Build.Content; | |
using UnityEditor.Build.Pipeline; | |
using UnityEditor.Build.Pipeline.Interfaces; | |
using System.IO; | |
using UnityEditor.Build.Utilities; | |
using UnityEditor.Build.Pipeline.Utilities; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Playables; | |
public class SimpleAnimation : MonoBehaviour { | |
private PlayableGraph graph; | |
[SerializeField] Animator animator = null; |
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
/** | |
* These codes are licensed under CC0. | |
* http://creativecommons.org/publicdomain/zero/1.0/deed.ja | |
*/ | |
Shader "FX/Ghost" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_NormalTex ("Normal (RGB)", 2D) = "white" {} | |
_EmissionTex ("Emission (RGB)", 2D) = "white" {} |
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 System.Collections; | |
using UnityEditor; | |
using UnityEngine; | |
using System.IO; | |
[InitializeOnLoad] | |
public class AutoSave | |
{ | |
public static readonly string manualSaveKey = "autosave@manualSave"; |
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; | |
using System.Collections.Generic; | |
using UnityEngine.Assertions; | |
using System; | |
public class SkinnedMeshUpdater : MonoBehaviour | |
{ | |
[SerializeField] | |
SkinnedMeshRenderer original; |
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; | |
using System.Collections.Generic; | |
[ExecuteInEditMode] | |
public class MultiHitRay : MonoBehaviour | |
{ | |
[Range(0.1f, 30f)] | |
public float Length = 20; | |
public LayerMask Mask; |
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 UnityEditor; | |
using System.IO; | |
public class Copy | |
{ | |
[MenuItem("Assets/Copy")] | |
static void AssetCopy () | |
{ | |
// AnimationClipを持つFBXのパス |
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.Playables; | |
using UnityEngine.Experimental.Animations; | |
using Unity.Collections; | |
public class Sample : MonoBehaviour | |
{ | |
private NativeArray<TransformStreamHandle> joints; | |
private NativeArray<TransformSceneHandle> effectors; | |
private PlayableGraph graph; |
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 System.Collections; | |
using UnityEngine; | |
using Unity.Entities; | |
using Unity.Jobs; | |
using Unity.Collections; | |
public class Loader : MonoBehaviour | |
{ | |
World myWorld; | |
EntityManager myEntityManager; |
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; | |
public class LogTest : MonoBehaviour | |
{ | |
// ゲーム開始前に呼び出す | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
static void Init () { | |
Debug.logger.logEnabled = false; // ←ログを止める | |
} |
NewerOlder