Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 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
1
Question by TGKG · May 03, 2018 at 02:52 PM · standard assets

Unity standard assets has error

Hey running the latest Unity version and I installed the unity standard asset pack from the store and I get the following error "Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs(91,34): error CS0619: UnityEditor.BuildTargetGroup.WebPlayer' is obsolete: WebPlayer was removed in 5.4, consider using WebGL' alt text

Why does a Unity Standard asset pack have errors?

Is this no longer a supported asset pack?

If this is no longer supported then why not say which version it is for in the store Is this package not for this version?

Many questions, What is the deal with this?

unitystandardasset.png (185.2 kB)
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
5
Best Answer

Answer by Hellium · May 03, 2018 at 02:56 PM

Nothing really hard to fix judging by the script

Just remove BuildTargetGroup.WebPlayer and leave the other build targets

For example:

          private static BuildTargetGroup[] buildTargetGroups = new BuildTargetGroup[]
          {
              BuildTargetGroup.Standalone,
              BuildTargetGroup.WebPlayer,
              BuildTargetGroup.Android,
              BuildTargetGroup.iOS,
              BuildTargetGroup.WP8,
              BuildTargetGroup.BlackBerry
          };

Becomes

          private static BuildTargetGroup[] buildTargetGroups = new BuildTargetGroup[]
          {
              BuildTargetGroup.Standalone,
              BuildTargetGroup.Android,
              BuildTargetGroup.iOS,
              BuildTargetGroup.WP8,
              BuildTargetGroup.BlackBerry
          };
Comment
Add comment · Show 3 · 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 TGKG · May 03, 2018 at 02:58 PM 0
Share

Sooo, why does this package have errors at all?

avatar image Hellium TGKG · May 03, 2018 at 05:08 PM 0
Share

Because Unity Technologies did not take the time to update the package.

The package is compatible for Unity 5.0+, and the web player was still supported on this version.

avatar image monkey_develop · Jul 04, 2018 at 03:17 PM 0
Share

I had the same problem and your answer has solved it. Thank you very much, Hellium.

avatar image
0

Answer by adamshortuk · May 19 at 11:04 AM

To resolve this issue, add the following line;

 BuildTargetGroup.WebGL,

Like so...

 private static BuildTargetGroup[] buildTargetGroups = new BuildTargetGroup[]
             {
                 BuildTargetGroup.Standalone,
                 BuildTargetGroup.WebGL,
                 BuildTargetGroup.Android,
                 BuildTargetGroup.iOS,
                 BuildTargetGroup.WP8,
                 BuildTargetGroup.BlackBerry
             };

NB Tested on Unity 2020.3.31f1

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

83 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

Related Questions

Unity Standard Assets Mobile First Person Controls not jumping 1 Answer

convert standard firstpersoncharacter into multiplayer 2 Answers

First post - Some assets, game objects do not compile with my Unity 2017.3 projects 1 Answer

How can I stop the standard car asset auto reversing with Logitech steering wheel 3 Answers

Unity overwrites old image effects and standard assets after system restore 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