+3
Answered

2 Questions... Live Edit and mouse poosition

Gadget Kk 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 5

Hi everyone,

I need help with 2 things please...

  1. For some reason the Live Edit feature in my Bolt has stopped working. Anyone know how to correct it?
  2. I'm using the Get Mouse Position > Screen to World Point to instantiate an object at the mouse position. But for some reason the object is created way up in the air and not on the plane.

Any and all help is appreciated.

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hi Gadget,

  1. What doesn't work exactly?
  2. If you want to target a plane, what you want to do is a Raycast. We'll do a tutorial on that specifically in the future, but if you don't know how to get started, plenty of users could help you on the Discord server.

When I make flow changes while the game is in play mode, the changes do not stay after i stop the game. So all changes revert back to the before i pressed play.

Answered

Hi Gadget,

Thanks for the details. Please make sure you are editing macros, not embed graphs. Machines with embed graphs cannot support saved live editing due to how Unity serialization works, but macros can!

Ah good to know. Is there a benefit of doing a macro vs an embed (other than the live editing)?

Yes! You can reuse it on more than one object, for instance. 

I suggest giving this page of the manual a quick read for the whole difference:

https://ludiq.io/bolt/manual/concepts/graphs-machines-macros#source