Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by mitaywalle · Jan 16, 2018 at 07:00 PM · shadersparticlesshader programmingshader writingupdate problem

"particle standard surface" shader build error, PC

Hello,


Answer: Moving to Unity 2018 beta helps


we are using new "particle standard surface" shader from time it appeared in forum thread.

When we moved to Unity 2017.3 at build-time editor throws this error, and files don't appear on first try of build. On second try build-files appear.


  • Replacing shader and includes with 2017.3 built-in version didn't helped.

  • Reinstall Unity 2017.3 didn't helped

  • in 2017.3p2 same errors


error Error text:

Shader error in 'Particles/Standard Surface': invalid subscript 'instanceID' 'UnitySetupInstanceID': no matching 1 parameter function at line 140 (on d3d11)

Compiling Vertex program with DIRECTIONAL INSTANCING_ON Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_RGBM_ENCODING

без-имени-3.png (31.0 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cparki3 · Jan 17, 2018 at 09:08 PM 1
Share

I am having the same issue. Build files complete sometimes and sometimes they don't. I just did a fresh install of Unity 2017.3 last week.

avatar image mitaywalle cparki3 · Jan 18, 2018 at 10:18 AM 0
Share

You mean reinstall helps? UPD: nvmd, checked, reinstall didn't helped

avatar image cparki3 · Jan 21, 2018 at 10:56 PM 0
Share

Hey sorry it took me a while to respond. Reinstalling does not help... even after that I still have the issue.

4 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by cparki3 · Jan 21, 2018 at 10:57 PM

Yeah I can confirm this issue as well. I'm using the built in shader and my build fails most of the time. Every once in a while after building over and over I can get a playable version of my game. I'm going to try the beta to see if the issue exists there as well.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image richardkettlewell ♦♦ · Jan 22, 2018 at 09:07 AM 0
Share

It's unlikely to be fixed in the beta as it's not an issue we've heard about. Please submit a bug report by following https://unity3d.com/unity/qa/bug-reporting

avatar image cparki3 · Jan 22, 2018 at 02:43 PM 1
Share

Yeah I figured since there seem to be so many changes in the beta that it might affect this issue. I upgraded my project to the 2018 beta and I no longer have the error and can build just fine. Should I still submit a bug for Unity2017?

avatar image mitaywalle cparki3 · Jan 22, 2018 at 02:54 PM 0
Share

Thanks for this case, we'll try 2018 beta too

avatar image
0

Answer by richardkettlewell · Jan 19, 2018 at 10:46 PM

The shader is built in to 2017.3, you can delete your own version of it in your project.

FYI the instancing code in the engine changed, creating this error. You can delete the instancing code from the shader source if you know how - it is not used in 2017.3.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mitaywalle · Jan 21, 2018 at 07:18 PM 0
Share

Anfortunatly this didn't helped, in this case error just appear in built-in shader

avatar image richardkettlewell ♦♦ · Jan 21, 2018 at 09:18 PM 0
Share

Ok, you may submit a bug report by following https://unity3d.com/unity/qa/bug-reporting

avatar image
0

Answer by castor76 · Mar 27, 2018 at 04:58 PM

I have the same problem, is there any bug number that we can track on?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by llJIMBOBll · Dec 13, 2018 at 06:10 PM

If you cant access the code to change it, disable instancing on the prefab, I found this worked

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

137 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to affect Shader _Color by the Tint Color of Button (Through Shader) 0 Answers

Inner Stroke Fragment Shader 0 Answers

Help with Base Color + Outline shader! 0 Answers

Shader error in 'libS/Lit': redefinition of 'SurfaceData' at 0 Answers

Translucent Transparent Diffuse Sprite Shader Edit 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges