Forum rules - please read before posting.

Enabling / Disabling Halo Effect

Hi Guys,

I am having a problem enabling / disabling an object with a Halo effect.

See ActionList here - https://ibb.co/FXQNmFM

I have a series of lights, controlled by the send message to light switch script, which all work great.

I also have, an object with a halo effect. I am having some issues enabling disabling this.

I've tried disabling the object, however I cannot re-enable because it deletes the game object. I've tried visibility to false, however it still shows the halo effect. The light switch function also does not work as it just ads a light module to the object.

I am thinking teleport might be the best work-around. I can teleport the object away, but I am not sure how to get it back to it's original position?

Thank you so much.

Comments

  • Place down a Marker at the object's original position, and another Marker at some place hidden off-screen.

    Then update your two Object: Teleport Actions by assigning these Markers in the Teleport to fields. Unset the Relative GameObject field values, as you only need to simply teleport something between two fixed places.

    Do be aware that both this technique, and use of the LightSwitch / visibility features can all be replaced with animation. If you attach an Animator to your object, and create animations to control things like the Mesh Renderer's enabled state / Transform position etc, you can control playback of those animations using the Object: Animate Action.

  • Absolutely brilliant Chris, Thank you!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.