#Subscene main thread baking

1 messages · Page 1 of 1 (latest)

slim osprey
#

Hi all.

  • Is there an option to force rebake of closed subscene in main thread, instead of background working thread? I am basically need to execute live baking for closed subscene rebake (by build, or by "Reimport" button press).
  • Is it possible to debug using debugger (breakpoints) of closed subscene rebake process?
tardy island
#
  1. No
  2. 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

slim osprey
#

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.

tardy island
fallow crane
#

Locking editor to rebake on main thread doesn't sound like a good solution

tardy island
#

separate unity instance doesn't have any Object connections to editor one afaik

slim osprey
slim osprey
# tardy island how exactly are you using it though?

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.

tardy island
#

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?

slim osprey
tardy island
#

I have no idea about it

#

but since entities do it

#

maybe it is exposed in some way in C# side

slim osprey
#

Thanks, I will dig a little.

tardy island
#

BakingUtility.BakeScene is what gets called to bake closed subscene

#

but this is already running in backrgound

sour cape
tardy island
#

you can't get Object reference to other unity instance