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 Foram · Oct 09, 2013 at 07:17 AM · iphoneipadwebcamtextureipad2

Game crashes on reuse of webcam texture in iphone and ipad

we are using WebcamTexture in our scene to capture photo. When we unload that scene and come again, game crashes on iphone and ipad, in android it works perfect. We have stop() and destroy webcamtexture before switching scene. But it still got crashed when we try to call play() next time.

Comment
Add comment · Show 6
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 KDeriemaeker · Oct 09, 2013 at 07:55 AM 0
Share

We are having the exact same issue. Using Unity 4.2.1, iOS 7 SD$$anonymous$$ (also tried it with 5.0 SD$$anonymous$$), on multiple types of devices.

avatar image dhawalbanker · Oct 10, 2013 at 11:43 AM 0
Share

Found solution? I am facing exact same issue.

avatar image meat5000 ♦ · Oct 10, 2013 at 11:47 AM 0
Share

What happens after unload if you Re-Call the same scene?

GetNativeTexture it seems has a hardware handle which may need to be removed before unload/reload.

I'd recommend using if(device != null) when creating your cam instance. If your app is not properly releasing the camera it may fail when it attempts to retrieve it next time.

See what happens if you open another app which uses the cam, leave it running in the background and then open your game. See if it crashes on the first run.

avatar image dhawalbanker · Oct 10, 2013 at 11:55 AM 0
Share

How to remove native texture id?

avatar image dhawalbanker · Oct 10, 2013 at 11:56 AM 0
Share

Any subsequent webcamtexture.play() after webcamtexture.stop() causes the crash, irrespective of scene change or not.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by dhawalbanker · Oct 10, 2013 at 12:25 PM

Issue is iOS7 + older than unity4.2.2 version

http://forum.unity3d.com/threads/202199-WebCamTexture-crash-xcode5

http://forum.unity3d.com/threads/201967-How-is-WebCamTexture-handled-when-component-is-disabled-or-when-leaving-app

https://fogbugz.unity3d.com/default.asp?565268_5utj1nfr7fd4q308

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

18 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

Related Questions

Can I use unity 3d as a component of UI in ipad app? 0 Answers

How do I enable iAds on my unity game for iPhone? 0 Answers

Controlling Unity3D PC Application from IPAD/IPHONE 1 Answer

MIDI on iOS devices 3 Answers

Ampersand in application name 4 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