Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Noise crime · Jan 04, 2011 at 02:42 AM · charactercustomizationcharactercustomizationcs0308

Character customisation demo - errors in 2.6

I recently downloaded the 'Character Customisation' demo for Unity. Loading it into Unity 2.6 it had to update the project. The scripts produce several errors that i've fixed, but one I just can't work out what the problem is.

The line is

StringHolder holder = ScriptableObject.CreateInstance<StringHolder> ();

error is CS0308: The non-generic method `CreateInstance' cannot be used with type arguments.

Anyone got any ideas what is wrong?

The code looks right to me, but I guess I must be missing something. Though its slightly worrying for a demo/tutorial to find a script error of 'var' being used in c# for defining a property instead of the proper type. I mean what happened to QA? Makes me wonder if there is something else going on with the above error, but i've tried rebuilding the project to no effect.

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
0
Best Answer

Answer by Noise crime · Jan 04, 2011 at 03:21 AM

So with a little nudge from Eric5h5 it would appear there are two different 'character customisation' demos on the Unity website. One for Unity 3.0 and an older one for 2.6. Doesn't help that both pages look exactly the same (apart from one ambigious element - see below), though thankfully the actual filenames of the projects are different.

Version 3.0 45mb - CharacterCustomization

Version 2.6 65mb - Characterdemo

Doing a Google search for the demo, led me to the Unity 3.0 version, though nowhere on the page did it say it was for 3.0! There is some actual text to the side that says 'Unity 2 Resources' which actually led me to believe it was a version 2.0 demo. In actual fact the text is really a button that takes you to the old Unity 2 resource page.

Its been frustrating to lose 1.5 hrs over this, especially since Unity 2.6 incorrectly identified the project as being created in an 'older' version of Unity, where in fact it appears to be version 3.0! Had the warning message correctly stated it was 'too new' I could have saved myself all that time!

Still at least I learned that var is acceptable in C# from Eric ;)

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
1

Answer by Eric5h5 · Jan 04, 2011 at 02:58 AM

There's nothing wrong with using "var" in C#. It's not an error, and in any case you need Unity 3 to use this demo. Trying to load Unity 3 projects into Unity 2 generally doesn't work.

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 Noise crime · Jan 04, 2011 at 03:08 AM 0
Share

ah thx, but now i'm very confused as when I downloaded the demo it didn't mention anything about needing version 3, in fact there was some big text to the left saying 'Unity 2 Resources', though now I discover its a button to take you to another menu! Then it gets a bit weirder as on that page there is a 'character customization' demo, but its a different size (65mb vs 45mb) to the one I downloaded before.

So wondering why two versions? Will test the other one out in a $$anonymous$$ute. But also wondering what features make it require Unity3?

avatar image Noise crime · Jan 04, 2011 at 03:22 AM 0
Share

thx for you input, it set me on the right course to work out what was wrong and i've posted the 'correct answer'

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

No one has followed this question yet.

Related Questions

Character customization 3 Answers

How to make a profile and character able to use in a mmo 1 Answer

Caracter Customization Example - Custom Character 2 Answers

Can anyone explain the Character Customization example project? 2 Answers

Character customisation 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