[Unity] Use SortingIndex() To Change the Order of Objects in the Specific Layer
To make the SortingIndex()
function effective, we need to set the Sorting Layer.
To make the SortingIndex()
function effective, we need to set the Sorting Layer.
Today I want to record how to use SetSiblingIndex()
function to set the order of child game object under the parent game object in Unity.
The random numbers can be seen everywhere in a game, regardless of the character’s ability or the enemy location, we can all use random numbers to determine.
Read More »[Unity] How to Use Random to Generate Random NumbersIn the process of making games with Unity, we usually need to deal with some collisions of game objects. For example: Get items, Hit the wall… and so on in different situations. At this time, we can OnCollisionEnter()
and OnTriggerEnter()
to handle collisions and trigger events.
I recently use Unity to develop when a snake game, I want to delete the head game object when my snake head collides with another snake’s body, I need to use OnTriggerEnter2D()
to set the collision determination.
In the process of making the game with Unity, we cannot manually place all game objects we need. In other words, sometimes we need to automatically generate or delete game objects.
Read More »[Unity] Generate and Delete Objects with ProgramThe button component is built in the Unity UI layout, so we can simply to create the function to trigger the button event when user clicking. But if it is necessary to set the events of the button “pressed” and “released” separately, we can write a script to inherit the Button class, and override the OnPointerDown()
event and OnPointerUp()
event.
CodeBERT is a pre-trained model based on transformer architecture, it is proposed from CodeBERT: A Pre-Trained Model for Programming and Natural Languages.
Read More »[Machine Learning] CodeBERT Introduction (With Example)At the end of 2018, the transformer model BERT occupied the rankings of major NLP competitions, and performed quite well. I have been interested in transform models such as BERT, so today I started to record how to use the transformers package developed by HuggingFace.
Read More »[PyTorch] How to Use HuggingFace Transformers Package (With BERT Example)Today I want to record how to rotate the image with virtual joystick in Unity. The configuration tutorial of virtual joystick you can refer: [Unity] How to Configure The Virtual Joystick and Move Object
Read More »[Unity] Rotate the Image With the Virtual Joystick