Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question "Plugins" folder inside a Unity package. Does it have to be on the root folder or not?

Discussion in 'Scripting' started by Lenakeiz_, Nov 30, 2023.

  1. Lenakeiz_

    Lenakeiz_

    Joined:
    Jun 11, 2015
    Posts:
    33
    Hi there,

    As a part of a refactoring I am making some tools as an external unity package. I am using some external dll to communicate with a device.

    Can I put a "Plugins" folder into a Unity package? Does the Plugins folder need to be at the root of the package or can it be anywhere?

    Thank you very much for your help,

    Andrea
     
    Tizfold and _geo__ like this.
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,703
    It is quite a few years since we moved away from predefined directories to Plugin Importer. Plugins can be placed anywhere in the project, however, the original directories do play role in default import settings, so if you place plugins elsewhere, you probably want to have .meta files along them and make sure your plugins have correct settings.
     
    Bunny83 likes this.
  3. Lenakeiz_

    Lenakeiz_

    Joined:
    Jun 11, 2015
    Posts:
    33
    Hi @Aurimas-Cernius ,

    Thank you very much for the swift reply. So I assume that as long I commit properly the meta files to the project then I should be fine.

    Thank you very much,
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,703
    Correct.