This media is not supported in your browser
VIEW IN TELEGRAM
CLUMSY ROCKETSHIP! A physics based arcade game about balancing a spaceship! Are you skilled enough to land the spaceship ??
https://redd.it/1goemih
@r_Unity3D
https://redd.it/1goemih
@r_Unity3D
Weirdly Specific VR Question
Im currently making a VR game and i was curious if anyone knew how to make it so that when the player draws a circle with their finger, i can trigger a noscript? i thought of attempting to like, cut up a circle and make it so that each part you pass adds one and when it equals a certain amount the noscript triggers blah blah, it seemed to complicated so i thought id ask around
sorry if that makes no sense but thanks for reading
https://redd.it/1golos6
@r_Unity3D
Im currently making a VR game and i was curious if anyone knew how to make it so that when the player draws a circle with their finger, i can trigger a noscript? i thought of attempting to like, cut up a circle and make it so that each part you pass adds one and when it equals a certain amount the noscript triggers blah blah, it seemed to complicated so i thought id ask around
sorry if that makes no sense but thanks for reading
https://redd.it/1golos6
@r_Unity3D
Reddit
From the Unity3D community on Reddit
Explore this post and more from the Unity3D community
Media is too big
VIEW IN TELEGRAM
I finally managed to release the first playable demo on Steam. Thanks Unity, I love you (most of the time)
https://redd.it/1gopspz
@r_Unity3D
https://redd.it/1gopspz
@r_Unity3D
Is there a way to set the background to infinitely use the same texture?
For one of my projects i want the background to just be the same texture repeated over and over again, anything i look up to do this is for a scrolling background while i already have the game set up so the player actually moves instead of just the background
https://redd.it/1goqjmh
@r_Unity3D
For one of my projects i want the background to just be the same texture repeated over and over again, anything i look up to do this is for a scrolling background while i already have the game set up so the player actually moves instead of just the background
https://redd.it/1goqjmh
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
This media is not supported in your browser
VIEW IN TELEGRAM
Made this flying mage character for my Unity game to test combat. 🔥⭐️✨
https://redd.it/1gop4pv
@r_Unity3D
https://redd.it/1gop4pv
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
spent WAYY too much time on this tool to stitch terrain and cave meshes
https://redd.it/1gou04v
@r_Unity3D
https://redd.it/1gou04v
@r_Unity3D
Mouse over highlight with multiple colliders
Hello. I'm having a bit of a problem in my top down game with overlapping colliders and wondering the best way to fix it. Basically when I hover over an npc, I would like a little pop-up to appear over their heads. My current approach works okay, but it's very touchy because the npcs have multiple colliders and I only want the pop-up to appear when the hotbox collider is hovered. Often it will close the pop-up even while the hotbox collider is still hovered and I suspect the reason is another collider is overlapping and getting in the way. Is there a best way to handle this? I've heard layer masks might help, but that requires a new child gameobject for every collider, right?
https://redd.it/1goxvh5
@r_Unity3D
Hello. I'm having a bit of a problem in my top down game with overlapping colliders and wondering the best way to fix it. Basically when I hover over an npc, I would like a little pop-up to appear over their heads. My current approach works okay, but it's very touchy because the npcs have multiple colliders and I only want the pop-up to appear when the hotbox collider is hovered. Often it will close the pop-up even while the hotbox collider is still hovered and I suspect the reason is another collider is overlapping and getting in the way. Is there a best way to handle this? I've heard layer masks might help, but that requires a new child gameobject for every collider, right?
https://redd.it/1goxvh5
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Please help me. I try to get the New InputSystem to work but i cant figure this out.
https://redd.it/1gp019c
@r_Unity3D
https://redd.it/1gp019c
@r_Unity3D
How to create Character-Specific Shop System?
I have six characters in my game, and I want to set up a shop system where players can buy and equip character-specific skins. Each character has their own designated skins that only the intended character can use.
I tried using ScriptableObjects for managing these skins, but I’m having issues. Every time I exit the shop scene, the equipped skins sometimes unequip themselves. I'm using player pref btw, in case it helps to shine more light on this problem. My issue while creating shop system right now is I don't know a proper way to carry persistent game data between scene
Is there a better solution for managing character-specific skins, or is using ScriptableObjects a bad approach for this?
https://redd.it/1gozqp7
@r_Unity3D
I have six characters in my game, and I want to set up a shop system where players can buy and equip character-specific skins. Each character has their own designated skins that only the intended character can use.
I tried using ScriptableObjects for managing these skins, but I’m having issues. Every time I exit the shop scene, the equipped skins sometimes unequip themselves. I'm using player pref btw, in case it helps to shine more light on this problem. My issue while creating shop system right now is I don't know a proper way to carry persistent game data between scene
Is there a better solution for managing character-specific skins, or is using ScriptableObjects a bad approach for this?
https://redd.it/1gozqp7
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Selecting tile at camera/player position when it's supposed to be at mouse position
I'm trying to follow this tutorial to be able to add a building system to my game, which I can then modify afterwords into a farming system. So far, even with them skipping over some steps, I've been able to implement things fine, but when trying to make it highlight a tile at the position of my mouse, it instead highlights the one at the position of my camera, and therefor the player, and I can't figure out how to fix it.
tillingSoil:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class tillingSoil : MonoBehaviour
{
SerializeField private item item;
SerializeField private TileBase highlightTile;
SerializeField private Tilemap mainTilemap;
SerializeField private Tilemap tempTilemap;
private Vector3Int highlightedTilePos;
private bool highlighted;
private void Update()
{
if(item != null)
{
HighlightTile(item);
}
}
private Vector3Int GetMouseOnGridPos()
{
Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Vector3Int mouseCellPos = mainTilemap.WorldToCell(mousePos);
mouseCellPos.z = 0;
return mouseCellPos;
}
private void HighlightTile(item currentItem)
{
Vector3Int mouseGridPos = GetMouseOnGridPos();
if(highlightedTilePos != mouseGridPos)
{
tempTilemap.SetTile(highlightedTilePos, null);
TileBase tile = mainTilemap.GetTile(mouseGridPos);
if(tile)
{
tempTilemap.SetTile(mouseGridPos, highlightTile);
highlightedTilePos = mouseGridPos;
highlighted = true;
}
else
{
highlighted = false;
}
}
}
}
This\^ noscript is attached to my player (current highlight tile is a place holder)
https://preview.redd.it/ae7s12xuub0e1.png?width=448&format=png&auto=webp&s=960858a243671310e3b0cb268127d10a96be187c
Video to show what's currently happening: https://www.reddit.com/user/LilGrade21/comments/1gp26ij/\_/
https://redd.it/1gp275j
@r_Unity3D
I'm trying to follow this tutorial to be able to add a building system to my game, which I can then modify afterwords into a farming system. So far, even with them skipping over some steps, I've been able to implement things fine, but when trying to make it highlight a tile at the position of my mouse, it instead highlights the one at the position of my camera, and therefor the player, and I can't figure out how to fix it.
tillingSoil:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Tilemaps;
public class tillingSoil : MonoBehaviour
{
SerializeField private item item;
SerializeField private TileBase highlightTile;
SerializeField private Tilemap mainTilemap;
SerializeField private Tilemap tempTilemap;
private Vector3Int highlightedTilePos;
private bool highlighted;
private void Update()
{
if(item != null)
{
HighlightTile(item);
}
}
private Vector3Int GetMouseOnGridPos()
{
Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Vector3Int mouseCellPos = mainTilemap.WorldToCell(mousePos);
mouseCellPos.z = 0;
return mouseCellPos;
}
private void HighlightTile(item currentItem)
{
Vector3Int mouseGridPos = GetMouseOnGridPos();
if(highlightedTilePos != mouseGridPos)
{
tempTilemap.SetTile(highlightedTilePos, null);
TileBase tile = mainTilemap.GetTile(mouseGridPos);
if(tile)
{
tempTilemap.SetTile(mouseGridPos, highlightTile);
highlightedTilePos = mouseGridPos;
highlighted = true;
}
else
{
highlighted = false;
}
}
}
}
This\^ noscript is attached to my player (current highlight tile is a place holder)
https://preview.redd.it/ae7s12xuub0e1.png?width=448&format=png&auto=webp&s=960858a243671310e3b0cb268127d10a96be187c
Video to show what's currently happening: https://www.reddit.com/user/LilGrade21/comments/1gp26ij/\_/
https://redd.it/1gp275j
@r_Unity3D
YouTube
2D Grid Building System - Unity Tutorial | Point & Click, Loot Drop & Collect
An easy point & click building system like in Terraria! With breaking blocks, dropping loot, and collecting the resources. Bonus: an inventory system!
➡️@CocoCode Inventory system video - https://youtu.be/oJAE6CbsQQA
Get the project files - https://www.…
➡️@CocoCode Inventory system video - https://youtu.be/oJAE6CbsQQA
Get the project files - https://www.…
Rate my game 1-10 and tell me what I should change(I'm a new programmer)
game : https://totoriel.itch.io/solarsandbox
https://redd.it/1gp4ea3
@r_Unity3D
game : https://totoriel.itch.io/solarsandbox
https://redd.it/1gp4ea3
@r_Unity3D
itch.io
Solar Sandbox by totoriel
Physics Sandbox Simulation. Play in your browser
Need help with my character collider.
u/Expensive_News22 helped me fixing this, thanks alot. Had to adjust a few settings in the Layer Collision Matrix. Thanks!
Hey everyone! This is my first post here. I’m a complete beginner with no experience in Unity and just a bit in C#. For my university project, I’m making a 2D platformer game. I have platforms, and the player needs to be able to jump on top of each one, which works fine. But here’s the problem:
* When I use a polygon collider, the player’s head or body keeps getting stuck against walls or platforms, preventing movement.
[Character gets stuck when colliding with the wall or platform. \(In this case, the character actually mini-jumps in place upon collision because I am using a slippery material.\) Red = the collider that is getting stuck on the platform. Yellow marked area is the feet collider, which is not a problem, since it \\"slides\\" from the platform because of the Slip material. \(this is not the polygon collider, but same concept with that one\)](https://preview.redd.it/qj4iojdngb0e1.png?width=336&format=png&auto=webp&s=a61fc18eb441b956b9274d69daa6ea7301e4eb20)
I tried to fix this by limiting the collider to just the player’s feet, and it worked! Now, instead of getting stuck or glitching against walls or platforms, the player just keeps walking. Sounds like it’s fixed, right? But there’s another issue.
[Edited the polygon collider so the body doesn't collide with the wall or platform.](https://preview.redd.it/of2zwiypdb0e1.png?width=343&format=png&auto=webp&s=d5ebec5b1ab5586ac72a6e9f7ba3cce0e5bfe06b)
I also have obstacles (like a spinning saw) that the player needs to crouch to avoid. To make this work, I wanted to animate the collider to match the crouch animation, but I learned you can’t animate polygon colliders—only box or circle colliders for example. So, I created a circle and capsule collider instead and adjusted them for crouching. This solved the issue with the obstacle touching the character correctly.
[Using different colliders to achieve a working crouch collider.](https://preview.redd.it/vd4tg4f2fb0e1.png?width=490&format=png&auto=webp&s=9a94b0f023ebebeb345199fdd22c4890201b3e9d)
[Crouch collider](https://preview.redd.it/hwbose4rfb0e1.png?width=367&format=png&auto=webp&s=f0ae2f70535fb0d2349f635f815927282c685cc0)
But now I’m back to square one: the player is getting stuck on walls and platforms again.
Here’s what I need help with:
1. Ensuring the player has a ground check collider just at their feet (not sure if this is the best way).
2. Preventing the player’s body and head from getting stuck on walls or platforms.
3. Making sure the player can still be hit by obstacles.
4. Ensuring the player isn’t hit when crouching (using a different collider for crouching).
As I mentioned, I’m totally new to this and unsure if my approach is correct. I’ve searched everywhere YouTube, Reddit, Google, and even ChatGPT but I can’t seem to solve this. I’d really appreciate any guidance. Thanks a lot.
https://redd.it/1gozg08
@r_Unity3D
u/Expensive_News22 helped me fixing this, thanks alot. Had to adjust a few settings in the Layer Collision Matrix. Thanks!
Hey everyone! This is my first post here. I’m a complete beginner with no experience in Unity and just a bit in C#. For my university project, I’m making a 2D platformer game. I have platforms, and the player needs to be able to jump on top of each one, which works fine. But here’s the problem:
* When I use a polygon collider, the player’s head or body keeps getting stuck against walls or platforms, preventing movement.
[Character gets stuck when colliding with the wall or platform. \(In this case, the character actually mini-jumps in place upon collision because I am using a slippery material.\) Red = the collider that is getting stuck on the platform. Yellow marked area is the feet collider, which is not a problem, since it \\"slides\\" from the platform because of the Slip material. \(this is not the polygon collider, but same concept with that one\)](https://preview.redd.it/qj4iojdngb0e1.png?width=336&format=png&auto=webp&s=a61fc18eb441b956b9274d69daa6ea7301e4eb20)
I tried to fix this by limiting the collider to just the player’s feet, and it worked! Now, instead of getting stuck or glitching against walls or platforms, the player just keeps walking. Sounds like it’s fixed, right? But there’s another issue.
[Edited the polygon collider so the body doesn't collide with the wall or platform.](https://preview.redd.it/of2zwiypdb0e1.png?width=343&format=png&auto=webp&s=d5ebec5b1ab5586ac72a6e9f7ba3cce0e5bfe06b)
I also have obstacles (like a spinning saw) that the player needs to crouch to avoid. To make this work, I wanted to animate the collider to match the crouch animation, but I learned you can’t animate polygon colliders—only box or circle colliders for example. So, I created a circle and capsule collider instead and adjusted them for crouching. This solved the issue with the obstacle touching the character correctly.
[Using different colliders to achieve a working crouch collider.](https://preview.redd.it/vd4tg4f2fb0e1.png?width=490&format=png&auto=webp&s=9a94b0f023ebebeb345199fdd22c4890201b3e9d)
[Crouch collider](https://preview.redd.it/hwbose4rfb0e1.png?width=367&format=png&auto=webp&s=f0ae2f70535fb0d2349f635f815927282c685cc0)
But now I’m back to square one: the player is getting stuck on walls and platforms again.
Here’s what I need help with:
1. Ensuring the player has a ground check collider just at their feet (not sure if this is the best way).
2. Preventing the player’s body and head from getting stuck on walls or platforms.
3. Making sure the player can still be hit by obstacles.
4. Ensuring the player isn’t hit when crouching (using a different collider for crouching).
As I mentioned, I’m totally new to this and unsure if my approach is correct. I’ve searched everywhere YouTube, Reddit, Google, and even ChatGPT but I can’t seem to solve this. I’d really appreciate any guidance. Thanks a lot.
https://redd.it/1gozg08
@r_Unity3D
Hi guys! I created a devlog about the game that I'm working on. I hope you will like it :)
https://youtu.be/C4mm9L7b2ek
https://redd.it/1gp7rn1
@r_Unity3D
https://youtu.be/C4mm9L7b2ek
https://redd.it/1gp7rn1
@r_Unity3D
YouTube
My Pokémon Duel-Inspired Game! | Tamigo Spin! Devlog #1
Introducing Tamigo Spin! 🎉 In this devlog series, we’ll be taking you behind the scenes as we develop our new spin-based battle game, inspired by the strategic gameplay of Pokémon Duel but with a fresh twist. In Episode 1, dive into the world of Tamigo Spin!…
Need Help with Tile Rule Configuration in Unity 2D - Missing Corners Issue!
Hey everyone,
I'm working on a Unity 2D project and running into an issue with my Tile Rules. I'm really close to getting it right, but the configuration is getting a bit overwhelming!
As you can see in the pictures, I can't seem to get certain corners to fill properly. I'm not sure if it's the exterior or interior corners that are missing, but either way, I'm not getting the result I need. I have all the necessary tiles, but I’m struggling with how to set it up in the Inspector to make everything work.
If anyone can guide me through the configuration steps or provide tips on setting up Tile Rules to handle these corners, that would be super helpful!
Thanks in advance!
https://preview.redd.it/bydhamhowd0e1.png?width=876&format=png&auto=webp&s=871ae6d309e08e61e7ee27c66766786702dc9a37
https://preview.redd.it/g2o3mg4pwd0e1.png?width=279&format=png&auto=webp&s=dc00b88f882e20aa72058d885d2254ee50087b5e
https://preview.redd.it/10vuuzkpwd0e1.png?width=272&format=png&auto=webp&s=803f353b71d0641c91dfac43b6645c2144010445
https://redd.it/1gpar5s
@r_Unity3D
Hey everyone,
I'm working on a Unity 2D project and running into an issue with my Tile Rules. I'm really close to getting it right, but the configuration is getting a bit overwhelming!
As you can see in the pictures, I can't seem to get certain corners to fill properly. I'm not sure if it's the exterior or interior corners that are missing, but either way, I'm not getting the result I need. I have all the necessary tiles, but I’m struggling with how to set it up in the Inspector to make everything work.
If anyone can guide me through the configuration steps or provide tips on setting up Tile Rules to handle these corners, that would be super helpful!
Thanks in advance!
https://preview.redd.it/bydhamhowd0e1.png?width=876&format=png&auto=webp&s=871ae6d309e08e61e7ee27c66766786702dc9a37
https://preview.redd.it/g2o3mg4pwd0e1.png?width=279&format=png&auto=webp&s=dc00b88f882e20aa72058d885d2254ee50087b5e
https://preview.redd.it/10vuuzkpwd0e1.png?width=272&format=png&auto=webp&s=803f353b71d0641c91dfac43b6645c2144010445
https://redd.it/1gpar5s
@r_Unity3D