#Subscene main thread baking
1 messages · Page 1 of 1 (latest)
- No
- Yes: just attach debugger to background unity instance
tbh not sure why open subscene doesn't do a trick for you. Outside of play mode as you open it, it's like 1 to 1 what happens in clean scene bake
I am in a very tricky situation. I need PlayableGraph manipulation during baking time. It works good in live bake, but have an issues during baking in background. And I am searching possibilities to overcome this somehow.
how exactly are you using it though?
Locking editor to rebake on main thread doesn't sound like a good solution
separate unity instance doesn't have any Object connections to editor one afaik
I know. But I am out of ideas right now, so this "dumb" ideas appear 🙂 Maybe from after dumb something clever can arrive.
Here is the story. I have spent several months deciphering humanoid hips (humanoid rig root bone) position and rotation calculation formulas. All papers and related forums posts are read countless number of times. But I was out of luck there. So I decided to "play" animations and record transform and represent recorded data as animation track. This approach behave really well, until I discovered that PlayableGraph (I am using it to play animation) is not moving GameObject bones when called from background baking thread. And I am searching for solution.
huh
wonder if you can start another Unity instance in backrgound unity instance to simulate playable graph 🤣
have you looked into prefab scene view mode?
this is game object that gets played back in edit time
so potentially there's some API that can achieve the same?
Can I read about it somewhere? About prefab scene view mode
I have no idea about it
but since entities do it
maybe it is exposed in some way in C# side
Thanks, I will dig a little.
BakingUtility.BakeScene is what gets called to bake closed subscene
but this is already running in backrgound
What do you mean with this exactly? I'm not sure I follow
Meaning, it's literally as if you open multiple unity instances
you can't get Object reference to other unity instance