Quantcast
Channel: Answers by "pixel_fiend"
Browsing latest articles
Browse All 18 View Live

Answer by pixel_fiend

This Blit function worked better than ReadPixels. I'm pretty sure it's just an abstraction of ReadPixels, fullscreen quad, etc. Anyway, this is how I took a snapshot of the webcam and copied it to...

View Article



Answer by pixel_fiend

This solution obfuscates the Coroutine, and uses Actions, which are generic callback functions. Make a base class for your scripts that extends MonoBehavior. This will allow use of Coroutine. using...

View Article

Answer by pixel_fiend

Using Screen.width is not future-proof. Instead, use Screen.dpi to detect the actual pixel density of the display. Attach this script to any GUITextures you use in your game. void Start () { //check...

View Article

Answer by pixel_fiend

I might be over-simplifying the issue, but this works for me: IEnumerator checkInternetConnection(Action action){ WWW www = new WWW("http://google.com"); yield return www; if (www.error != null) {...

View Article

Answer by pixel_fiend

The way I solved this was pretty simple. 1. update Minimum API Level in Player Settings > Android > Other Settings 2. Delete Temp/ directory

View Article


Answer by pixel_fiend

I had this bug because I was trying to read pixels into a `TextureFormat.ARGB32` from a `RenderTexture.RGBAFloat`. I fixed by specifying the TextureFormat in Texture2D constructor to match when...

View Article
Browsing latest articles
Browse All 18 View Live




Latest Images