Help us understand the problem. What is going on with this article?

Unity 2018.1 + ShaderForgeUnloading でUnloading broken assemblyが出る

More than 1 year has passed since last update.

Pref.

皆様ご存知の通りShaderをノードベースで簡単に作れるアセット「Unity Shader Forge」が無償化されました()
そのShader Forgeですが18/05/25現在アセットストアからDLしてきてインポートしても
image.png

Unloading broken assembly Assets/ShaderForge/Editor/ShaderForge.dll, this assembly can cause crashes in the runtime

とエラーログが出ます.
これの打開策,いや応急処置を書き残します.
とりあえずエラーは出ないようになりますが,きっと致命的なことをしているかもしれないので間違っていたらコメントお願い致します.

Env.

Unity 2018.1.0f2
Unity shader forge 1.38

Cause

エラーの原因はUnity20181.1から廃止されたProceduralTextureクラスが原因みたいです.
https://docs.unity3d.com/ScriptReference/ProceduralTexture.html

Method

  1. Assets/ShaderForge/Editor/ShaderForge.dllを選択し,インスペクタ上で以下のようにcheck boxを外します.
    image.png

  2. Assets/ShaderForge/Editor/Source code.zipをAssets/ShaderForge/Editorに解凍する.
    image.png

image.png

3.「SFN_Tex2d.cs」「SF_EditorNodeView.cs」「SFN_Tex2dAsset.cs」をテキストエディタかIDEで開きます.

4.検索機能を使って「ProceduralTexture」を検索します.

5.検索結果でハイライト(ProceduralTextureでエラーが出ている箇所)をされた部位をコメントアウトか消していきます.

以下例です.
image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

きっとこれでエラーがでなくなったと思います.

image.png

Reference

http://anfadev.blogspot.jp/2018/04/how-to-get-shaderforge-to-work-with.html

nmxi
最近は https://www.kemomimi.dev の方に記事書いてます
https://www.kemomimi.dev
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした