Timeline for How to handle focus on a custom actor in Unreal Engine?
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2016 at 14:28 | vote | accept | arthur.sw | ||
| Mar 24, 2016 at 16:00 | comment | added | user1430 | Let us continue this discussion in chat. | |
| Mar 24, 2016 at 15:54 | comment | added | arthur.sw |
The bounds are set to biggest bounds possible on ULineBatchComponent::CalcBounds() which is called every frame, so there is no way to change ULineBatchComponent::Bounds. The problem is on ULineBatchComponent::Bounds, my custom component has correct bounds. The only solution I see is to stop using ULineBatchComponent, and use DrawDebugLine() but I will have to handle groups of lines manually (to create/delete entire groups of lines).
|
|
| Mar 24, 2016 at 15:24 | comment | added | user1430 | And is the right bounding box assigned to Bounds at that point? Or is it still a large one. It's possible that your code to compute the bounds correctly hasn't been called yet, or that you must explicitly set the Bounds member on your new component (not just the line batch component you're holding). | |
| Mar 24, 2016 at 14:03 | comment | added | arthur.sw |
Yes, it collects all components (here) and get their bounds with PrimitiveComponent->Bounds.GetBox();.
|
|
| Mar 24, 2016 at 13:54 | comment | added | user1430 | Did you put a breakpoint on the MoveViewportCamerasToActor function and see where it goes wrong? | |
| Mar 24, 2016 at 11:16 | comment | added | arthur.sw | It still does not work, I edited my question. | |
| Mar 24, 2016 at 10:19 | vote | accept | arthur.sw | ||
| Mar 24, 2016 at 11:10 | |||||
| Mar 23, 2016 at 16:34 | comment | added | user1430 | Another option might be to unregister the component, as the bounding box computation skips unregistered components. | |
| Mar 23, 2016 at 11:44 | comment | added | arthur.sw |
Yes UBatchLineComponent::CalcBounds() (implementation here) returns the biggest bounds possible. And I can't find any way to fix that. I tried to make my custom UBatchLineComponent by extending it, but I get link errors.
|
|
| Mar 22, 2016 at 17:26 | comment | added | arthur.sw | Yes, I didn't investigate it yet, but I think one of my component returns a huge bounding box. I strongly suspects UBatchLineComponent. I will check this. | |
| Mar 22, 2016 at 17:10 | history | edited | user1430 | CC BY-SA 3.0 |
deleted 17 characters in body
|
| Mar 22, 2016 at 16:12 | history | answered | user1430 | CC BY-SA 3.0 |