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 LSnake2001 · Aug 17, 2010 at 07:07 PM · erroreditorradardirect3d

Strange error when adding script.

Hi All,

I'm getting this error when trying to add a script to my scene. The script is specifically the radar script found here; http://www.unifycommunity.com/wiki/index.php?title=Radar

The error I'm getting is; "IsD3D9DeviceLost() || g_D3DInsideScene".

Once it appears the selection inside the editor goes crazy then eventually stops responding altogether before closing down.

Can anyone tell me what's going on as I assume it's not the script and maybe something to do with my system?

Any help is appreciated.

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

Answer by Willem · Aug 17, 2010 at 10:22 PM

Looks like an error that is caused by Unity loosing its handle to Direct X. What OS and version of Unity are you running? Also which radar script are you trying to attach?

Comment
Add comment · Show 1 · 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 LSnake2001 · Aug 22, 2010 at 07:43 PM 0
Share

I was getting this error using the java script. I'm running Windows 7 x64 and Unity Ver2.6. I've since tried the c# version of the script and haven't had any problems.

avatar image
0

Answer by SteveFSP · Aug 18, 2010 at 05:01 PM

This is a very long shot, but since it appears you haven't gotten an answer yet...

Are you using the C# version of the script? A while back I experienced the same symptoms you are experiencing. Drove me crazy for a bit. I was able to resolve the issue by removing the explicit type definitions from my enum declarations. So if you are using C#, try removing the explicit enum type from both of the enum declarations:

E.g. From:

public enum RadarTypes : int {Textured, Round, Transparent};

To:

public enum RadarTypes {Textured, Round, Transparent};
Comment
Add comment · Show 1 · 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 LSnake2001 · Aug 22, 2010 at 07:46 PM 0
Share

Funnily enough it was the java version of the script that was giving me the error. As I said to Willem, the c# version is working fine. Thanks for the responses guys; I guess there isn't a simple answer to the error.

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

Unable to create a Unity Project with HDRP. 0 Answers

I get errors when I start any project 0 Answers

Unity started rejecting my scripts? 1 Answer

Unity 2018.2.0f2 Crashing to Desktop with "Object is already loaded" errors. 2 Answers

Project and Hierarchy in Editor becoming red 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