#Any way to make a UI effect only appear in a certain area?

28 messages · Page 1 of 1 (latest)

thin crystal
#

Is it possible to keep a UI effect persistent in a single area, but make it disappear after you leave that area?

#

Obligatory @pine nova

pine nova
#

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

thin crystal
#

God im asking pretty broad and stupid questions

pine nova
#

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

thin crystal
#

Yes, but isn't the effect "played" for everyone? Whenever you play it through convential means?

pine nova
#

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

pine nova
#

Otherwise its only to the player that you selected

thin crystal
#

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?

pine nova
#

Im a bit confused on what your end goal is. Do you mind explaining it?

thin crystal
#

I want a certain location, upon teleport to trigger a UI effect

pine nova
#

Is it a command to teleport?

#

And once they teleport, show the UI and once they get X meters away, Clear the UI?

thin crystal
thin crystal
pine nova
#

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

thin crystal
pine nova
#

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.

thin crystal
#

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.

thin crystal
#

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

pine nova
#

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...

▶ Play video
thin crystal
#

Yay! Could this be applied to models as well?

jagged turret
#

Yes