Blog about programming, Unity3D, game development, Game-engines, c#, AI, Drones & CS researches.
Linux Basic commands for beginners
#
|
Command Text
|
Description
|
1
|
Cd /
|
Go to root
|
2
|
Ls
|
Show all folder file directory names
|
Ls -l
|
Show file permissions
|
|
3
|
Cd
|
Change directory
|
Cd ..
|
Go back one step
|
|
4
|
Mkdir directory-Name
|
Create directory
|
5
|
Touch app.txt
|
Create file
|
6
|
Vi app.txt
|
Edit file (vi default editor),
|
7
|
Insert mode
|
Press I to insert mode, escape to out
|
8
|
Cat app.txt
|
Show/print content
|
9
|
Cp app.txt /home/faizan/desktop
|
Copy file to specific director
|
10
|
Mv file name directory
|
Cut paste
|
11
|
Rm file name
|
Delete
|
12
|
Man command name
|
Help how command work
|
13
|
Find search-path “filename with extension”
|
Find command for file
|
14
|
Find search-path -name “filename with extension or directory”
|
Search directory of file |
How to Import NuGet package in Unity3d
You often require to add third-party dll or nuget packages in Unity3d project. In this unity tutorial I will show you step by step how to add Nuget Package or dll into Unity3d project. For this tutorial we choose newtonsoft nuget package. You can adopt these steps for any nuGet package.
Here are the details,
Here are the details,
- go to your desired NuGet package webpage.
- on the right side **Download Package** option click it.
- your package **.nupkg** file will be downloaded.
- change its extension to .zip and extract it
- go to lib and copy your package dll file from net or any netstandard folder. For [your unity project compatibility purposes][2] view this:
- open unity workspace and create plugin folder
- paste your dll file here.
How to run Kafka Server with Producer and Consumer in Windows - Six steps Practical guide
In this post, we will learn that how to install and use Kafka server along with producer and consumer clients message exchange. This guide is based on practical only (no theory). For theory you can see other resources. This is the step by step practical guide that how to run Kafka on windows environment.
Step 1: Download and Extract Kafka in your desired directory:
1. Go to the link Apache Kakfa download and download. (I have download binary version 2.13)
2. Extract the .tgz file into any suitable location.
![]() |
| I have extracted my Kafka installation into C drive insdie Apachekafka Folder. |
Step 2: Install Java run-time and Save its path in environment variable.
1. Go to the link and install java runtime
2. After installation, open Environment variable from my computer properties and add JAVA_HOME variable and provide your java runtime installation path.
![]() |
| Java runtime installation path provided in a new environment variable named JAVA_HOME. |
3. In environment variable, select path, click on edit button and add this string “;%JAVA_HOME%\bin”


4. Go to command line and test "java -version". If you are not getting java installed version then see
How to solve "npm not recognized as internal or external command"
Step 3: Run Apache Zookeeper and Kafka Server
1. Make a batch file next to your Kafka folder. This batch file will run Zookeeper server. Add below line and run the batch file
start kafka_2.13-2.4.1\bin\windows\zookeeper-server-start.bat kafka_2.13-2.4.1\config\zookeeper.properties
Note:In above batch file command, kafka_2.13-2.4.1 is my Kafka installation folder name put your folder name in both location.
2. Make a batch file for running the Kafka Server and Run the batch file
start kafka_2.13-2.4.1\bin\windows\kafka-server-start.bat kafka_2.13-2.4.1\config\server.properties
Note:In above batch file command, kafka_2.13-2.4.1 is my Kafka installation folder name put your folder name in both location.
![]() |
| Two batch files have created in order to run Zookeeper and Kafka Server. Whenever you want to run Kafka server, you first need to start zookeeper server. |
Step 4: Create A Topic
In order to send message from Producer to consumer, you first need to create a topic. Later both producer and consumer will subscribe the topic and send and receive messages.
1. Go to Kafka installation directory, then Bin\Windows, and open command prompt form here and type below lines. You can write your desired name instead of YourTopicName
kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic YourTopicName
![]() |
| A topic with name "YourTopicName" has created successfully. |
Step 5: Start Producer
Kafka provides you message producer that will produce message for a specific topic.
1. Go to kafka installation directory, then Bin\Windows, and open command prompt form here and type below lines.
kafka-console-producer.bat --broker-list localhost:9092 --topic TopicToSubscribe
Note: TopicToSubscribe is the topic name where you want to send messages, in our case it should be YourTopicName
2. Hit enter to start the producer
Step 6: Start Consumer
As name suggest consumer will get the messages from producer.
1. Go to kafka installation directory, then Bin\Windows, and open command prompt form here and type below lines.
kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic TopicToSubscribe
Note: TopicToSubscribe is the topic name from where you want to gete messages , in our case it should be YourTopicName
2. Hit enter to run the consumer
3. Now go to Producer command line, and type any message and enter
4. View the Consumer command line you will get the message.
Unity TextMesh Pro text render on top
Unity Webgl Issues and Solutions
During my extensive interaction with unity WebGL, I found different things that are difficult to handle in unity WebGL or Unity Webgl has some serious limitations (But nevertheless I have managed to stream large 3D area in unity WebGL with asset bundles). I have made this post in order to show you Unity3D WebGL issues sheet and if you are interested to see what technologies or toolchain Unity WebGL using behind the Scene then check this post. So, without a particular order here is the list of unity webgl limitations with relevant references for your further research.
1. You cannot use Threads in unity WebGL. Here is the error that you will get when thread try to start:
SystemException: Thread creation failed.
UnityLoader.js:4 at System.Threading.Thread.StartInternal (System.Security.Principal.IPrincipal principal, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0
GameDev Question
Unity Forum
Unity Webgl Doc
Update: Unity claim that in Version 2019.1.0 they have added multiple Multithreading support but it was not working according to my test and now I also find this that there was bug with the problem which has fixed in Unity 2020.1.0 and Unity 2019.4.7 (untested)
2. If you are continuously pressing any keyboard input key and meanwhile you lost focus to WebGL canvas in the browser, the input will still work even after releasing the key. The situation may get worst in the Edge browser.
Ref:
SE Question
Maybe resolved in Unity 2019.3.0 but I have tested and still the same problem is happening.
Unity Tips and Tricks (Unity Shader Tips and Tricks) Part V
In this post, we gather different tips and tricks related to Unity Shaders.
Unity Shader Tips and Tricks
Wanna add cool transparent VR hands to your game but can't deal with the z-issues transparency brings?— Matheus Lessa (@ahvamolessa) November 25, 2019
The workaround: add a depth only pass to your shader:
Pass
{
ZWrite On
ColorMask 0
}#unitytips #gamedev pic.twitter.com/BwnnFPAf4u
Using #shaders to make this dimensional portal 🌀🌟— Couch Game Crafters (@CouchGameCraft) April 8, 2019
Made in collaboration with @_khymeia_. Also big thanks to @enemyhideout for some of the math (https://t.co/iYantAsSNY).#unityTips #gamedev #shader #madewithunity #unity3D #indiegame #gameart pic.twitter.com/0IfHLFYYmG
The second part of the geometry grass shader is now publicly out!🌿— Harry 💬 (@HarryAlisavakis) December 3, 2019
Enhance your grass with lighting, shadows and translucency while making it extra lush with some additional tessellation!
🔗: https://t.co/W8jJ31lIav
Happy grass-making!#gamedev #madewithunity #unitytips pic.twitter.com/Gg7Cyhnm10
From Slime Rancher to Astroneer, many games add glittery reflections when rendering sand. ✨— Alan Zucconi (@AlanZucconi) January 8, 2020
If you want to recreate such a cool effect in @unity3d, have a look at this #gamedev tutorial about Journey's sand shader! 🏜️
👇👇👇https://t.co/vdX5UFxuCY#madewithunity #unitytips pic.twitter.com/EdgxpNf1CN
I added a script to strip out about 90% of built-in shader variants in #unity that we weren't using based on this article https://t.co/jnehSbejZv— Damian Connolly (@divillysausages) January 2, 2020
Saved nearly 3MB and everything builds sooooooo much quicker#gamedev #unitytips pic.twitter.com/YgSrUxi0yJ
#UnityTips You can create artificial fog for a low-spec project by fading out an object's alpha (this was created using Shader Graph) and using a blank skybox.— Jack Tilling (@jacktilling_) January 6, 2020
This obviously isn't a fits all solution but for this case it was simple and really quick to setup.#unity3d #gamedev pic.twitter.com/6dcbeDz85n
The cel-shading shader tutorial is now publicly out for everyone!— Harry 💬 (@HarryAlisavakis) January 7, 2020
While this shader may not be a solution for all your needs, it has some neat and useful features to get you started!
🔗: https://t.co/zoWGniu2lB
Zelda model by @artstoff #gamedev #madewithunity #unitytips pic.twitter.com/CdKNHqCvR8
I finally managed to make a new shader tutorial. It's about maths.— ✨Ronja✨ (@totallyRonja) January 9, 2020
With inverse lerp and remap you can control gradients in neat ways!https://t.co/HIFwx8iTff#gamedev #unitytips pic.twitter.com/oGKqwgWARu
Sample depth, normals and color for a neat outline effect. Tutorial here https://t.co/kidCqAt7Mg to create this in URP with shader graph! #unity3d #unitytips 💡 pic.twitter.com/p12vfkmpGC— Alexander Ameye (@alexanderameye) January 7, 2020
The first part of the grass shader tutorial is publicly out! 🌿— Harry 💬 (@HarryAlisavakis) October 29, 2019
Check it out to see how you can harness the power of geometry shaders to make some cool-looking wind-swaying lush unlit grass!
🔗: https://t.co/nkiG0X3ieD#gamedev #madewithunity #unitytips pic.twitter.com/egyYKaEXbU
See Also:You can now choose where to learn about Shaders in @unity3d !— Febucci (@febucci) November 5, 2019
My video and article are both available now, have fun!
🎥Watch: https://t.co/uuUiCfDQGc
📝Read: https://t.co/UN8oW1H9Cp#gamedev #indiedev #unitytips #unity3d pic.twitter.com/jM1xfk9Ak6
Game Pause on error in Unity3d
For debugging purposes, you may require to pause the game on an error so that you can inspect the game situation. For this reason, you can follow these steps:
1. Write an error log in block of the code
Debug.LogError("Exception occured");
And before running the editor open console and hit Error Pause in the console log.
The game will pause as any error occurred in the console.
Debug.LogError("Exception occured");
And before running the editor open console and hit Error Pause in the console log.
The game will pause as any error occurred in the console.
Subscribe to:
Posts (Atom)









