LoginSignup
1
2

More than 5 years have passed since last update.

unity2018でIron Pythonをやる

Last updated at Posted at 2018-08-18

Iron python とは C#でpythonをリアルタイムで、使える奴だ

全部、2009年ころ、iron python 2.6.1を使いunityでpythonをやる方法達は全部バグが多かった

今、2018年のはあんまりバグがない Iron python 2.7.8(2018)のnet45を使おう

バグ?

Iron python 2.7.8のnet40がunityをダウンするぽい使わないよにしよう
net45を使おう

import os

うまくできる

import 他の

うまくできる

スクリプト

全部前と同じく書いておk、バグない

unityでビルド途中エラーが出て、ビルドできない

ビルドするとエラーが出る
でも昔のiron pythonはエラーが出ない
iron pythonは全部Pluginsフォルダにある。昔のironpythonのPluginsを変わりに入れてビルドし、ビルドしたフォルダのDataフォルダにPluginsフォルダを作って今のiron pythonのPluginsを入れる
Pluginを変えると、ビルド後も使える

文字化け

ironpythonの特徴上、見る時、文字の化けがある
print(str(文字).decode('utf8'))
これ使ってみる

1
2
0

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
1
2