r/Unity3D – Telegram
r/Unity3D
260 subscribers
12.6K photos
15.5K videos
14 files
47.8K links
News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
Finished working on sand raking tool for my tiny zen garden creation game. Proud of how it turned out. What do you think about it?

https://redd.it/1hj9xm7
@r_Unity3D
I’ve created a 25-slice sprite slicing tool that takes 9-slice to the next level. Fully compatible with UGUI and comes with a dedicated visual editor. It’s open source—what do you think?

https://redd.it/1hjbpjk
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
Robots are invading, and only your typing skills can stop them! 🤖 Can you save the wall?

https://redd.it/1hjd1gf
@r_Unity3D
🔥1
I’ve created a 25-slice sprite slicing tool that takes 9-slice to the next level.
Fully compatible with UGUI and comes with a dedicated visual editor.
It’s open source—what do you think?

https://redd.it/1hjbn5a
@r_Unity3D
What is the best free beginner course for Unity 2D?

I am new to Unity 2D and C++, but I want to learn more. I am young and I don't have money for course. If there isn't free courses, do you know some way I can learn?

https://redd.it/1hjjfa0
@r_Unity3D
Had to force close Unity with task manager because FBX import was currently at 44 hours. All the imports for this building were fine until I started adding in destructible pieces. I currently have 5 pieces, all of which look roughly like this in terms of their amount of bits.
https://redd.it/1hjccol
@r_Unity3D
Minimum Mac Specs for Building for Apple Store?

Hello,

I am looking to add my mobile game to the Apple Store but I need to buy a Mac to be able to do so. I do my development on my PC and I’m wondering what the minimum specs I would need on a Mac in order to run Unity and build my game.

I plan on still doing all of my coding on my PC but I want to be able to transfer the project to a Mac only so I can build it for the Apple Store, I don’t intend on using it for more than that.

https://redd.it/1hjmnb1
@r_Unity3D
Having trouble with Tetris tutorial

I was following this tetris tutorial https://www.youtube.com/watch?v=ODLzYI4d-J8

but despite pretty much following it to the t, I got stuck at the end of the spawning/setting chapter. For some reason, the piece wont load in. I looked over the completed code, as well as where the code was where I left off, but I still couldn't find anything. I tried remaking the object in Unity, but that didnt do anything. Admittedly, I havent tried much else since I have no idea where to even start. Here's my code so far.

piece.cs

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.Tilemaps;



public class Board : MonoBehaviour

{

public TetrominoData[] tetrominoes;

public Tilemap tilemap { get; private set; }

public Piece active { get; private set; }

public Vector3Int spawnPosition;



private void Awake()

{

this.tilemap = GetComponentInChildren<Tilemap>();

this.active = GetComponentInChildren<Piece>();



for (int i = 0; i < this.tetrominoes.Length; i++)

{

this.tetrominoes[i].Init();

}

}



private void Start()

{

SpawnPiece();

}



public void SpawnPiece()

{

int random = Random.Range(0, this.tetrominoes.Length);

TetrominoData data = this.tetrominoes[random];



active.Initialize(this, spawnPosition, data);

Set(this.active);

}



public void Set(Piece piece)

{

for (int i = 0; i < piece.cells.Length; i++)

{

Vector3Int tilePosition = piece.cells[i] + piece.pos;

this.tilemap.SetTile(tilePosition, piece.data.tile);

}

}

}

tetrimino.cs

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.Tilemaps;



public enum Tetromino

{

I,

O,

T,

J,

L,

S,

Z,

}



[System.Serializable]

public struct TetrominoData

{

public Tetromino tetromino;

public Tile tile;

public Vector2Int[] cells { get; private set; }



public void Init()

{

this.cells = Data.Cells[this.tetromino];

}



}

board.cs

using System.Collections;

using System.Collections.Generic;

using UnityEngine;



public class Piece : MonoBehaviour

{



public Board Board {get; private set;}

public Vector3Int pos { get; private set; }

public TetrominoData data { get; private set; }

public Vector3Int[] cells { get; private set; }

public void Initialize(Board Board, Vector3Int pos, TetrominoData data)

{

this.Board = Board;

this.pos = pos;

this.data = data;



if(this.cells == null)

{

this.cells = new Vector3Int[data.cells.Length];

}



for( int i = 0 ; i < data.cells.Length; i++)

{

this.cells[i] = (Vector3Int)data.cells[i];

}







}



}



and data.cs is copy-pasted directly from the github, as instructed. If there's any extra information you need from unity itself, i'll do my best to find it. Thanks in advance!


https://redd.it/1hjoh5a
@r_Unity3D