Hello.
Yesterday I updated AC from 1.63 to current version. After that, I have no more character speeches when "MainCamera" gameobject is disabled. I have a lot of timelines, where Im using my own cameras, so the MainCamera is in disabled state. Before update I have no problem with this - speeches works perfectly (running cutscenes with ActionList:PlaySpeech inside timelines). Now the "Subtitles" menu (SubtitlesUI) isn't even enabled in DontDestroyOnLoad (if MainCamera is OFF). If MainCamera is ON, everything works normal.
Like I said - before update that works, after - not. Of course I can return to 1.63, but 1.65 have a few important fixes...
Comments
"No speeches" means no UI part on the screen. SubtitlesUI (gameobject) doesn't set active in DontDestroyOnLoad on gameplay. I don't have audio yet, so I can't say anything about audio part.
I'm using default SubtitlesUI prefab to render speeches at the moment. Works normal if AC MainCamera object is active.
Im using this:
https://usermanual.wiki/Document/setupguide.661138229.pdf
to run ActionList with speeches on my timelines. I wrote a custom script "AC_Timeline Integration.cs", which interact with ActionLists. Something like this:
public void PlayACListState(int stateID)
{
GetComponent<AC.ActionList>().Interact(stateID, false);
}
This script is added to ActionList with speeches (without connections between them). Now I can add this AL object to Timeline as Tantawowa Event Track, and play selected dialogue via script.
As I said before, before update AC to 1.65 this works perfectly. I'm turning off AC.MainCamera object via Timeline, use my own cameras (normal unity camera, nothing special) and play speeches from events.
But after update speeches not showing up if AC.MainCamera is OFF.
I now - this is quite complicated, but works (before up)
I'm disabling cameras by using ActivationTrack on timelines (Turn on "Main Camera" for 0.1s, then deactivate it and activate my own "Camera").
In AC GameEditor -> Menu -> Subtitles under "Always fit within screen?" I have message about RectTransform boundary. I don't saw this before update.
If I switch Subtitles menu source to "Adventure Creator" renderer, subtitles still doesn't show up if MainCamera is disabled.
Link to screen with infos:
https://pasteboard.co/HHtjnKJ.png
Edit:
Nothing changes if I disable AC MainCamera by ["Engine: Control Timeline" Disable AC camera? true] ticker.
Menu settings: https://pasteboard.co/HHDf2IG.png
After debug: https://pasteboard.co/HHDlZwF.png
"Turn off subtitles" console log occurs instantly after game start. "Turn on" doesn't show up during timeline.
Variant 2 (run timeline) - under green line.
https://cdn.pbrd.co/images/HHMZ6ir.png
When I run timeline, "Turn off subtitles" stops updating. And error occurs (I missed him earlier, because I turned off "show errors" in console). Error shows up insantly when custom camera is switching on (https://cdn.pbrd.co/images/HHN7Mna.png red line).
Ignore 'Subtitles' option? seems to change nothing. This same errors.
I tried to recreated this problem in new project. Import AC plugin, open basement demo scene, add timeline with TantawowaTimelineEvents, Speeches, turn off MainCamera and Turn on my camera and... Speeches works, no errors, no problems. I have exactly this same scripts in my project so where is the problem? Im very confused now
Solved:
Error affects Hotspot script, so I take a closer look at my Settings->Hotspot, and compare it to new project settings. I had "Display Hotspot icons:" set to [Via Script Only] and that was causing the problem.