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; | |
public class CubeMeshMakerWizard : ScriptableWizard | |
{ | |
public string filename = "mesh"; | |
public int xnum = 10; | |
public int ynum = 10; | |
public int znum = 10; |
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
public class Texture2DArrayCreator { | |
[SerializeField] | |
Texture2D[] textures; | |
public Texture2DArray texArray = null; | |
void CreateTexture2DArray() | |
{ | |
int width = textures[0].width; | |
int height = textures[0].height; |
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.Generic; | |
using UnityEngine; | |
[DefaultExecutionOrder(-10000)] | |
public class CommandLineArgsManager : SingletonMonoBehaviour<CommandLineArgsManager> { | |
List<string> args = new List<string>(); | |
private void Initialize() | |
{ |
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 SimpleParticlePlayer : MonoBehaviour { | |
/// <summary> | |
/// パーティクルシステムへの参照 | |
/// </summary> | |
[SerializeField] | |
ParticleSystem particleSystem; |
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 AutoRotate : MonoBehaviour { | |
public Vector3 axis = Vector3.up; | |
public float rotSpeed = 100; | |
void Update () { | |
transform.rotation *= Quaternion.AngleAxis(rotSpeed * Time.deltaTime, axis); | |
} | |
} |
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 ScreenAdjustTransform : MonoBehaviour { | |
public Camera targetCamera = null; | |
void AdjustScreen() | |
{ | |
float height = targetCamera.orthographicSize * 2; | |
float width = height * targetCamera.aspect; |
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
#!/bin/bash | |
function convUTF16() { | |
n=`echo $((0x$1-0x10000))` | |
nn=$n | |
if [ $n -lt 0 ]; then | |
nn=`echo $((0x$1))` | |
fi | |
echo $nn | |
} |
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
REM "フォルダ名=appname" | |
for %%* in (.) do set appname=%%~nx* | |
if not exist LogBackup/ mkdir LogBackup | |
REM 10日以上前のログファイル削除 | |
forfiles /P LogBackup /D -10 /M "output_log_*.txt" /c "cmd /c del @file" | |
:begin |
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.Runtime.InteropServices; | |
using System; | |
using System.Threading; | |
public class AlwaysTopWindow : MonoBehaviour { | |
/// <summary> | |
/// 常に前面に出るか? |
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
Shader "Unlit/Flip Rotation" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
[KeywordEnum(ANGLE0, ANGLE90, ANGLE180, ANGLE270)] _ROTATEFLAG("Rotation", Float) = 0 | |
[Toggle] _FLIP_X("Flip X", Float) = 0 | |
[Toggle] _FLIP_Y("Flip Y", Float) = 0 |
NewerOlder