unity-cj-lib | Utility library for Unity | Plugin library
kandi X-RAY | unity-cj-lib Summary
kandi X-RAY | unity-cj-lib Summary
Utility library for Unity
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of unity-cj-lib
unity-cj-lib Key Features
unity-cj-lib Examples and Code Snippets
Community Discussions
Trending Discussions on unity-cj-lib
QUESTION
I'm trying to learn about compute shaders, and this project is really awesome. It is https://github.com/TheAllenChou/unity-cj-lib
But when I run it, there are errors I can't figure out how to get rid of:
ArgumentNullException: Value cannot be null. Parameter name: shader
ArgumentNullException: Value cannot be null. Parameter name: material
Compute shader (ParticleLogic): Property (particleBuffer) at kernel index (1) is not set
Any idea on how to fix? I'm using Unity 2019.3.0a7
It's only happening for the code for the "Turbulent Rainbow GPU Particles" example, so I've been going to the files and changing filepaths, and trying to feed it a material manually.
I just don't think I understand what's happening enough to ever fix it on my own, so I am reaching out for assistance. Appreciate any help.
Relevant code...
...ANSWER
Answered 2019-Jul-01 at 06:45Fix:
Switch to the latest stable Unity version,
Fix Shader.Find via this method (unity Shader returns a NULL when using Shader.Find)
(optional) If you get C# language specification error like I did, visit TimeWalk-Org's post https://forum.unity.com/threads/feature-xxx-cannot-be-used-because-it-is-not-part-of-the-c-4-0-language-specification.575008/
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install unity-cj-lib
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page