Skip to content

Commit

Permalink
Add Readme to async
Browse files Browse the repository at this point in the history
  • Loading branch information
hrntsm committed Jun 29, 2020
1 parent 9e4a7a6 commit 6089a70
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,34 @@ public class TitleSceneScript : MonoBehaviour
+ Architecturex86_64 にする(多分デフォルトでこのあたい)
+ PlayerSettings から OtherSettingsから ScriptingBackendMonoApi Compatibility Level を .Net 4.x にする
+ Buildする

+ 完成!!!!!

### 5. その他

+ Build SettingBuildしたものでもスクリプトのデバッグできる設定がある

<img src=./images/BuildDebug.png width=500>

+ 起動時にRhinoInsideの起動の待ちが気になる
+ 該当箇所を非同期処理に書き換える
+ Task.Runを使って非同期化
+ うまくCancellationTokenを設定できてないので、強制終了しかできない…

```cs
public class TitleSceneScript : MonoBehaviour
{
void Start()
{
string RhinoSystemDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "Rhino WIP", "System");
var PATH = Environment.GetEnvironmentVariable("PATH");
Environment.SetEnvironmentVariable("PATH", PATH + ";" + RhinoSystemDir);
Task.Run(() =>
new RhinoCore(new string[] {"/scheme=Unity", "/nosplash"}, WindowStyle.Minimized));
}
}
```

## まとめ

+ 最終版は final version のものになっています。
Expand Down
Binary file added images/BuildDebug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6089a70

Please sign in to comment.