Coder Social home page Coder Social logo

Comments (15)

rpavlik avatar rpavlik commented on July 29, 2024

I don't think we can do this,I thought it was a special directory name. If this is done, we'll have to adjust CI and probably search paths accordingly.

from osvr-unity.

DuFF14 avatar DuFF14 commented on July 29, 2024

The "Plugins" name is special, but it doesn't have to be directly under Assets, and there can be multiple Plugins folders in the same project. Same with "Editor" and "Resources". I think we will need to adjust CI soon anyway to add additional dependencies for RenderManager functionality #88

from osvr-unity.

chase-cobb avatar chase-cobb commented on July 29, 2024

Is this still open? @rpavlik is correct that the plugins directory can't be nested. I verified this in a local project.

The convention is to nest libraries by project inside the plugins folders.

  • Android
    -- OSVR
  • x86
    -- OSVR
  • x86_64
    -- OSVR

from osvr-unity.

DuFF14 avatar DuFF14 commented on July 29, 2024

@chase-cobb OSVR still works for me if I nest the Plugins folder inside the OSVRUnity folder. Where are you finding that convention?

from osvr-unity.

chase-cobb avatar chase-cobb commented on July 29, 2024

@DuFF14 I'm totally wrong. Maybe this is one of the conventions from the early days of Unity that I never mentally escaped. Now to figure out why my project is crashing if I move the folder.

http://docs.unity3d.com/Manual/PluginInspector.html

from osvr-unity.

chase-cobb avatar chase-cobb commented on July 29, 2024

This pseudo convention is still done by several places that use Unity. Probably to track external dependencies easier. 🎱

from osvr-unity.

demonixis avatar demonixis commented on July 29, 2024

Hi,

In my projects I have a special hierarchie for folders. I have a Vendors folder with all dependencies. So I have an OSVR folder with a Plugin folder in it. All works fine because the OSVR sources, don't calls dll by an absolute path, like some plugins (ProBuilder, PSMoveUnity, etc...). So it's fine, you can move the plugin folder in the OSVR folder and all will work as expected.

I suggest you to remove unecessary files like

  • .mdb
  • .pdb
  • add_sdk_to_registry.cmd/ps1

I can send a pull request with these changes.

from osvr-unity.

DuFF14 avatar DuFF14 commented on July 29, 2024

@demonixis Thanks! I would be ok with merging those changes, but would like consensus that we are not breaking convention. The automated build system will have to be changed at the same time, since the DLLs in the .unitypackage are copied from Managed-OSVR. I could do that part.
Any thoughts @rpavlik @chase-cobb ?

from osvr-unity.

cobbchaseRazer avatar cobbchaseRazer commented on July 29, 2024

I don't see any issues with proceeding, as long as we can demonstrate that there are no negative impacts on the Android platform. It's not all shared objects (manifests and potential jars), and we should keep path lengths in mind. I can do a quick test on Android to make sure there are no issues, but it would be great if someone else could run the same test.

It will be important to document how developers update the plugin for the first time after the merge. They may need to manually delete the old plugin folder in their project to avoid multiple inclusions.

from osvr-unity.

demonixis avatar demonixis commented on July 29, 2024

I sort all my assets like that and it works pretty well for all platforms.

from osvr-unity.

cobbchaseRazer avatar cobbchaseRazer commented on July 29, 2024

I just ran it on my device without issue. It doesn't currently have any custom manifest to merge, so that remains untested by me, but I do have a jar file used to bind to the Android service implementation. Everything looks good to me. 👍

from osvr-unity.

nanospork avatar nanospork commented on July 29, 2024

Just want to throw my voice in there. Seems to work fine moving all the contents of Assets/Plugins under Assets/OSVRUnity/Plugins. Would be really great to make this happen, as currently to update the plugin I have to import it into an external project before moving it into my main project for cleanliness.

from osvr-unity.

DuFF14 avatar DuFF14 commented on July 29, 2024

sorry for the slow movement on this, I will submit a PR on this soon if nobody beats me to it.

from osvr-unity.

demonixis avatar demonixis commented on July 29, 2024

Great! Can I suggest to move text files about version, etc.. in a separate folder because it's the same files in both x86 and x64 folders. It's better to versionize only needed files.

from osvr-unity.

DuFF14 avatar DuFF14 commented on July 29, 2024

addressed in #213
@demonixis I didn't address that issue specifically yet, but that can be cleaned up next. I think there are some other useless files.

from osvr-unity.

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.