Unity-Technologies / com.unity.demoteam.hair

An integrated solution for authoring / importing / simulating / rendering strand-based hair in Unity.
Other
719 stars 97 forks source link

API is not easily usable from Assembly-CSharp #3

Closed qlee01 closed 1 year ago

qlee01 commented 2 years ago

Due to auto-reference being set to false it is not easy to use the API by code in Assembly-CSharp. Please consider changing this in both asmdef files (Runtime and Editor).

DanielaAuroch commented 1 year ago

Have you found a way to reference the API through Assembly-CSharp or did you have to make your own assembly definition and include it that way?

qlee01 commented 1 year ago

I needed to change the source files. As I understand if you write an own assembly definition, you won’t be able to reference this class if you are able to build the integration separately, this is the better way. I don’t understand why Unity always need to be so protective about their stuff.