Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unity用。このファイルはEditorに入れて使う。通常選ぶC#や素晴らしいBooではなく、糞なUnityScriptをうっかり選択して生成しないためのガード的なEditorスクリプト。
using UnityEngine;
using UnityEditor;
using System.Collections;
public class UnityScriptKillerEditor
{
[MenuItem("Assets/Create/Javascript")]
static void KillUnityScript ()
{
Debug.LogError ("UnityScript is fuck!");
}
}
@yjdzh
Copy link

yjdzh commented Jun 25, 2014

发挥好

@shinriyo
Copy link
Author

shinriyo commented Sep 5, 2014

yjdzh
谢谢你进行评论

@shinriyo
Copy link
Author

shinriyo commented Oct 20, 2014

I found better practice.

rm /Applications/Unity/Unity.app/Contents/Resources/ScriptTemplates/80-Javascript-NewBehaviourScript.js.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment