Access a script that has NO class?
I have a script I downloaded, and it works great, however it has NO class declaration! I want to access it from another script, to change its variables, but I can't figure out how to use...
View ArticleEdit anim or FBX file that's linked to Mechanim? Can't?
Okay so I have downloaded several "huge" mocap animation databases, with FBX animation files. Great. Now I want to fix some of them that have bad or wrong movements of joints. I can't do this in Unity?...
View ArticleSwitching shader back and forth fixes transparency issue?
Ok so I have a planet, with: 1) Water (Unity Standard shader set to simi Transparent) 2) Land (Opaque) 3) Fog of War (solid black color, alpha cutout shader, simi transparent). When my fog of war is...
View ArticleReplace GameObject with another GameObject and preserve references without...
This question has been asked before but nobody has ever actually answered it. Everyone has just provided work-arounds and alternate solutions. In my case, I am writing a plugin that needs to replace a...
View ArticleClear ALL undo history for entire scene
Hi, I just want to clear ALL undo history for an open scene. Meaning that if you click Edit -> Undo, nothing would happen. I know this can be done saving and reloading the scene, but I'd rather a...
View ArticleBad File Length error!
I made a Unity3D game back in January of 2011. I no longer have the original source files for the game, but I do have the compiled webplayer.unity3d file. However, nowadays when I try to view it, it...
View ArticleTextures randomly stretching on certain polygons?
This is what is happening... ![alt text][1] [1]: /storage/temp/23358-stetching+textures.jpg The texture that is stretching is the big grey one in the middle. This whole room is one single mesh. I've...
View ArticleHow do you make light only hit part of a mesh?
I'm trying to use "layer" to select what part of my scene is affected my a directional light. Problem is, even with Pro Builder installed in Unity, if I set a particular peice of a mesh to a certain...
View ArticleMake object lay flat on a sphere + look up?
Looking around I found a youtube video (at https://www.youtube.com/watch?v=gHeQ8Hr92P4) which explained how to make a object, such as a player character, walk around on a sphere while keeping its...
View ArticleChanging Y rotation in Editor also changes X and Z?
I notice that if I'm not running / playing the game, if I change the Y rotation of an object in my scene, it only changes the Y rotation (es expected). But if I play the game by clicking the play...
View ArticleIs there a limit on the distance of raycast?
I'm using this line of code: if (!Physics.Raycast (Camera.main.ScreenPointToRay(Input.mousePosition), hit)) return; And the purpose is to detect if the mouse cursor touched a mesh collider. And it...
View ArticleUnity 5 trees have white dots...
Why are there white dots in the trees in unity 5? No matter what tree package I download from the asset store, same thing. No matter what shader those trees are using, same thing. White dots when the...
View ArticleSmooth terrain LOD transitions?
I'm using Unity 5 and I notice that unity appears to be automatically applying some sort of LOD (level of detail) effect to my terrain. I like that. But, it give a fairly obvious "snap" appearance as I...
View ArticleWhy don't trees block the sun flare?
My tree prefabs are set to layer "ignore raycast". My flare is a direction light with flare "sun". The flare goes right through the trees which looks unrealistic. What's the correct way to set this up?...
View ArticleWhy are my trees turning pale?
I'm using the tree creator, and I have 4 trees with textures and materials. Over time, as I worked on my scene (I was working on shadows, terrain textures and sun flares)... I began to notice my trees...
View ArticleReal pivot rotation of all vertices in a mesh?
I need to rotate a mesh by actually moving all the vertices, NOT by changing the transform.rotation of the gameobject. In other words, the mesh should rotate by the vertices, but the tranform.rotation...
View ArticleCreate a terrain prefab? Saving a terrain? No?
It seems like this should be intuitive. I should be able to save a terrain. Right? What's going on here? As I read through forums and documentation online, I'm seeing people writing their own scripts...
View ArticleTerrain LOD?
I notice there is some automatic level of detail happening on my terrains. I need to increase / decrease this terrain LOD. Where do I go to change the LOD settings for terrain, and is there a way to...
View ArticleMesh triangles don't match wireframe view?
So I have a mesh of a sphere made out of lots of fairly evenly shaped triangles. When I switch the scene view to "wireframe", I can easily see the triangles of my mesh. I assumed that if I got the...
View ArticleRotate a sphere by its vertices...
Hi, I need to rotate a sphere so that the pink vertex moves to the north pole where the blue vertex is. The whole sphere needs to rotate. I figure something like Quaternion.FromToRotation but I'm not...
View Article