FlaxEngine / FlaxEngine

Flax Engine – multi-platform 3D game engine
https://flaxengine.com
Other
5.52k stars 541 forks source link

[Bug] Focusing on Custom Actors #2564

Open Myterian opened 3 weeks ago

Myterian commented 3 weeks ago

Issue description: Selecting a custom actor and focusing on them via pressing F will zoom to the Scene Origin, instead of the custom actor.

Steps to reproduce:

  1. Create a custom Actor
  2. Create instance in scene hierarchy
  3. Select and focus

Minimal reproduction project: Basic

Flax version: 1.8.6511.1

mafiesto4 commented 3 weeks ago

Does your custom actor setup Sphere/Box property for bounds? (in C++ use _sphere/_box fields). Mayeb we need to add C# API to set those, especially during OnTransformChanged event (which could also go to C# actor types as possible to override).

Myterian commented 3 weeks ago

No, it's using c# and currently not setting _sphereor _box