A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
It works that way but what is the meaning of public here since is not in a class ?
In my base class Weapon I have declared a enum Firestate like: enum Firestate { Fire }; public class Weapon : MonoBehaviour { public Firestate...
I just saw, you used: airplane.GetComponent("Airplane") as PlayerAirplane but I want the opposite way and also I don't want to use inherited...
Yea, but what if airplane game object has no Airplane component on it but only PlayerAirplane. Will these line of code return null ?
I have an airplane and a component on it PlayerAirplane. PlayerAirplane is inherited from base class Airplane. On another game object I have...
LightStriker what do you think is better to destroy the game object in this script or the reverse way you mentioned in a bullet script ? MDragon...
How to test for collision without using strings or tags ? Currently I am using: if(collision.gameObject.name == "Bullet") {...
I think I understand. Thank you for your replies. I will create a Airplane class and make two inherited classes. All in separate scripts. The...
Ok, but what if the class would be bigger ? We could have a lots of ifs and our code could become unreadable. How do you use a class system that...
Actually I was thinking of this: public class Airplane : MonoBehaviour { public void Control() { } public void Move() { } public void...
I have several scripts for my airplane. One for control, one for movement and others. I think all these functions could belong to a single class...
Yea but why we have to put <> ? Why not just use GetComponent("MeshFilter") ?
In Unity 3D doc for accessing vertices there is a line in C#: Mesh mesh = GetComponent<MeshFilter>().mesh; I have tried to access it with...
Hmm, but when I don't change html it works fine. I have put my html text in <div class="content">, should I maybe put it somewhere else ?
Here is my html. I left everything as it is, I only inserted lines 16 trough 20. My page works for few hours. But when I try to load it a little...
I used * with ambient light. Now I changed it to + and it works fine. Thx for the link.
When I use UNITY_LIGHTMODEL_AMBIENT in my shader the object is rendered black, why ?
As explained in this thread the cginc file has to be created as simple text.
I would like to separate my shaders in a separate file and then include them with keyword #include. So I created a new shader file that will hold...
I know that I can get the light position with _WorldSpaceLightPos0 and color with _LightColor0 for the first light. But are there any other ways I...