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
Which parallaxing solution should I use?

So I have spent over 7 hours now reading posts, articles, documentation and I just cant figure out the right way to go about this. And I want to minimize future work if I can. Basically I don't want to do it one way only to find a limitation months down the road and have to switch systems.

I know there are many different solutions that work for different projects. I just dont know whats best for mine. My game is a side scrolling physics based platformer. Think Hill climb mixed with Dave the Diver, the levels will be quite large with 1000's of sprites. Levels can be large both vertically and horizontally. I want to have control on blurring layers based on "distance". I am using Unity 6 btw. This is going to be PC game, but I am trying to leave the possibility of a mobile port.

I see 4 main options

1. Move the transform of background and foreground objects. Within this i see multiple approaches. A. Move transforms based on Z axis B. Move transforms based on Sorting layer, and then order in layer C. Move transforms based on an attached noscript that has a movement value on it.
2. Have multiple Ortho cameras that have culling masks for individual layers of background and foreground.
3. Use a perspective camera.

4 .Use and Ortho camera for the main layer where the player moves, and a perspective cam for background and foreground

I feel like the best thing to do is 1B since the rendering will be done based on sorting layers, it makes sense to tie that to the parallax. But I like the intuitiveness of 1A because I can just move the Z Axis in editor and it makes sense to my 3D evolved brain. But for some reason moving the position of 1000s of objects just feels wrong. Also with really large levels, it sort of becomes very difficult to know where the foreground objects will be once the camera moves all the way over there. So for that reason I want to go with an approach that does not involve moving the actual transforms. But there are concerning cons with each of those.

\#2 Multiple ortho cameras, feels too limiting, I would not be able to have fine control of lots of depth, I would be limited to the number of cameras. And I have read that there are performance issues with this.

\#3 Perspective cameras, I belive have jittering, and other visual artifacting issues when working with 2d sprites, like black outlines, and then issues with planning the scene.

I have not found much info on #4 I am not sure if that is the sweet spot.

https://redd.it/1hvdkyn
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
After many hours of hard work Cats vs Cthulhu is out on Steam. Have fun!
https://redd.it/1hvdhli
@r_Unity3D
Is unity good for short commisions?

i have 2 years of experience in unity and 6 months in Roblox. i want to switch to unity again because i like unity more and i think i will get clients that are serious unlike roblox where most of my clients are scammers or not giving the money agreed upon.

i dont want a full time job. i just want to make a side hustle (3-10$ a day) while having fun with game making. do you guys think unity would be a better option for short noscripting commissions?

https://redd.it/1hvfbde
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
Leaf Hero: The Leaf Physics and 3D Pixel Physics have been combined. Using the C# Burst Compiler & Unity's Graphics API, I developing a programmable physics based particle system


https://redd.it/1hvhna1
@r_Unity3D
Input Script Error Help

I am following a tutorial for making my character move and I'm starting to understand all of this better. But, inevitably, I type exactly what he types and it doesn't work. Specifically: it doesn't like when I type in .x or .y as a vector. I figure there was some change like having to put "angularVelocity" instead of "velocity." Any help would be appreciated.

https://preview.redd.it/tgtrt8d06ibe1.png?width=1984&format=png&auto=webp&s=e6953cba8c99f0379a344ff96e8a093c484adc12



https://redd.it/1hvjrtf
@r_Unity3D
Building Player Failed

Hello,
I'm making a game in 2D Unity that fails to build when I try to. I'm building it as WebGl and it returns to the console an error message only saying it failed after so long and "Building Player Failed". There is no other errors or warnings. I havnt imported anything other than assets like spritesheets and fonts, and I havnt touched the Player settings at all. It builds fine when I build it for Windows. Why could this error be occurring?

https://redd.it/1hvj3jv
@r_Unity3D
Trying to create a desktop capybaras game where you can pet & grow virtual capybaras right under your desktop screen.
https://redd.it/1hvlpyi
@r_Unity3D
How do you make an ongoing floor?

Hello!

I am very new to Unity and video game art / development in general, and I'm trying to create a ground that is ongoing. However, whenever I look it up online, I only get results for backgrounds using parallax, but I don't think that's what I'm looking for. It's not the background, but the FLOOR that I'm trying to create right now.

Below is what I have so far, but I want to make the floor go on for a specified amount without needed to make an absurdly large sprite considering that it is just tile. I know there is a way to do this (at least I would assume so!) I just don't know how or where to find the information on how to do so. If anyone knows any resources or can just tell me how to do so that would be great!

https://preview.redd.it/tgg1topimgbe1.png?width=1750&format=png&auto=webp&s=8542f5ae5a8cfda12444d8f3bb610a762713a611



https://redd.it/1hvdkia
@r_Unity3D
My game works in the editor but not in the build


I opened the project in Unity 6.0023 and then continued the project in 6.0030 When I bought the build to the project, it was running smoothly when I bought the build, I added localization and unity event and save system to the game, it works smoothly in the editor, but whenever I build and run the game, the game freezes when I am on the logo screen and the program stops responding and closes, I turned off the save system and bought the build again, the same problem continues, I could not solve the problem because I did not get an error on the console, I do not have a code that runs on the start or awake on the menu screen, so what could be the problem?

https://redd.it/1hvqsye
@r_Unity3D
Looking for a coding partner

Hi everyone,

I’m fairly new to game development and coding, with about 7–8 months of experience. I’ve been coding almost every day during this time and have joined several communities on Reddit and Discord. However, I still feel like I’m missing that small, close-knit group of people to collaborate with—people who are also starting out or willing to share their experience.

I’d love to form a team where we can work on projects together, discuss ideas daily, and help each other grow in this exciting but competitive field. Whether you’re a beginner like me or someone more experienced looking to mentor, feel free to reach out! Let’s create a few games, share knowledge, and build our skills together.

A little about me:

* I’m based in Europe and work full-time, so I usually dedicate my evenings to personal projects.
* I’ve followed several Unity tutorials and created a few C# apps for both personal and professional use.
* My current project is an office simulator where I’m recreating my workplace environment.

If this resonates with you, don’t hesitate to DM me. Looking forward to connecting with like-minded people!

https://redd.it/1hvqexs
@r_Unity3D
Android App mit Adventure Creator?

Hello everyone, I have been working with Adventure Creator for a long time and would like to publish my projects as an Android app. Does anyone have experience with this process? I know that this is theoretically possible, but I don't know whether or how you can bundle several games in one app and how well updates can be carried out. Does anyone know anything about this topic?

https://redd.it/1hvt0yt
@r_Unity3D
DragandDrop Issue

“I have three objects placed side by side in Unity. Each object has the following code attached to it for drag-and-drop functionality. However, when I click on the middle object, it always selects the object on the left or right instead. After I move the left or right object, I can then grab the middle one. How can I fix this issue?”

https://redd.it/1hvs7lo
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
I need help with the jiggery look of the player!!! HOW TO FIX?
https://redd.it/1hvw0on
@r_Unity3D
Code Not recognized in IDE
https://redd.it/1hw0f47
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
I'm working on a cozy city builder that lets you build European-style old towns

https://redd.it/1hvteoq
@r_Unity3D
New unity 6 feature: improved crashing capabilities
https://redd.it/1hvr1ko
@r_Unity3D
cant pause/unpause audio on scene load.

I'm making a game with background music that I put and it works fine, but when the character in the game dies, the scene resets, and so does the background music. I used the following code on the parent that holds the music:

private static audioScript instance;

void Awake()

{

if (instance == null)

{

instance = this;

DontDestroyOnLoad(gameObject);

}

else

{

Destroy(gameObject);

return;

}

}

this works by not resetting the music on scene load, but I also want the player to be able to pause or unpause it at any given time. but as soon as the first scene reload since game start, its like you cant change it what so ever. this made my so confused and frustrated for while and I need help to fix it.

if the fix is really easy and I have made yall disappointed, i'm sorry, I just started unity, give me a break, lol.

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