0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Shader Graph Error "_Time"

Posted at

Shader error in 'Master': redefinition of '_Time' at line 144 (on d3d11)

現象

Unity Shader GraphのSubgraphを作成し"Time"というプロパティを宣言すると"_Time"というReferenceが動的に設定されるのだが、"_Time"は元々Unity側が定義しているためエラーが出る。

image.png

対応

プロパティ名を"TotalTime"に変更することで対応した。
image.png

その他には以下のような対応ができるそう(未検証)

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?