Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by LukasR_Innoactive · May 13, 2019 at 10:39 AM · editor-scriptingpackages

Custom Package Editor Script

Good morning,

I am using Unity 2019.1.0f2 and trying to create custom packages to be used with the package manager. Unfortunately, Editor scripts do not seem to work.

When I load all files into the asset folder it works fine, but not when loaded as a package via the package manager.

Any Ideas what could be the problem?

This is my package: https://www.file-upload.net/download-13602273/TestPackage.zip.html

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by RedHillbilly · Feb 16, 2020 at 09:14 PM

Had the same problem, found the solution here: https://forum.unity.com/threads/case-1086863-component-script-cannot-configure-anymore-after-converting-into-embedded-package.563725/

Here is the procedure (c.f. image):

  1. Create an "Assembly definition" file at the root of the "Assets" folder: Create > Assembly Definition

  2. Create an "Assembly definition" inside your "Editor" folder (Assets>Editor): Create > Assembly Definition

  3. Refer to your Assembly definition file from your Assembly definition reference file.

  4. Set the Assembly to only compile in the editor (c.f. image 2)

Once you commit your changes and re-import the package in your other project, everything should work.

alt text alt text

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Sonic1584 · Dec 18, 2019 at 02:48 PM

If you create or reimport your assembly definition file for the Editor folder in Packages, is there a warning like this?

"Assembly for Assembly Definition File 'Packages/com.ourcompany.ourfeature/Editor/OurFeature.Editor.asmdef' will not be compiled, because it has no scripts associated with it."

It seems to be very important to follow the package layout convention from the Unity docs! This way I could get Editor scripts to compile when importing a local package from disk outside the project. Anyway, it won't ever do so when the exact same package was added via git url, though. In this case there is no warning anymore, scripts inside the Editor folder are just not compiled (but other files e.g. in Runtime are ok).

Any suggestions on this?

We already created a bugreport, but unfortunatly without any reply yet. https://fogbugz.unity3d.com/default.asp?1204133_32l912gfq43a7kq2

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

117 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Where is the Unity IAP package located? 1 Answer

Unity Import Package window button callbacks? 0 Answers

How To Set Layer Collisons in Physics Manager Via Script 0 Answers

Port Project Setting TO Another Project 0 Answers

Auto switch max size of a selected texture in Project window 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges