How Do I make my texture transparent given this code?
Shader "Custom/FresnelShader" { Properties { _Shininess ("Shininess", Range (0.01, 3)) = 1 _MyColor ("Shine Color", Color) = (1,1,1,1) _MainTex ("Base (RGB)", 2D) = "white" {} } SubShader { Tags {...
View ArticleNot all joints rotate in Mecanim while they do have animation on them.
I made an animation in Maya where rotateY on all finger joints has animation. This animation is then baked in Maya and plays back fine. When this animation is imported in Unity, there is no animation...
View ArticleOnCollisionEnter doesn't work
Hi. I have a sphere gameobject with a sphere collider, mesh renderer, rigidbody. Then i have a cube gameobject with a box collider, mesh renderer, rigidbody, my script attached to it as well. I have...
View ArticleIs Mesh Collider Optimal for GUI?
I'm using textureless (without a mesh renderer) simple planes for detecting touches on GUI buttons. They come with a box collider by default, but I'm changing them to mesh collider, as it sounds more...
View ArticleInstantiate object to load the next level
Hi there In my scene I have a script too instantiate a prefab into my scene right.. but want I want to do is make a button to load the next level of my game but it can only load it when I instantiate...
View ArticleHow do I load my game (*exe) to any server to play online ?
Unity 3D,game created for windows
View ArticleCalling another scripts function
I'm trying to call the DoorOpen function from the other script called DoorBehaviour function Update () { useDoor(); } function useDoor() { var doorScript : DoorBehaviour = GetComponent(DoorBehaviour);...
View ArticleDLL problems for MySql
Hello So I'm trying to connect my Unity project to a MySql server. Basically I copied what some others have done and ended up with this in the script which is going to connect to the server: using...
View ArticleHow to create a Particle effect after a time limit
Hello! I'm currently testing a few levels for my project, and I needed to create an explosion after a short time limit. (For exemple: An explosion after 5 seconds) I have my explosion particle set in...
View ArticleArmor/Health/Shield system bug where health automatically goes to zero if...
I made this simple armor/shield/health system which works almost perfectly except for when you get hit by a projectile and then lose your shield and armor. It seems as if when that happens, my health...
View ArticlePack vertex colors into secondary attibute
Hi! I'm using a very simple shader that only gets the vertex colors from an object, and I would love to have 2 sets of vertex colors to blend between on a single mesh, and seeing as unity only supports...
View ArticleWhy raycast not work properly in Unity WebPlayer?
Hi, My project in the unity editor and standalone , the raycast hit fine all my gameobjects, but in the webplayer only hit somes. The Gameobjects are loaded from AssetBundles In the log of the...
View ArticleSend Message Has no Receiver
So this is a part of a script I have attached to a wall: SendMessage("Cubelimit"); Then this is the script attatched to the prefab of the cubes spawning from the wall when I shoot the wall: function...
View Articlewhere is a good script to collect pages like in "slender"?
Just recently I figured out that AlucardJ had took down a page pick up code that now says "go to forum page". Now I cant find that script anywhere. Does anyone know where that script is? I would sure...
View ArticleHow does DontDestroyOnLoad work?
I'm trying to make a options menu which would require having variables work across multiple scenes. I read that DontDestroyOnLoad works but i don't know how to use it. I'm still new to programming.
View ArticleParticleSystem force over lifetime change?
Hi, How could i change the ParticleSystem's force over lifetime module?
View Articleaccessing a variable from another script.
I am very new to programming and struggling with a problem. I am trying to access the variable "score" from one script and use "score" to determine the height of a guitexture on another script. I have...
View ArticleDistributing agents over an area
Hello, I have multiple agents (hundreds) in my scene, heading to different areas. An area is a GameObject with a cube and a mesh renderer, material is translucent. At start each agent have one (random...
View ArticleMemberWiseClone Protected?!?
Hello guys, Ive been trying to get this code to work for a few hours and I am really stumped. I get the error: Assets/Scripts/ItemHolder.cs(122,36): error CS1540: Cannot access protected member...
View Article