Whenever my code compiles, if I have the canvas editor open, the nodes will rearrange themselves (change their x,y position)
This only happens if if the switch composite is set to Enum Based selection mode
Before:
After:
It makes the switch composite pretty much unusable. And even deleting it appears to “corrupt” the asset to always rearrange itself after doing a recompile.
This error shows up to, but I’m not 100% sure it’s related:
ArgumentException: Getting control 0’s position in a group with only 0 controls when doing repaint
Looks like I can work around it by hitting Ctrl+Z a few times. Unable to reproduce it from scratch, but seems to happen to my current setup:
I have a prefab that doesn’t have any nodecanvas components (just some components that manage variables outside of the blackboard). Then I have some prefab variants that DO have an FSM Owner/Blackboard components. These reference FSM assets (are not bound to the object). Inside the attached FSM asset I have a sub behaviour tree. When I add a switch component to that behaviour tree, it “corrupts” the tree.
This seems very strange and I honestly can not reproduce this at all. Does it only happen when adding the Switch node specifically? Do you get any errors (other than the other you mentioned) at all?
Can you please record a very small video for this? I know I might be asking much, but honestly, I can’t reproduce or find anything that could cause this (nor have this issue or similar been ever reported in the past :/)
Sorry, been trying to reproduce but now am unable to. It was only happening on old BT assets that I’ve since deleted. If it comes up again I’ll post a video.
Thanks for your support.
Author
Posts
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.