r/Unity3D – Telegram
r/Unity3D
266 subscribers
12.7K photos
15.6K videos
14 files
48K links
News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).
Download Telegram
How would I accomplish this in Unity? Pretend its the same tree asset
https://redd.it/1go9ufn
@r_Unity3D
Water droplet merge effect
https://redd.it/1goas1j
@r_Unity3D
I want to do specific things for my game, it's an assignment for my university, it's quite simple but, what is the ideal place to look for how to do or program certain actions in your game?
https://redd.it/1godz7p
@r_Unity3D
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
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
Got accepted to do a presentation!
https://redd.it/1gonhmc
@r_Unity3D
Got accepted to do a presentation!
https://redd.it/1gonhfo
@r_Unity3D
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
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
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
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
Canvas rect showing in game mod
https://redd.it/1govsa0
@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
Please help me. I try to get the New InputSystem to work but i cant figure this out.
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
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