#huh that is strange. Im gonna test it
1 messages Β· Page 1 of 1 (latest)
oop yeah I just noticed
you downloaded this one yes ?
yup
yeah I made these back when 2021 was out and only tested on 2020/21
sall good
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 π
I've barely got knowledge to make runtime scripts lol, I couldn't even guess anything involving editor code past a simple button
its mostly the same stuff really
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
Wonder what changed?
same π
time to investigate.. π΅οΈ
I guess you dont really need the extra stuff i can just send you the script for saving lol
I mean I'm down to help you text it on later versions if you need me to
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();
}```
Not like im getting anywhere with my inventory system lol
that would be nice π
ah dont say that, inventories are not easy feat
just @ me when you need me
thanks!
Yeah and I really picked an AWESOME first inventory system to try to create lol. Tetris
Me 2 days later trying to make my own from scratch
yeah I struggle with figuring that one out myself becuase part of me wants to use a self-made grid , and part of me thinks i can make this work with a Tilemap component π
I'm trying it with a GridLayoutGroup
that can work also but more diffcult because it shifts around
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
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
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
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
exactly yeah
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
sure thing! I thnk I already found the culprit
it was a .preset file as I suspected
this little bastard here
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.
https://github.com/navarone77/Screenshotie
@olive scarab
Give me a few minutes