Giter VIP home page Giter VIP logo

Comments (11)

AdamRamberg avatar AdamRamberg commented on May 28, 2024

Thanks for submitting this issue!

What version of Unity are you running and how are you importing the Unity Atoms? I would also like to see an image of your folder structure in your Packages folder, in Unity's Project tab.

For me it works just fine to do this in my manifest.json:

"com.mambojambostudios.unity-atoms": "https://github.com/AdamRamberg/unity-atoms.git#canary",

I'm running Unity 2019.1.0f2 and UniRx is not included.

The idea is that UniRx is not going to be included in the library, only in the Examples project in the Github repo. The root package.json's files attribute should just point to the packages folder and thereby not include any of the examples. It doesn't seem to work for you though, so I'm thinking that this might not work on older versions of UPM.

from unity-atoms.

soraphis avatar soraphis commented on May 28, 2024

I've found the same UniRx issue within the examples. I'll provide a fix within the next days, where the UniRx examples won't throw errors when UniRx is missing, and will compile when UniRx is present

but i clones the project, and did not include it as package. so my fix is only meant for contributors who are not interested in UniRx

from unity-atoms.

AdamRamberg avatar AdamRamberg commented on May 28, 2024

@soraphis Do you get this when you are cloning the repo and running the Examples project or do you get it when you add unity-atoms as a dependency in your project via Git URL?

from unity-atoms.

soraphis avatar soraphis commented on May 28, 2024

@soraphis Do you get this when you are cloning the repo and running the Examples project

cloning the repo to work on it. the examples throw the error that UniRx is missing. I have not tested it as a package dependecy yet. I'll be at home tomorrow, will look into this a bit more then.

from unity-atoms.

AdamRamberg avatar AdamRamberg commented on May 28, 2024

That is really weird. Can't UPM resolve the UniRx dependency? How is your Packages folder structured / looking?

from unity-atoms.

soraphis avatar soraphis commented on May 28, 2024

That is really weird. Can't UPM resolve the UniRx dependency? How is your Packages folder structured / looking?

Probably totally different as yours:

<unity project root>
 ├ Assets <git root>
 │ ├ Examples
 │ │ └ ...
 │ ├ Packages
 │ │ ├ Core
 │ │ └ ...
 │ └ ...
 └ ...

since unirx is defined somewhere inside examples it will not be resolved. but this way i've all of the project together (and everything lives within unity, and not outside of it)

from unity-atoms.

mutmedia avatar mutmedia commented on May 28, 2024

Should UPM solve the dependencies for a project that was just added as a submodule for the other one? That's what I am doing specifically.

from unity-atoms.

AdamRamberg avatar AdamRamberg commented on May 28, 2024

@soraphis Do you have a local copy of the new unity atoms repo that you are referring to in another project? I know that UPM doesn't use the files attribute in the package.json when using the file: syntax in your manifest.json. Or are you just dropping the full package into a new Unity project? Don't really understand otherwise. The idea is that when you are working on Unity Atoms that you open the Examples folder as a Unity project. If you want to use Unity Atoms in another Unity project you should add it according to the docs (the README.md in the master branch is out dated): https://adamramberg.github.io/unity-atoms/introduction/quick-start

@mutmedia If you are using the Git URL approach described in the quick start link above then UPM should just include the folders that are specified in the files attribute in the root package.json (and its subdirectories / subfiles). If you are using the NPM approach (also from the quicj start link above) then those packages are basically just the folders in the Packages folder, so in that case it is really weird that you get errors regarding UniRx since it is only included in the Examples Unity project. If any of the approaches above doesn't work for you it would be really helpful if you can provide an example repo where you get this problem so that I can take a look.

from unity-atoms.

soraphis avatar soraphis commented on May 28, 2024

@AdamRamberg yes, i have the whole unity-atoms repo within a unity project. I've always had it like that and it works quite well.

from unity-atoms.

AdamRamberg avatar AdamRamberg commented on May 28, 2024

@soraphis Alright, so that is not the intention of the repo structure. However, if you really want to keep this setup you could add the UniRx dependency to your wrapping project's manifest.json like this:
"com.neuecc.unirx": "https://github.com/starikcetin/UniRx.git#7.1.0-upm",

@mutmedia Did the quick start guide solve your issue?

from unity-atoms.

AdamRamberg avatar AdamRamberg commented on May 28, 2024

Closing this issue due to inactivity. In my mind this issue is solved, reopen if you are of another opinion.

from unity-atoms.

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.