0
Answered

How To Get the Main Camera in Macro

Markus 3 years ago updated by eagleeyez 3 years ago 5

Hello, 

I had an embed flow graph (in a State Machine), in which I used the the Main Camera successfully.  However with a macro, I cannot get the main camera.  

I can get the Main Camera Game Object with "Find Game Objects", but this will not connect to the "Screen to World Point" input for the camera. I also cannot find a conversion. 

Any help is appreciated,

Markus 

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by Markus 3 years ago
Answered

Hi Markus, welcome to the community!

Have you tried the Camera: Get Main unit?

Thanks, much appreciated. 

No, I could not find it. I tried: Camera, Get Camera, Main Camera, Camera Main. The problem is that Search/(fuzzy finder) is very specific is in order and spelling of words to find,  in this case its is only "main" or "get main". Is there any plans to improve the the search facility in future?  

Best regards,

Markus

Markus, which naming convention are you using? Human? If so change to programming or vice versa and see if that helps. 

+1

Yes, I'm aware and it will be improved with true approximate string matching in the future. 

http://support.ludiq.io/topics/199-approximate-string-matching/

String matching gets a big thumbs up from me.