#Any way to make a UI effect only appear in a certain area?
28 messages · Page 1 of 1 (latest)
Yeah, I dont see why it wouldnt be possible. You will need a plugin for it.
Just send the effect when a player is X Meters to the effect and when they are farther then X meters, CLear the effect for the player
God im asking pretty broad and stupid questions
No, Its not a stupid question
Effects are sent to the Player. Think of it being Client side. Not Server side. Only the player can see Said Effect when its sent onto them
Yes, but isn't the effect "played" for everyone? Whenever you play it through convential means?
What you are trying to do could be done with uScript pretty easy. Easy as in you could learn how to do it. Otherwise, a Plugin could also do it
If you loop through all players on the server and send them the UI. Then they can see it
Otherwise its only to the player that you selected
So hypothetically if you invoke an effect via an object at a certain location, and make it the LOD pretty close, and make the effect fade out rather quickly, it could work?
Im a bit confused on what your end goal is. Do you mind explaining it?
I want a certain location, upon teleport to trigger a UI effect
Is it a command to teleport?
And once they teleport, show the UI and once they get X meters away, Clear the UI?
through NPC
Pretty much. Teleport in, UI, teleport away, UI clear
Your best bet is to use the OnPositionUpdated Evenet, Check their Position and if they are X meters away from a vector3 point, Clear the UI if it has not been, OTherwise send the UI fi they are close to the Vector3 Point
Is it possible by chance to specify a time frame after the UI appears for it to fade out in unity?
Personally, Im not 100% sure on how to do fading out. It is done by a Animation however I was never successfull on doing it.
I can try with a timer. I'll give that a try
I'll have to figure out how to invoke every x seconds at a certain location, but it's closer.
Animate it!
Well i figured it out, but I will need to find a way to animate it
Would you by chance have any example of models being animated in effects? I would really love to see how it is done and invoked because I have never gotten it to work
https://www.youtube.com/watch?v=mz9xfDQ4FCk
You dont need to do anything after 2:20
Animations are played when the UI is sent.
In this Unity video tutorial I show how to open a UI panel with an animation that I create with the animation editor.
I add a child panel to the parent panel (both are gameobjects) and for this child panel I create an open animation, I just change the height, which is recorded in the animation editor by having auto keyframes enabled.
After tha...
Yay! Could this be applied to models as well?
Yes