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 Tepei · May 31, 2015 at 02:47 PM · directx

Is there a way to change DirectX9 / 11 OpenGl inside the game ?

I wanted to give the possibility in the game menu to switch DirectX 9 / 11 or OpenGl.

But i don't find any api that works inside the game. Is there a way to do this ?

Comment
Add comment · Show 4
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 fafase · May 31, 2015 at 03:20 PM 1
Share

http://docs.unity3d.com/ScriptReference/PlayerSettings-useDirect3D11.html

This will allow to switch to DX11

I could be wrong but I doubt you could switch between API. Windows will use DirectX and others will most likely use OpenGL.

avatar image Tepei fafase · May 31, 2015 at 03:35 PM 0
Share

I try it. But when you make a build with it Unity won't compile and give the error : BCE0005: $$anonymous$$ identifier: 'PlayerSettings'.

avatar image fafase fafase · May 31, 2015 at 05:52 PM 1
Share

Yep coz it is a UnityEditor member. So I guess your answer is no. You can change the quality settings at runtime. I would think that if the computer has two GPU. it will force to upgrade to the best one or most appropriate.

The DX11 setting from PlayerSettings actually makes a request that is not sure to be accepted if the hardware does not support DX11.

http://docs.unity3d.com/ScriptReference/QualitySettings.html

I have a feeling that the selection of the API is done automatically based on the specs of the computer though.

EDIT: I converted to a comment since I am not directly answering the question.

avatar image Tepei · Jun 01, 2015 at 12:32 PM 0
Share

Yep i think you're right. I find also this answer : http://answers.unity3d.com/questions/497286/direct-x-11-what-if-the-user-doesnt-have-it.html

$$anonymous$$aybe the player could use -dx9 tag with the game exe.

0 Replies

· Add your reply
  • Sort: 

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

20 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

Related Questions

[FF] Possible to use DirectX's Directinput for Force Feedback 1 Answer

Dynamic batching not working with direct X? 0 Answers

Does Unity IMGUI for Editor use DirectX on Windows? 0 Answers

Why does OPENGL use 4 to 8 times the vram compared to DirectX 2 Answers

Switch DirectX at Runtime 2 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