r/Unity3D – Telegram
r/Unity3D
262 subscribers
12.6K 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
romance system (?)

hi!! i’m like a completely new beginner to unity and i’m trying to make a top down rpg with a lot of visual novel elements..

is there a way to make like a romance/friendship system when it comes to dialogue?? like if i chose this option then its +1 friendship or if i chose this it’s -1 friendship.. and can it affect future interactions??

i’m more used to python so im not at all good with noscripting c#.. i kinda only went into this project with the ability to draw and animate.. help and advice is very much appreciated

https://redd.it/1pp6pr0
@r_Unity3D
So I’m making a 2D game in unity and so far because I don’t want to use external apps to do sprites I created my own sprite editor inside Unity 👀
https://redd.it/1pp9bn6
@r_Unity3D
So I’m making a 2D game in unity and so far because I don’t want to use external apps to do sprites I created my own sprite editor inside Unity 👀
https://redd.it/1pp9b5j
@r_Unity3D
error CS1503: Argument 1: cannot convert from 'void' to 'string'

I've been following a youtube tutorial for using Inky (dialogue code program) for making choices and a dialogue system in Unity, and am currently getting this error in my dialogue manager c#:
error CS1503: Argument 1: cannot convert from 'void' to 'string'

Below is the code entirely, but its specifically for the block 94 (private void continue story), specifically line 105. I would appreciate any help or advice at all, I'm super new to Unity and its lingo, and have fiddled around with what it might be to no avail.

The specific code section:

private void ContinueStory()
{
if (currentStory.canContinue)
{
// set text for the current dialogue line
dialogueText.text = currentStory.Continue();
// display choices if any for this dialogue line
DisplayChoices();
}
else
{
StartCoroutine(ExitDialogueMode());
}


}


The entire code file:

using UnityEngine;
using TMPro;
using Ink.Runtime;
using System.Collections.Generic;
using System.Collections;
using UnityEngine.EventSystems;


public class DialogueManager : MonoBehaviour
{
Header("Dialogue UI")


SerializeField private GameObject dialoguePanel;


SerializeField private TextMeshProUGUI dialogueText;


Header("Choices UI")


SerializeField private GameObject choices;


private TextMeshProUGUI choicesText;


private Story currentStory;


public bool dialogueIsPlaying;


private static DialogueManager instance;



private void Awake()
{
if (instance != null)
{
Debug.LogWarning("Found more than one Dialogue Manager in the scene");
}
instance = this;
}



public static DialogueManager GetInstance()
{
return instance;
}


private void Start()
{
dialogueIsPlaying = false;
dialoguePanel.SetActive(false);


// get all of the choices text
choicesText = new TextMeshProUGUIchoices.Length;
int index = 0;
foreach (GameObject choice in choices)
{
choicesTextindex = choice.GetComponentInChildren<TextMeshProUGUI>();
index++;
}
}


private void Update()
{
if (!dialogueIsPlaying)
{
return;
}


if (InputManager.GetInstance().GetSubmitPressed())
{
ContinueStory();
}


// handle continuing to the next line in the dialogue when submit is pressed
if (currentStory.currentChoices.Count == 0 && InputManager.GetInstance().GetSubmitPressed())
{
ContinueStory();
}
}


public void EnterDialogueMode(TextAsset inkJSON)
{
currentStory = new Story(inkJSON.text);
dialogueIsPlaying = true;
dialoguePanel.SetActive(true);


ContinueStory();
}


private void ExitDialogueMode()
{
dialogueIsPlaying = false;
dialoguePanel.SetActive(false);
dialogueText.text = "";
}


private void ContinueStory()
{
if (currentStory.canContinue)
{
// set text for the current dialogue line
dialogueText.text = currentStory.Continue();
// display choices if any for this dialogue line
DisplayChoices();
}
else
{
StartCoroutine(ExitDialogueMode());
}


}


public void MakeChoice(int choiceIndex)
{
currentStory.ChooseChoiceIndex(choiceIndex);
ContinueStory();
}


private void DisplayChoices()
{
List<Choice> currentChoices = currentStory.currentChoices;


// defensive check to make sure our UI can support the number of choices coming in
if (currentChoices.Count > choices.Length)
{
Debug.LogError("More choices were given than the UI can support. Number of choices given: " + currentChoices.Count);


}


int index = 0;
// enable and initialize the choices up to the amount of choices for this line of dialogue
foreach(Choice choice in currentChoices)
{
choicesindex.gameObject.SetActive(true);
choicesTextindex.text = choice.text;
index++;
}
// go through the remaining choices the UI supports and make sure they're hidden
for (int i = index; i < choices.Length; i++)
{
choicesi.gameObject.SetActive(false);
}


StartCoroutine(SelectFirstChoice());
}



private IEnumerator SelectFirstChoice()
{
// Event System requires we clear it first, then wait
// for at least one frame before we set the current selected object
EventSystem.current.SetSelectedGameObject(null);
yield return new WaitForEndOfFrame();
EventSystem.current.SetSelectedGameObject(choices0.gameObject);


}


//public void MakeChoice(int choiceIndex)
//{
// currentStory.ChooseChoiceIndex(choiceIndex);
//}
}

I've researched a bit and can't figure it out. Here is the tutorial i've been following as well https://www.youtube.com/watch?v=vY0Sk93YUhA&list=LL&index=16&t=1524s

Thank you for any help TvT

https://redd.it/1ppd5c3
@r_Unity3D
Is Using Float for Money in Unity a Bad Idea?

Hello,
In games like Supermarket Simulator, House Flipper, and similar noscripts, are in-game currency, product costs, and other economic values usually stored as float, or as int / long?

I’ve been developing a game for about two months, and currently all of my economy calculations are handled using float. I’ve tried to avoid floating-point precision issues as much as possible by using functions like Mathf.Max and Mathf.Round.

However, do you think using float for money is a mistake?
Would it have been better to store currency as int or long, for example by representing money in cents?

How is money typically handled in simulator games, especially in Unity?



https://redd.it/1pp9l4m
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
I made Game of Life in Unity in 60 seconds with AI Game Developer
https://redd.it/1ppmu0g
@r_Unity3D
As an Asset Store publisher, frequent updates didn’t improve discoverability — is this expected?

I maintain a few assets on the Unity Asset Store and I’ve been trying to do the “right” thing by pushing regular updates that actually add value, not just bug fixes.

What surprised me is that updating doesn’t seem to change anything in terms of visibility or sales. The asset doesn’t resurface anywhere, most users don’t even notice the update, and traffic basically stays the same.

Meanwhile it looks like brand-new releases, heavy discounts, or spinning the same tool into a separate “v2” asset get way more exposure.

From both a publisher and a user point of view, this feels kind of backwards. It almost discourages long-term maintenance and encourages throwing out new SKUs instead.

For people who’ve been around the Asset Store longer (publishers or power users): is this just how the store is designed, or am I missing something obvious?

https://redd.it/1ppln8n
@r_Unity3D
Unity Enterprise Minimum Commitment Program

https://mobilegamer.biz/unity-risks-fresh-backlash-with-new-fee-demands-this-feels-like-blackmail

I’m a freelance dev who earns about $35K/yr from one of my clients, building a free medical app for a big healthcare company.

Unity’s rules say that if you develop for a client, their revenue counts as yours — so because the company makes $250M+, Unity says I’m not allowed to use Personal and should be on Enterprise/Industry pricing.

Now rumors say Unity wants six-figure minimum fees for Enterprise clients.

In my case if this new fee goes into place my client would need to pay for 2 million in Unity services.

My client compains about paying me $35K, let alone $250K+ for licenses.
The app makes zero revenue.
So I basically can’t use Unity at all anymore.



https://redd.it/1ppqumd
@r_Unity3D
Want to make my own pixel art rpg game one day, where to start?

I have the smallest amount of coding experience, if you can even call it that, but forgot most of it so im basically a blank slate, I have access to quite alot of software thanks to school and would love to lean how to start coding for video games my end goal making a pixel art rpg game inspired by many other of my favorite games. I was wondering where the best place to start is, I already asume its coding, but I have no idea what resources to use.

https://redd.it/1ppxor5
@r_Unity3D
Turn your own images into on-style game assets (Reference Image)

We added **Reference Image** to [Gametank ](https://www.gametank.com/)(2D asset generator).
Upload your own image (person, pet, prop, mark) and get a **style-matched output** aligned to your workflow selections (genre, art style, palette, perspective).

**Why this helps for games**

* **Engine-ready PNGs**: transparent backgrounds where appropriate (sprites, items, UI), plus consistent **centering, padding, and tile sizes**—drop results straight into your project.
* **On-model sets**: it’s easier to make 10–20 assets that actually match; “Repeat setup” keeps style/palette/perspective locked across runs.
* **Prompt-only edits** also preserve transparency, so you can make small pose/color tweaks without cleanup.

**How it works (final step)**

1. Finish your usual workflow
2. **Upload reference** (PNG/JPG ≤ 5 MB)
3. Short prompt → **Generate**

*Disclosure: I’m one of the makers—happy to answer any questions you may have.*

https://redd.it/1pq0m4c
@r_Unity3D
Made my own Sprite Editor tool for unity 👀
https://redd.it/1pq1jav
@r_Unity3D
Asking advice: video clip playback on WebGL build

So, got this super simple game consisting of 2 scenes. First scene: intromovie.mp4. Second scene: the demo.

Normal PC build works fine. Ok not something I am totally happy, but it starts up and does things. Intro scene first, plays video. Automatically followed by game scene with "start game button". Good enough for now.


Alas!, the webgl build runs only when i build only the gamescene. I just cant get the intro scene work. I try out different things, and at best i see backroud and a pink square. If i build with introscene and gamescene, game just freezes after unity logo and shows basic blue backroud.

The introscene has few things: main camera, canva + child object to hold video component + some sort of noscript AI game to autoplay the video on scene start. Basicly, this is the simplest thing I done on my 4 weeks with unity. Should work! :D


But it does not work. There must be something very basic I am doing wrong or forgetting. I just cant find info on net what it could be. I would have asked unity forums but yeh its not available now.


Thanks and kudos for all you guys who answer us l33t n00bs.

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