UI Componenets On Modern Phones
on most modern phones the front facing camera is part of the screen, how can i make the ui elements so that they are under the camera, or just make the entire game/app under that section so that nothing is being covered by the camera? any guidance would be appreciated
https://redd.it/1i69bh2
@r_Unity3D
on most modern phones the front facing camera is part of the screen, how can i make the ui elements so that they are under the camera, or just make the entire game/app under that section so that nothing is being covered by the camera? any guidance would be appreciated
https://redd.it/1i69bh2
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Localization Helper
Hey!
I am using Unity's built-in localization tables to localize my strings and I have been pretty annoyed that Unity does not offer any tools to search for unlocalized strings. Instead you always have to manually create the localization entries and link them or use a custom prefab.
I created an editor extension to find all unlocalized strings within a scene and add the according string table entry all at once with custom settings. So all what's left to be done is hand-in the csv tables for translation.
The Asset is called "Localization Helper":
https://assetstore.unity.com/packages/tools/localization/localization-helper-305262
If you also forget to localize some strings repeatedly like me and need a tool like this, I would be glad to offer you a free version, since I need some testers and reviews. Just write me a PM!
BR
Processing img 3oi0z4amxaee1...
https://redd.it/1i6g870
@r_Unity3D
Hey!
I am using Unity's built-in localization tables to localize my strings and I have been pretty annoyed that Unity does not offer any tools to search for unlocalized strings. Instead you always have to manually create the localization entries and link them or use a custom prefab.
I created an editor extension to find all unlocalized strings within a scene and add the according string table entry all at once with custom settings. So all what's left to be done is hand-in the csv tables for translation.
The Asset is called "Localization Helper":
https://assetstore.unity.com/packages/tools/localization/localization-helper-305262
If you also forget to localize some strings repeatedly like me and need a tool like this, I would be glad to offer you a free version, since I need some testers and reviews. Just write me a PM!
BR
Processing img 3oi0z4amxaee1...
https://redd.it/1i6g870
@r_Unity3D
Unity Asset Store
Localization Helper | Localization | Unity Asset Store
Get the Localization Helper package from TortillaCake Studio and speed up your game development process. Find this & other Localization options on the Unity Asset Store.
Help with additional hitbox causing traps to instakill :(
https://preview.redd.it/g863khgg6cee1.png?width=1402&format=png&auto=webp&s=2fde5fd7b5ff81ebb954b4f0de2a7ee6e42d6638
So i have an additional hitbox i added to my characters head. I want this hitbox to not physically collide with any terrain, but I do want it to receive damage, which is why I've made it a trigger.
However, for some reason adding the additional head hitbox this makes all my traps stop working (my character dies even if any of its 2 hitboxes collide with any "trap" tagged object, no matter the conditions.
For example, the trap to the right of the image should only kill the player when its activated and fire comes out of it, and the bear trap should only kill the player when its activated, has a delay of 0.5, and the player is still in its hitbox, however with the addition of the head hitbox to my character both of these traps instakill my player when it goes into the hitbox.
This instakill issue is the same with other traps. idk why but im like 99% sure its to do with my death noscript code.
Ive since removed all the code i did for the head collider (Code V2) to try and make it work and reverted to my old code. Currently all the collider does with my old code (Code V1) is not collide with any terrain (good), keep traps working normally with body (good) but have traps not kill player if touched by head (bad).
How do i fix plzzz been at this a while lol.
CODE V1 (OLD CODE) ----------------------------------------------------------------------------------
CODE V2 (NEW CODE IVE SINCE DELETED CUZ TRAPS INSTAKILL BODY OR HEAD) ------------------------
https://redd.it/1i6hdwt
@r_Unity3D
https://preview.redd.it/g863khgg6cee1.png?width=1402&format=png&auto=webp&s=2fde5fd7b5ff81ebb954b4f0de2a7ee6e42d6638
So i have an additional hitbox i added to my characters head. I want this hitbox to not physically collide with any terrain, but I do want it to receive damage, which is why I've made it a trigger.
However, for some reason adding the additional head hitbox this makes all my traps stop working (my character dies even if any of its 2 hitboxes collide with any "trap" tagged object, no matter the conditions.
For example, the trap to the right of the image should only kill the player when its activated and fire comes out of it, and the bear trap should only kill the player when its activated, has a delay of 0.5, and the player is still in its hitbox, however with the addition of the head hitbox to my character both of these traps instakill my player when it goes into the hitbox.
This instakill issue is the same with other traps. idk why but im like 99% sure its to do with my death noscript code.
Ive since removed all the code i did for the head collider (Code V2) to try and make it work and reverted to my old code. Currently all the collider does with my old code (Code V1) is not collide with any terrain (good), keep traps working normally with body (good) but have traps not kill player if touched by head (bad).
How do i fix plzzz been at this a while lol.
CODE V1 (OLD CODE) ----------------------------------------------------------------------------------
using System.Collections;using UnityEngine;using UnityEngine.SceneManagement;public class Death : MonoBehaviour{private Rigidbody2D rb;private Animator anim;[SerializeField] private AudioSource deathSoundEffect;private bool isPlayerAlive = true;private void Start(){rb = GetComponent<Rigidbody2D>();anim = GetComponent<Animator>();}private void OnCollisionEnter2D(Collision2D collision){if (isPlayerAlive && collision.gameObject.CompareTag("Trap")){Die();}}public void Die(){if (isPlayerAlive){isPlayerAlive = false; rb.bodyType = RigidbodyType2D.Static; anim.SetTrigger("death"); deathSoundEffect.Play(); StartCoroutine(RestartLevelAfterDelay(2f));}}private IEnumerator RestartLevelAfterDelay(float delay){yield return new WaitForSeconds(delay);SceneManager.LoadScene(SceneManager.GetActiveScene().name);}}CODE V2 (NEW CODE IVE SINCE DELETED CUZ TRAPS INSTAKILL BODY OR HEAD) ------------------------
using System.Collections;using UnityEngine;using UnityEngine.SceneManagement;public class Death : MonoBehaviour{private Rigidbody2D rb;private Animator anim;[SerializeField] private AudioSource deathSoundEffect;private bool isPlayerAlive = true;private void Start(){rb = GetComponent<Rigidbody2D>();anim = GetComponent<Animator>();}private void OnCollisionEnter2D(Collision2D collision){if (isPlayerAlive && collision.gameObject.CompareTag("Trap")){Die();}}private void OnTriggerEnter2D(Collider2D other){if (isPlayerAlive && other.CompareTag("Trap")) // Ensure traps are tagged as "Trap"{Die();}}public void Die(){if (isPlayerAlive){isPlayerAlive = false; rb.bodyType = RigidbodyType2D.Static; anim.SetTrigger("death"); deathSoundEffect.Play(); StartCoroutine(RestartLevelAfterDelay(2f));}}private IEnumerator RestartLevelAfterDelay(float delay){yield return new WaitForSeconds(delay);SceneManager.LoadScene(SceneManager.GetActiveScene().name);}}https://redd.it/1i6hdwt
@r_Unity3D
I finally got 1,300 wishlists for my puzzle game! It took a long time, and I almost gave up on this game. After updating the graphics and level design of my demo, and keeping up with posts on Reddit, I finally achieved it!
https://redd.it/1i6jgwp
@r_Unity3D
https://redd.it/1i6jgwp
@r_Unity3D
Newbie struggling
I'm new to all of this and was watching a tutorial for beginners. I'm trying to make a flappy bird Esque game, but for the love of God I can't make this stupid bird jump when pressing the spacebar. I tried using chatGPT for help but got even more confused.
This is the code I'm working with rn:
public class birdnoscript : MonoBehaviour
{
public Rigidbody2D myRigidBody;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Space)){
myRigidBody.linearVelocity = Vector2.up *10;
}
}
}
Please help a brother out
https://redd.it/1i6ol9o
@r_Unity3D
I'm new to all of this and was watching a tutorial for beginners. I'm trying to make a flappy bird Esque game, but for the love of God I can't make this stupid bird jump when pressing the spacebar. I tried using chatGPT for help but got even more confused.
This is the code I'm working with rn:
public class birdnoscript : MonoBehaviour
{
public Rigidbody2D myRigidBody;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Space)){
myRigidBody.linearVelocity = Vector2.up *10;
}
}
}
Please help a brother out
https://redd.it/1i6ol9o
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Fans of classics and bullet hell, are you here? I'm creating a roguelike with Metroidvania elements, dungeons crawling with monsters, and a mix of quality graphics and story. But I'm always open to fresh ideas!
https://www.youtube.com/watch?v=fdCBMTRdXrI
https://redd.it/1i6qu3w
@r_Unity3D
https://www.youtube.com/watch?v=fdCBMTRdXrI
https://redd.it/1i6qu3w
@r_Unity3D
YouTube
Rusty Rangers Trailer 2024
First game/project
I feel like this is the most generic question, but what should my first game/project be if I am just starting out with game development? I have watched a few CodeMonkey tutorials and have a small understanding of what Unity is. Probably a 0% chance of it happening in the next 5 years, but my end goal would be creating a small RPG (and yes, I know this is too big of a scope for a solo developer, etc.).
https://redd.it/1i6wscz
@r_Unity3D
I feel like this is the most generic question, but what should my first game/project be if I am just starting out with game development? I have watched a few CodeMonkey tutorials and have a small understanding of what Unity is. Probably a 0% chance of it happening in the next 5 years, but my end goal would be creating a small RPG (and yes, I know this is too big of a scope for a solo developer, etc.).
https://redd.it/1i6wscz
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Installing .apk
Hi guys,i have a question...i made a game in unity,but when i send it to phone it opens as archive,and then i have to use winrar to go one level back and then i can install it,how to make it install on itself?Do i have to click something when buildiing the apk?
https://redd.it/1i72jdf
@r_Unity3D
Hi guys,i have a question...i made a game in unity,but when i send it to phone it opens as archive,and then i have to use winrar to go one level back and then i can install it,how to make it install on itself?Do i have to click something when buildiing the apk?
https://redd.it/1i72jdf
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Need help making enemies explode and bones fly out that have physics. ( player touches and they move )
Hey all! I need help with a problem. So I kill enemies and I want on their death for them to explode and bones fly out. I already have the bones objects, and they already die, etc etc.
The only thing I am missing is how to make it to where on death the bones fly out of them and hit the ground. I want them to be able to be moved. So when the Player walks over them they kinda roll around and move with the player if that makes sense.
I think this might be doable with the particle system maybe? Any guidance would be awesome!
https://redd.it/1i74bx7
@r_Unity3D
Hey all! I need help with a problem. So I kill enemies and I want on their death for them to explode and bones fly out. I already have the bones objects, and they already die, etc etc.
The only thing I am missing is how to make it to where on death the bones fly out of them and hit the ground. I want them to be able to be moved. So when the Player walks over them they kinda roll around and move with the player if that makes sense.
I think this might be doable with the particle system maybe? Any guidance would be awesome!
https://redd.it/1i74bx7
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community