Blog
Effortlessly Pasting Clipboard Content into Unity
![](https://www.saadkhawaja.com/wp-content/uploads/2024/07/image.png)
So hear me out… Has this ever happened to you? You’re looking for an icon or an image to use in Unity. You open up a website, search for an image, and instead of saving it, you right-click and Copy image. So far, so good, right? Now you go back into Unity, and oops, you can’t paste it because, well, it’s not possible. The only thing you CAN do is go back to the website, right-click, and select “Save Image As.” Now you’re going to see this familiar dialog (attaching a Windows screenshot, but Mac users can relate as well).…
Integrating AI in Unity-Based Games
![Unity and AI](https://www.saadkhawaja.com/wp-content/uploads/2024/07/b6ee409e-0661-4d08-b0d0-398f10164fa2.webp)
Since it’s AI season, let’s briefly see how we can add AI using Unity in games. There are other ways of using AI to aid game design but let’s only focus on development for now. AI in game development is all about using algorithms and machine learning techniques to make non-player characters (NPCs) and game environments smarter. Instead of relying on scripted behaviors, AI-driven entities can learn, adapt, and make decisions based on what players do. This leads to gameplay that’s more realistic and engaging. Unity and AI Games have always had some form of AI in them since forever.…
Instant Screenshot available on Github
![](https://www.saadkhawaja.com/wp-content/uploads/2024/07/Instant-Screenshot-1024x601.png)
I’ve finally managed to upload the once popular editor extension (100,000+ downloads woah!!!) on github. There are similar tools out there to take screenshots and there is always Unity recorder for more advanced stuff – but I’ve always found that sometimes you just need to take a quick high-res screenshot from within your game. I was surprised to hear that so many still use this even though it was deprecated and removed from the Unity Asset Store. So here it is. I’ll be submitting to the asset store soon as well.Download: Instant Screenshot Unity Tool on GitHub One-Click Screenshot Capture:…
Unity Bug | No valid user created or default window found
![](https://www.saadkhawaja.com/wp-content/uploads/2024/06/image-2.png)
The “No valid user created or default window found” error in Unity typically arises from issues related to corrupted or missing files in the Unity layout folder. This can be caused by improper shutdowns, system crashes, or recent updates. “Revert Factory Settings” option does nothing to resolve this error so if you’re getting this error, chances are you won’t be able to open your project at all. To resolve this error, you can delete the Project\Library\ArtifactDB file. Here’s a detailed step-by-step guide: Close Unity: Ensure that Unity is completely closed before proceeding with any changes. Navigate to the Library Folder:…