Memo[edit]

https://qiita.com/TestUser2021/questions/def62cf06f1da5d12a1a

#If VBA7 Then

   openFile.nMaxFile = LenB(openFile.lpstrFile) - 1
   openFile.lStructSize = LenB(openFile)

#Else

   openFile.nMaxFile = Len(openFile.lpstrFile) - 1
   openFile.lStructSize = Len(openFile)

#End If

https://stackoverflow.com/questions/4982680/getopenfilename-fails-in-64-bit-but-works-in-32bit

I have learned a few things since then. (I didn't study hard enough.)

Unity currently has three major render pipelines.
Built-in Render Pipeline (BRP?), Universal Render Pipeline (URP), and High Definition Render Pipeline (HDRP).
Each of these pipelines supports slightly different Shaders.

My SelectOARShader was using the Legacy shader for the Built-in Render Pipeline.
When I installed and started Unity6000, I selected URP, but everything went magenta because URP (and HDRP) did not support Legacy shaders.

Also, the PC used at our university was very old and did not support HDRP, and during the installation of Unity6000, the compilation of HDRP failed, resulting in an error in Visual Studio.
The GPU on my home PC was adequate, so I was able to install Unity6000 easily.

Therefore, I modified SelectOARShaer.cs to automatically detect BRP, URP and HDRP and select shaders.
This seems to work well.

However, sometimes the shader selection is not correct (For example, the color magenta. The tree does not become transparent, etc.).
This may be due to the cache, but in most cases, right-clicking on an object in Project and selecting Reimpot will fix the problem. If you want to be sure, select everything after importing and Reimport once.

And for warning of CreateAsset(), I rewrote it using OnPostprocessAllAssets, referring to the following article. The rewritten file is v1.7.6's Unity\Edtitor_v2\SelectOARShadde.cs.
Both Unity\Editor and Unity\Edtitor_v2 work, but personally, Unity\Editor seems to be more stable.

https://forum.unity.com/threads/calls-to-assetdatabase-createasset-are-restricted-during-asset-importing.1517806/

The latest OARConvWin can be found at The URL has been changed a little. Some bugs have been fixed, so please convert your data again.

https://blackjack.nsl.tuis.ac.jp/Download/Release/OARConverter/OARConvWin-1.7.6.zip

Thanks.

Fumi.Iseki


トップ   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS