Giter Club home page Giter Club logo

Comments (4)

qlee01 avatar qlee01 commented on June 24, 2024 1

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.

qlee01 avatar qlee01 commented on June 24, 2024

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.

methusalah avatar methusalah commented on June 24, 2024

@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.

methusalah avatar methusalah commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.