Unable to change array size in Inspector variable in Unity?
Try hitting ‘Reset’ from the gear-button on the component. It will reset all filled entries, but it should remove the cached size. I hope that helps!
Try hitting ‘Reset’ from the gear-button on the component. It will reset all filled entries, but it should remove the cached size. I hope that helps!
Use the Quaternion operator *. In Unity, when you multiply two quaternions, it applies the second quaternion (expressed in global axes) to the first quaternion along the local axes produced after the first Quaternion). So, if you want to do the equivalent of Rotate(q2, Space.Self), where q1 is the transform’s original rotation, and q3 is … Read more
what did i do wrong or did unity change it? Unity changed. I’ve seen similar questions for the past few weeks. Although I don’t think they are duplicates but it would make sense to answer all these here for future questions. The animation variable is defined under Component as a public variable which MonoBehaviour inherits … Read more
Yes, this is possible. You will want to look at the WebCamTexture functionality. You create a WebCamTexture and call its Play() function which starts the camera. WebCamTexture, as any Texture, allows you to get the pixels via a GetPixels() call. This allows you to take a snapshot in when you like, and you can save … Read more
I deleted the 24.0.0 build tools folder from Android\sdk\build-tools and it’s working !
In the answer below: companyname = Company name from the Build Settings productname = Product name from the Build Settings Windows: C:\Users\<userprofile>\AppData\LocalLow\<companyname>\<productname> Windows Store: %userprofile%\AppData\Local\Packages\<productname>\LocalState Mac: ~/Library/Application Support/companyname/productname older version of Unity on Mac: ~/Library/Caches folder ~/Library/Application Support/unity.companyname.productname. Linux: $XDG_CONFIG_HOME/unity3d/<companyname>/<productname> which is the-same as ~/.config/unity3d/<companyname>/<productname> Android: /Data/Data/com.<companyname>.<productname>/files with SD card on the Android device: /storage/sdcard0/Android/data/com.<companyname>.<productname>/files … Read more
The problem is that Unity cannot find inactive GameObjects. GameObject.Find will only find active GameObject. You should either find and store the GameObject in a global variable or make the variable public then assign it from the Editor. My solution uses a global variable then stores the GameObject in the beginner so that you don’t … Read more
I was looking for integrating Zxing with vuforia in Unity today. The first thing to do is to download the dll from : https://zxingnet.codeplex.com/ and copy the unity dll into your Plugins folder (which should be in the Assets folder) Then, I managed to found some examples (some of theses is outdated) : http://ydaira.blogspot.fr/2012/09/how-to-decode-qr-codes-using-unity3d.html https://github.com/Redth/ZXing.Net/blob/master/Clients/VuforiaDemo/Assets/VuforiaScanner.cs … Read more
Setting up an Android project is really simple. The document you linked is outdated and you don’t need to move any files at all. Unity Goto File -> Build Settings -> Android and click Switch Platform Enable Google Android Project Click Export and choose where you want the Android project to be Android Studio Import … Read more
The Text component replaced it. It’s part of the new UI system called uGUI. Go to GameObject —> UI —> Text and Unity will create a Canvas with a GameObject as a child. That child GameObject will have a Text component. You can learn more about the new UI system here. Example of how to … Read more