Comments (4)
In the Hair package Runtime folder, find the file Unity.DemoTeam.Hair.Runtime.asmdef, and set "autoReferenced": true.
There might me more asmdef files which need change (in Editor folder).
This basically allows the default namespace in C# to access the scripts. (default namespace = no explicit namespace stated).
If you are already using namespaces, there might be better options to include the namespace of Hair package, but I also don't have much knowledge about this.
from com.unity.demoteam.hair.
Hey, see my reported issue #3
Only way to access I found was to change the assembly file and set autoreferenced to true inside the Hair package. This is far from optimal, and it would be an easy change to do this in the repo.
from com.unity.demoteam.hair.
@qlee01 thank you for pointing it out, but I have no knowledge on the matter. Could you be a little more explicit about how to do what you describe, for my sake and others' that might end up here?
Thank you in advance
from com.unity.demoteam.hair.
Thanks, it seems to work for me. I just had to restart Unity.
I can't tell why it is like that, though. Is there any point to have the package not referenced like this? Having available components but not being able to get the associated script seems odd and a bad design. Or maybe it is a way to ensure people will not reach the API, because it is still a WIP and experimental?
Anyway it solved my issue so I close this.
from com.unity.demoteam.hair.
Related Issues (20)
- [Bug] Error On URP Build
- Changes in UV data HOT 2
- Generate UVs for strands in order to work with HDRP Physical Hair Shader (HDRPSamples/PhysicalHair_Ribbon) HOT 1
- Alembic scene scale ruins the UV mesh resolving HOT 1
- Line Rendering Compositing Depth pass order HOT 2
- Feature request: Dynamic strand diameter HOT 2
- NaNs in latest update of hair package HOT 2
- Inquiry about VisionPro Device Compatibility with Unity's Hair System HOT 2
- can not install from package manager
- automatic migration of newer version of the package messes up LODs
- After importing this package, it prompts "Invalid worldAABB. Object is too large or too far away from the origin." and a suggestion. HOT 3
- HQ line renderer Upscale low resolution effect
- Using Alembic curves as guide lines to generate more curves for hair strands at runtime
- Surface type Hair Strand mode tanget normal not working
- Unity is crashing HOT 9
- SDF collisions are broken HOT 6
- Changing values in Play mode sometimes breaks Hair instance
- Unreal like non physics Static mesh LOD and Auto Hair Card LOD HOT 1
- Feature request / clarification: Translation of density probe texture
- SDF collision does not respect scale of SDF HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from com.unity.demoteam.hair.