LoginSignup
38
36

More than 5 years have passed since last update.

【前回大盛り上がりで続編!Unity勉強会】Unityで作るアルゴリズムゲーム大会!第ニ回天下一技道会!
http://atnd.org/events/33267

天下一に出場する為にC#を始めた時のメモです。
C#を使うとDLL化できてソースが隠せる… 勝つために戦略上必要でした♪

【その.1】
テラシュールウェア
[Unity3D]UnityのスクリプトをDLL化する
http://terasur.blog.fc2.com/blog-entry-312.html

GUIでわかりやすいが、手間がかかる…

【その.2】
Using Mono DLLs in a Unity Project
http://docs.unity3d.com/Documentation/Manual/UsingDLL.html

ターミナルから一発で変換できる。

手順

ターミナルで、変換したいcsファイルのあるフォルダーに移動して、以下のコマンドを実行。

mcs -r:/Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll -target:library hoge.cs

サンプル

移動

DLL化

成功

38
36
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
38
36