2D billboard disappearing after certain time?
-
Using the Delayed Callback Event.
//@input Component.SpriteVisual sprite
// change this to how many seconds you want it to wait before it disables itvar seconds = 1
var delayedEvent = script.createEvent("DelayedCallbackEvent"); delayedEvent.bind(function(eventData) { script.sprite.enabled = false }); // This starts the timer delayedEvent.reset(seconds);Comment actions -
Question, when i apply this to my sprite, it makes the filter go on for 1 second, then it switches the filter to the defualt camera in preview, any fixes?
Comment actions -
Are you sure it's switching cameras and not just disabling the sprite?
Comment actions
Please sign in to leave a comment.
Have a comment?