#huh that is strange. Im gonna test it

1 messages Β· Page 1 of 1 (latest)

olive scarab
#

I'm currently re installing it via the package manager

low swift
#

oh its a unitypackage not packagemanager

#

here let me show you

olive scarab
#

oop yeah I just noticed

low swift
#

you downloaded this one yes ?

olive scarab
low swift
#

yeah something is wrong..

#

must be a 2022 thing

olive scarab
#

I'm on 23

#

so ye

low swift
#

yeah I made these back when 2021 was out and only tested on 2020/21

olive scarab
#

sall good

low swift
#

that is the oddest thing

#

well good thing you brought it to my attention then, need to investigate

#

only thing it could be I think is the folder preset mover which is a unity script I stole from their page

#

testig on a 2021 build now just to make sure its specific to editor πŸ˜›

olive scarab
#

I've barely got knowledge to make runtime scripts lol, I couldn't even guess anything involving editor code past a simple button

low swift
#

its mostly the same stuff really

olive scarab
#

I'll have to take your word for it lol.

#

Betweeen lack of experience and Unity's horrid docs I'm bascially just doing guesswork 90% of the time

low swift
#

Agh

#

well aint that a bitch?

#

works fine in 2021...

olive scarab
#

Wonder what changed?

low swift
#

same πŸ˜›

#

time to investigate.. πŸ•΅οΈ

#

I guess you dont really need the extra stuff i can just send you the script for saving lol

olive scarab
#

I mean I'm down to help you text it on later versions if you need me to

low swift
#
  void TakeScreenShot(string fullPath)
  {
      if (_camera == null) return;
      FindStuff();
      RenderTexture rt = new(256, 256, 24);
      _camera.targetTexture = rt;
      Texture2D screenShot = new(256, 256, TextureFormat.RGBA32, false);
      _camera.Render();
      RenderTexture.active = rt;
      screenShot.ReadPixels(new Rect(0, 0, 256, 256), 0, 0);
      screenShot.Apply();
      // Encode texture into PNG
      _camera.targetTexture = null;
      RenderTexture.active = null;
      byte[] bytes = screenShot.EncodeToPNG();

      if (Application.isEditor)
      {
          DestroyImmediate(rt);
      }
      else
      {
          Destroy(rt);
      }
      File.WriteAllBytes(fullPath, bytes);
      AssetDatabase.Refresh();
  }```
olive scarab
#

Not like im getting anywhere with my inventory system lol

low swift
low swift
olive scarab
low swift
olive scarab
#

Me 2 days later trying to make my own from scratch

low swift
olive scarab
#

I'm trying it with a GridLayoutGroup

low swift
#

that can work also but more diffcult because it shifts around

olive scarab
#

I HAD a working tetris inventory system I replicated from a youtube vid, but it was clunky, used the old input system, and was way too messy to really expand on

low swift
#

yeah there are general tips/functionality you can grab from someone's tutorial but ultimately has to be tailored to your specific game / needs so it becomes less easy to extend on

olive scarab
#

Yeah, The more I work in unity and try to make stuff in it, the more I'm picking that part, up. The tuturials are more about the approach and less about the code. Granted sometimes the code is nice. Esepecialloy when its math

low swift
#

yeah exactly, they are better to extract useful info once you are more experienced in how Unity api works

#

this way you copy the "oh he did it this way, thats pretty smart" but code it how it would fit your usecase/game

olive scarab
#

exactly yeah

olive scarab
#

Just for the record, I'm heading off to bed, if you need me to test the thingy for 23, just msg me about it and I'll try it out

low swift
#

sure thing! I thnk I already found the culprit

#

it was a .preset file as I suspected

#

this little bastard here

low swift
#

Hey if you're still interested , I cleaned everything up.
Modernized it with new UI interface and crunched down the whole thing to 1 script.

low swift
olive scarab
#

Give me a few minutes