Sorry, I can't edit the post anymore, but I've only now realised I forgot to attach the script to a game object lol.
All good now, I just need to find the default inventory box code so I can adapt it.
Edit: never mind, found it. I should be able t…
Thanks! I think I can manage to extend the script. I haven't really been able to try though because setting the inventory box type field to Custom Script doesn't seem to be working?
I included a debug.log right after this line:
private void On…
Oh, and regarding (5), it was just something I noticed when I added a Debug.Log to the very start of the OnInventoryCombine method, before all the if statements. If ItemA is in slot 1, for example, and I pick it up, and then place it back in slot 1,…
Thank you! I needed the inventory hotspot to get the item label too, not just the container one, but it was super easy to adapt your code to work the other way around.
I did come across an issue with the DynamicReplaceItem script though. This bit:
…
Re: Amplify Color, I fixed the flood of Hierarchy Changes events. The problem was that maskCamera was an actual camera in the hierarchy, and when CopyFrom copied all the values from AC's Main Camera to it, it triggered an event. So I unassigned the …
OK, so I used the scripts above, and I made more discoveries, but I'm really at a loss here.
First of all, after turning the AC hierarchy icons off, the 2D Demo scene does seem to work fine. I could swear it wasn't working before, but it seems to b…
Thanks, Chris. Yes, the AC hierarchy icons are disabled. One thing I need to point out is that I tested this in a scene that didn't have any Anima2D objects, and the issue still occurred.
In fact, when I run a different scene that does contain An…
Thank you! Just to make sure I understood it right – so if I want this behaviour for several sets of items, should I just add new public strings to ItemSwapData, and also add similar if statements under foreach?
OK, I tested this, and I think we are almost there! Just a few issues to fix.
First of all, my setup: items can be reordered in menus, and the selected item's display is set to "hide from menu". Most items have "can carry multiple?&q…
OK, so I found the anima2D culprit. I went through the files looking for references to "FindComponentsOfType" and just commented them out of all the files I could find:
static void HierarchyChanged() { // s_Sprit…
Note that when I first start the scene, Application.UpdateScene is taking most of the resources (and FPS is quite low, but the game is still responding):
(Image)
After about 1 minute, HierarchyWindow.Tick has climbed fast and is on its way to ove…
OK, so I profiled the editor. This screenshot was taken when the game had become unplayable (0 FPS). The low activity in the timeline happened when I paused the game, and the high activity when I unpaused it.
(Image)
Edit: Could AdventureCreator.…
Anima2D is contributing a lot! But only when paired with the new version of AC, that's what is so strange. I don't mind the spikes if they don't go past the 60FPS mark - they still allow me to test things in the editor, and there is no such issue in…
OK, so I get the increasingly high regular load when Hierarchy Icons are on. When they are off, I get increasingly high spikes which slowly become more frequent and then eventually merge.
All the screenshots below were taken with the Hierarchy Icon…
OK, Chris, so I've narrowed it down to an old install of Anima2D. I was using version 1.1.4, but updating to the latest (1.1.8) didn't help. So to recap:
AC 1.72.4 + Anima2D 1.1.4 = works fine
AC 1.73.0 with hierarchy icons ON = broken
AC 1.73.0 wi…
Unfortunately it is still happening in my project (but it seemed under control under the clean project with AC only?). Also, just out of curiosity, I tried to upgrade my project to unity 2020.2.4f1, and the the upgrade itself went very smoothly, but…
Chris, I've just created a clean project, imported only the new version of AC, assigned the 2d managers and ran the park scene. It's still happening, so I don't think it's an issue with the rest of my project.