Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by nagitha98 · Mar 24, 2020 at 07:54 AM · unityeditorasset bundlescs0234

importing 'asset swap tool' (asset store originals asset) from unity asset store gives errors on build (build failed). any fixes?

I imported the tool and tried to build right away on versions 2019.1.11f1 and 2019.2.11f1 and both gave same results. Errors i get are,

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\SwapShader.cs(6,19): error CS0234: The type or namespace name 'PackageManager' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\SwapShader.cs(7,19): error CS0234: The type or namespace name 'PackageManager' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\SwapShader.cs(8,19): error CS0234: The type or namespace name 'Compilation' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\SwapTool.cs(7,19): error CS0234: The type or namespace name 'PackageManager' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\SwapTool.cs(8,19): error CS0234: The type or namespace name 'PackageManager' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\SwapTool.cs(9,19): error CS0234: The type or namespace name 'Compilation' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\UnpackNestedPrefab.cs(11,39): error CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\SwapTool.cs(15,29): error CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\SwapTool.cs(550,10): error CS0246: The type or namespace name 'MenuItemAttribute' could not be found (are you missing a using directive or an assembly reference?)

  • Assets\AssetStoreOriginals_SNAPS_Tools\AssetSwapTool\Scripts\SwapTool.cs(550,10): error CS0246: The type or namespace name 'MenuItem' could not be found (are you missing a using directive or an assembly reference?)

  • Error building Player because scripts had compiler errors

  • Build completed with a result of 'Failed'

  • UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) UnityEditor.BuildPlayerWindow+BuildMethodException: 11 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

This is really frustrating. any fixes? :/

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
1

Answer by mpn7 · Mar 25, 2020 at 10:10 AM

I have the exact same error! Unity version 2019.2.13

Edit

The problem was in the package "Asset Swap Tool" and the publisher solved the issue for me. Thank you

Here are the steps that can help you resolve the issue:

  1. Make folder named "Editor" at "Assets/AssetStoreOriginals/_SNAPS_Tools/AssetSwapTool/Scripts"

  2. Move all script files to that newly created "Editor" folder

Comment
Add comment · Show 2 · 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 zion379 · Apr 02, 2020 at 01:16 AM 0
Share

this worked for me! helped me keep my sanity

avatar image theprince41227 · Oct 26, 2021 at 07:57 AM 0
Share

it doesn't worked for me suggest any other method

avatar image
0

Answer by ChampAdeogun · Feb 02 at 08:33 PM

@theprince41227 Replace Where you see "OnlyUserModifiable" with "Editable" on SwapTool.cs script. save it and it should start working.

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

128 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to import the object from server to unity 2 Answers

Next Scene not loading after all enemies are destoryed 0 Answers

[CreateAssetMenu] For inherited ScriptableObjects 1 Answer

My unity project just isnt created 1 Answer

Popup showing "The required operation requires elevation" - Roslyn 1 Answer


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