Is it possible to have a shader that draws various textures based on normal...
I have a subdivided mesh that I use as a terrain, and allow users to raise or lower parts of the mesh to design landscape. Right now it simply stretches the texture out with the adjusted vertices, but...
View ArticleHow to expose script properties in C# ?
The documentation seems to contradict.First it says that all behaviour scripts must derive from MonoBehaviour. Then it says that in order to display variables in the inspector, "you need create a class...
View ArticleCan anyone explain the Character Customization example project?
The Character Customization project (http://unity3d.com/support/resources...rcustomization) somehow combines meshes into a single boned animated mesh, but unfortunately the project doesn't come with a...
View ArticleAssetPostprocessor reference to asset being processed?
I wrote this class to streamline import settings on a bunch of UI textures. In addition to setting import settings, I want to create a material for each texture. This works great if I use "Reimport"...
View ArticleIs there a way to react to assets being deleted?
I have a custom import script for some textures where an associated material is automatically created upon import. I would also like to automatically delete associated materials if I decided to delete...
View Articleclass design preference
If you were designing a class that could be used for a few different types of objects, and not every property was used for every object type how would you do it between the two versions here? Mainly,...
View ArticleGL.LINES dashed (stippled) - why?
If I only use 2 vertices for GL.LINES, I get a solid line as expected. However for some reason if I use more than 2 vertices, the line ends up looking dashed. I'm no GL expert, but a Google found...
View Articlecustomizing loading page
According to this documentation http://unity3d.com/support/documentation/Manual/Customizing%20the%20Unity%20Web%20Player%20loading%20screen.html you can replace the Unity logo with your own image by...
View Articlesimple collision not working
I feel stupid to have to ask for help on this. I have a player object with a capsule collider (I don't want to use the character controller because I don't want gravity). I also added a RigidBody...
View ArticleRenderTexture usage in PostProcessing effects
The documentation says this: "Note that while RenderTexture assets can be only power-of-two size, it is possible to create a non-power-of-two (rect) render textures from scripts. These are most often...
View ArticleJapanese character support on iOS
The default Arial font displays Japanese characters. However, if I try to use an imported font, I get the warning that dynamic fonts aren't supported on this platform. Then the Japanese characters...
View Articledetecting locale on iOS
Is there any way to detect the current locale of the iOS device? It's sort of important when localizing a game. I don't see anything in the docs.
View ArticleCompiling plugin for iOS - need more info.
I looked at these docs: http://unity3d.com/support/documentation/Manual/Plugins.html But they really skim over it. Exactly how do I compile an Objective-C function and get it to work in Unity? Is it...
View Articleshader diffuse color too dark
I know practically nothing about programming shaders, so I need some very simple help. This is a very basic shader for making a solid color with a specular highlight, targeted at iOS. It works fine...
View ArticleOnPostprocessAllAssets is not doing anything
I have implemented this based on the information here, except converted it to C# http://unity3d.com/support/documentation/ScriptReference/AssetPostprocessor.OnPostprocessAllAssets.html However, it...
View ArticleUsing Sqlite for iPhone build
I've seen a few posts regarding using Sqlite in Unity, though nothing I try seems to work. Either some basic info is missing from the posts or I'm just doing something wrong. If I do this, as many...
View Articlehow do I change the build path?
I swear I set the build path at some point, but I cannot seem to find where to change it.
View Articleyield www problems in javascript
I'm having almost the exact same problem as this other post http://answers.unity3d.com/questions/38753/yield-return-www-not-returning, except I'm using Javascript. In a nutshell I'm doing this (the url...
View Articleweb player overlays HTML layers
I have a Unity web app running on a Facebook canvas. The Facebook layers for things like the notifications dropdown and request popups are covered up by the Unity player. Is there a way to change this...
View Articlehow to reference uninstantiated prefab?
I have a script that gets attached to a game object through code when the time is right. The script instantiates another game object (an emitter) from a prefab. However, I can't seem to figure out the...
View Article