1
vote
1answer
13 views
Is there a way to set blend modes / render state in Unity?
This is something I have not seen much about in the documentation here. But supposing I wanted to do various sorts of additive color blending between an object and the existing sc …
4
votes
1answer
119 views
First Person Shooter - How to change color of enemy red or green if it’s in or out of range?
How can I make a ray change the color of the object it hits first or use a boxcollider trigger instead?
No matter what i do with the function "OnTriggerEnter" or anything similar …
0
votes
1answer
60 views
how to make reflections
hey evryone,
does anyone know how to make a surface reflect (like a mirror)
simple question - just wondering
0
votes
3answers
129 views
How do I render a prefab without any scripts/components running?
We have a number of prefabs that we instantiate as needed, each of which contain several scripts that automatically initialize them, send messages, register in lists, do fun stuff, …
1
vote
2answers
177 views
Correctly Rebuilding Terrain Basemap
I am adding a dynamically generated "seafloor" texture to my terrains by adding a new element to the terrainData's splatPrototypes array. I then get the terrain's AlphaMap, populat …
2
votes
3answers
310 views
How do I play a full screen video?
I would like to have a video play in full screen on a trigger.
Anyone know how to do it?
0
votes
0answers
45 views
Lightmap dissapearing with Combine Children
First let me say I am having incredible fun with Unity and am impressed with how easy it is to use. Thank you so much for the great software!
I used the combine children script (f …
0
votes
1answer
45 views
GameObject gets destroyed after its TrailRenderer is toggled a few times
Working on Unity iPhone, I have a GUI.Toggle on the screen and that toggles a boolean on my main camera's script. Then, I am using this boolean in another object, to determine if i …
0
votes
2answers
63 views
why is my Gun Model Only rendering the front bit when the animations are on?
Could someone please please PLEASE, help me out here, Ive created my gun and textured it in max, ive put it into unity and i can now run about with the working gun etc. However whe …
0
votes
1answer
122 views
changing the used material of the mesh renderer
When the level starts the player has to choose different parts of different animals. For example the head and body of a cat, the tail of a squirrel and the legs of a kangooroo. The …
0
votes
1answer
42 views
Why does my materials get destroyed on some persistant objects ?
In my game, I have an object hierarchy whose root object calls the DontDestroyOnLoad function in its awake function. As a result, all the objects in this hierarchy are not destroye …
0
votes
3answers
308 views
appear/disappear gameobject
hi, i've created several gameobjects in my scene.
now at runtime i want only a few to be shown at startup.
later i'd like to have some gameobjects fade away and completely disappe …
0
votes
1answer
33 views
LineRenderer not affected by material alpha setting
Why does the LineRenderer not appear to respect the material alpha value set in SetColors? I'm setting it to values from 0.9 to 0.0, but the opaqueness never seems to vary. Why is …
-1
votes
0answers
88 views
What is the best way to create a particle effect to emulate anti-aircraft batteries firing into the sky ?
Basically i need a particle effect that will sit around my map which in this case is an urban warfare scene, essentially i need a particle effect that will fire into the sky and lo …
2
votes
1answer
90 views
Accessing material of particle renderer??
Hi
I'm using Unity Indie 2.6.1 and have following code:
function Start () {
var c = Color(Random.value,Random.value,Random.value,1);
renderer.material.color = c;
}
If I …