- Home /
Tagging Trees placed by tree paint
Hi i'm very new to Unity.
I used a prefab to have colliders on all trees that i place with unity, this works, but if I want to have a tag at a tree it don't work :/
i have made a simple collider detection to test that the tags do work
function OnControllerColliderHit (hit : ControllerColliderHit) {
if(hit.gameObject.tag == "Tree") { print("Bumped into a Tree!"); } }
i have test it on other products, but with the tree tag it doesn't. I also discovered that if you make a trigger of the collision detection with you trees. They still do collide with my character.
Do somebody know how to fix this?
thank you
Answer by networkZombie · Mar 23, 2011 at 04:22 PM
if you have a small terrain try not using the brush and adding them to the scene as gameobjects.
Your answer
Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Setting Scroll View Width GUILayout 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How to toggle a key for a car to go forward or backward? 1 Answer
How fluent do I need to be in JavaScript before taking a crack at Unity's tutorials? 3 Answers