i have this project going on and i came to an problem. there is a sign, and the sign needs to fall after i pass up a point in the level. the player will be walking in the level. and right before he gets to the sign, he will trigger the animation and the sign will fall… or it does not have to be animated, maybe i could use physics. or?? i need help… please some one …
and also , how can i trigger a movie file or , a power point presentation…
lets say i am walking true a level and at one point, after i pass up a point in the level. the movie file will take up the hole screan and start playing ???
Hello,
Opening a power point presentation as far as I know its not possible inside unity, but what you can do is to get screenshots of your presentation and then render them to textures ![]()
On the sign thing, you do not need to make an animation to make it fall, just create a trigger and make the sign a rigid body and apply a force to it, that way it will fall without you needing an animation.
On the movie thing, again, create a simple trigger and when you pass trough the trigger, just play the video on a texture.
hope it helps ![]()
where is this trigger located at, and how to i assign it or make it work… when the first person walks across it ??? does the first person need it also ??
Aldin, there is some information about this here in a thread that you started previously. The character itself should not be a trigger, and you simply place the trigger box at the place in the scene where you want the triggering to happen. Say, if you want a door to open, then you place the box collider right in front of the door.
well where can i find this trigger… and the door, should there be animations on it. i have a door that has animation on it… when i press play in unity the door just opens. … i need some more detail. this is my second day using unity… please help
if u can include screen shot on what u are talking about i would aapretiade it…
Hello Aldin ![]()
You add the triggers to your objects.
Select your game Object you want to add a trigger and then:
Component > Physics > Box Collider
(This will create a Box Collider for your gameObject)
Now, go to the inspector and select the checkbox Trigger (Inside the collider component).
Hope it makes you clear where are the triggers and how you can add them ![]()
ok, well if i need to pick up items, and i have my first person , dont i neeed to attache the script to the first person.??? i researched and i need a SCRIPT to attache to the first-person.
If you want, you can just detect the trigger with OnTriggerEnter and just call a function on your object.
Or you can call also a function on your first person ![]()
It depends on how is your game logic built.
By default animations are set to play when your scene loads.
To stop this, deselect Play Automatically in the Animation section of your door object in the Inspector.