Hello! There is no option for me to drag the text in to the script? Do you know what i may did wrong? The screenshot of my code: gyazo.com/81928108d4936498d26fbe96fd339dfd
for anyone who uses the TextMeshPro text and cant drag the text box from the hirarchy to the script in the inspector its because of the "public Text coinsText;" that uses normal text default to unity so it wont work with textmesh pro, to fix this replace that line with "public TextMeshProUGUI coinsText;" this should work and allow you to connect the text to the script. forgot to mention that you also need to put "using TMPro;" at the top of the script
I like how you showed and explained the code. Most people just show it, but then they don't explain it. I frequently use JavaScript but I don't know this language. Thanks.
Correction: I meant 10^308, or 1e308. Not 1^308. Please, before you comment on any of these videos if you are having issues, try three things: 1. Troubleshoot 2. Watch the tutorial and do not skip any part of it. 3: Google I love helping but most of the problems come from not watch the full tutorials. So please be sure to watch them! It’s better to rewatch and google the problem or errors that you get because you might find an answer online faster than when I respond. Thanks!
Thanks a lot, this helped me view how to link things. So far it's not an idle game, it's a clicker one, but that can change. I also now know why the idle games use that scientific notation, because that way you can keep your increment and total variables under control and just reshuffle them into smaller numbers with bigger sideways notations without stepping out of the whole Double declaration.
I’ve been dying to make an decent unity game and got super confused with trying to do anything in 3D so I thought hmmm... AHH An idle clicker game. That seems simple enough. Little did I know there would be a series for this “simple” thing I thought of.
That's probably because of how I set up my visual studio settings, make sure this is not in visual studio code, but community edition. VS is also buggy sometimes.
I had the same problem for months and fixed it today. Go into Unity, Click edit -> preferences -> then next to "External Script Editor" hit the "Open by file extension" And click "Visual Studio (Whatever year and etc.)" Then it should work. Make sure you exit Visual Studios then go back in it after you did that and everything should pop up the correct color. Lmk if you need anything else or have any problems with it.
Look forward to seeing what this tutorial brings, the volume is a little low, have you considered doing episodes focusing on how to implement certain mechanics from well known clicker games, like Acension/rebirth or Items and so on on a per episode / part x-y format. Thanks for the cool tutorial.
Yes, rebirth will be soon. Episode 5 in fact, I've been super busy but I have the video recorded. However, I'm not sure if I understand the part x-y format and what type of items.
@@ConsideraCore Just ment like Rebrith part 1 of 3 for example if its was a more complex mechanic, was poorly formulated, and look cool i'll look forward to the updates
Be sure to like subscribe and turn on notifications! Check out the Unity Idle Game Tutorial Series to learn how to make an awesome idle game in Unity! th-cam.com/play/PLGSUBi8nI9v-a198Zu6Wdu4XoEOlngQ95.html Check out the C# Crash Course Series for even more in depth explanations on C#! th-cam.com/video/za6mFdcyACQ/w-d-xo.html
using UnityEngine.UI isn't being recognized and therefore public Text doesn't get the green color and that messes the whole thing up. I can't seem to figure out what you did differently.
might want some other patreon options. cause if the only option is 15$ what if they just wanna do 3-5$ and get like a discord role or something? or like a 10$ where they can request a game per month or something
I don't know why but I laughed when you removed Start() and Update() saying we wouldn't need them just yet only to almost immediately put them back in LOL
I followed all of the code in the tutorial but it doesn't let me drag the coins into the area where its supposed to be dragged. Also, MonoBehaviour isn't colored in.
Restart your VS if you are using it, if not make sure to install visual studio community edition and set it as the default script editor in unity stackoverflow.com/questions/48690453/change-default-ide-in-unity also not sure what you mean by "coins" do you mean "coinsText"? if so make sure your text is actually a ui text and not a TMPro text, if it is, replace public Text with Public TextMeshPro_Text or something like that and make sure to import the TMPro namespace (using TMPro)
Hi there! Thanks so much for this vid. Question: I got 2:37 and created a text thingo and it was not movable on my screen like it is for yours.... Any idea why? Maybe because I'm on free version?
I have a problem, when I click on the text the canvas outline behind it closes so I can resize/place it where I wont without back and forth clicking between canvas and text. How do I fix this
Subbed! Waiting for more tuts like this :D And after Idle Game finished, can u make a game like Boom Beach or Clash of Clans there is no tuts for those.
Hello! Thanks! I would really like to make a tutorial on that subject but my skill level isn't close to those types of games, hopefully I'll learn someday in the future!
Also, wounder if scriptable objects could help with a clicker/incremental game? been trying to see if it does but can't figure out how to do it even watching the unity conference video on this topic.
@@ConsideraCore I actually just created this script which is a scriptable object hatebin.com/ddhctufgmk and now i can right click and create any upgrade i want and reference it in any script aka this one hatebin.com/lsemmlcgzv - Scriptable Objects is really wicked!
@@ConsideraCore Scriptable Objects are amazing data containers. They don't need to be attached to a GameObject in a scene. They can be saved as assets in our project. Most often, they are used as assets which are only meant to store data, but can also be used to help serialize objects and can be instantiated in our scenes.
So i just watched a video on them and they seem really unique and useful and i like the concept! However, I don't think they are necessary in idle games, it seems like an extra step of unnecessary management. Although you could! If you are thinking about making an upgrade scriptable object, i would recommend using switch case and upgrade ids since it can be done in one script: public void BuyUpgrade(string upgradeID) { data.serverTreeString += upgradeID + ";"; switch (upgradeID) { case "clickUpgrade": // Buy click upgrade stuff break; case "productionUpgrade": // Buy production Upgrade stuff break; } } then for each button in the editor, you would assign it the certain ID you want to do, ex: "clickUpgrade".
for those having the same problem: there is an error somewhere in the code which you can see in the "console" tab, once you fix that they should appear
what if i want the size to be for bigger phones AND smaller phones, like ipads and phones or something? like you made its size good for 6s, but i wanna know how to make it compatible with all electronics basically
'Assets ewGAme.cs(7,12): error CS0246: The type or namespace name 'Text' could not be found (are you missing a using directive or an assembly reference?)' here is the line of code i used 'public Text CoinsText;'
I noticed that Unity hooks into MonoBehaviour methods such as Start and Update without regarding method visibility, so is there a good reason to make them public instead of private?
Thank you so much! Been looking to make an incremental for a while now, this looks perfect (: Also, when i add the objects, it shows on game view but not on scene view. Please help.
Most likely yeah, but use anchors properly and adjust the resolution like I did in the video and throughout all the videos. I will probably do a separate video on this eventually
For some reason its either i am doing something wrong or Visual Studio does not allow me to make Text variable. it just stays white colored (as well as "monobehaviour". So it appears in the unity object, but you can't link any stuff there
IBeToxic yes but you have to make a key in order to publish it, which I kinda forgot how to since it’s been 3 years since I made a new one. You’ll have to actually build it, before that install all the proper JDK stuff. I really advice you to look up a tutorial since it’s not easy to explain in comments and something I really don’t want to do right now till I make my own tutorial
@@ConsideraCore Can you make something where we can just control C and Control V cuz i kinda messed up the code and i dont want to go back in the tutorial redo so pls
did you skip to the end? if so, you need to make sure you assign your game objects to your script which i show how to do in the video. if not, same thing lol
pls help i have a error, error CS1061: 'Text' does not contain a definition for 'Text' and no accessible extension method 'Text' accepting a first argument of type 'Text' could be found (are you missing a using directive or an assembly reference?) i dont know how to fix this
I Fixe it but now i Have a new error UnassignedReferenceException: The variable MoneyText of script_click has not been assigned. but i already dragged the text into the script
I just downloaded Unity and in the "Scene" area, nothing appear after creating text or buttons. Is there a way to change that? (Sorry if my english is not the best)
It is because TextMeshPro is not the same as Text. in the code, make sure you have the "using TMPro;" namespace. and replace all "Text" with "TMP_Text"
@@ConsideraCore Tysm for the quick response! Very helpful ☺️ Also I'm sorry that my question might sound a little unknowing and admittedly that's because I simply am lol. Thank you for not letting that stop you from helping others. :))
it's been awhile since I've coded anything and this is a good tutorial I just don't understand why I can have the exact same same code and program right down to the variables and still get this: NullReferenceException: Object reference not set to an instance of an object IdleTutorialGame.Update () (at Assets/IdleTutorialGame.cs:23) Any ideas?
Yeah I say that and then I end up making a longer video than expecting lol. If you don’t understand something or anything, rewatch the video, ask questions, or use google =]
For some reason Visual Studio won't recognize my UI when I put .UI after UnityEngine. It recognizes my text components but did not come up with anything when I typed .UI. I no very little coding so I don't really know how else to explain it. Any help would be appreciated
awe....was hoping for this tutorial to go into 1e+177? and also showing us how to do number smashing no other tutorials do this guess its alot of math....
Episode 4 goes to 1e5, i have an episode that requires a third party script planned where numbers can go to 1e(9e15) (9e15 digits basically) so yeah we will get there!
Oh, letter notation, I'm not a fan of it since scientific is easier to read, I did scientific notation on episode 4. If you wanted to do it, if (coins >= 1e3) coins.text = (coins / 1e3).ToString("F2") + "K"; if (coins >= 1e6) coins.text = (coins / 1e6).ToString("F2") + "M"; if (coins >= 1e9) coins.text = (coins / 1e9).ToString("F2") + "B"; I haven't figured out a system for myself to make this process easier, but again, I wouldn't recommended this notation since it's unreadable past 1e25ish (I'm still using scientific in this comment lol)
Hello awesome coders! Be sure to leave a like, subscribe, and turn on future notifications! :D
Question of the video: Favorite video game genre?
CalumPlays make sure you set up the canvas right, you most likely messed up setting up the canvas and creating the UI in the canvas
Hello! There is no option for me to drag the text in to the script? Do you know what i may did wrong?
The screenshot of my code: gyazo.com/81928108d4936498d26fbe96fd339dfd
@@tdr3897 You forgot using UnityEngine.UI; at the top
whenever I try changing the amount of "Coins" eg: to 12 the value dosent come up. What do I do?
favorite video game: cs:go
I know absolutly nothing about coding and and wanting to learn. Glad this is the video youtube recommended me first because it is explained very well.
Unity should put this video on their download page. I don't think anyone can get a beginner started faster than this. Thank you!
Rumours say that the ancient one still hearts comments
The rumours are true !
@@kennyl4962 :D
for anyone who uses the TextMeshPro text and cant drag the text box from the hirarchy to the script in the inspector its because of the "public Text coinsText;" that uses normal text default to unity so it wont work with textmesh pro, to fix this replace that line with "public TextMeshProUGUI coinsText;" this should work and allow you to connect the text to the script. forgot to mention that you also need to put "using TMPro;" at the top of the script
Profile so thats the older version, now it’s TMP_Text
thanks
This for some reason is the only tutorial that ever worked for me. Great job man
Thank you!
I like how you showed and explained the code. Most people just show it, but then they don't explain it. I frequently use JavaScript but I don't know this language. Thanks.
Thanks a lot bro, this is the only tutorial that worked for me, because you actually explained what the code was doing
It's a wonder what you can do in just 12 minutes. This is great! :)
Correction: I meant 10^308, or 1e308. Not 1^308.
Please, before you comment on any of these videos if you are having issues, try three things:
1. Troubleshoot
2. Watch the tutorial and do not skip any part of it.
3: Google
I love helping but most of the problems come from not watch the full tutorials. So please be sure to watch them! It’s better to rewatch and google the problem or errors that you get because you might find an answer online faster than when I respond. Thanks!
I caught that too ^^
Thanks a lot, this helped me view how to link things. So far it's not an idle game, it's a clicker one, but that can change. I also now know why the idle games use that scientific notation, because that way you can keep your increment and total variables under control and just reshuffle them into smaller numbers with bigger sideways notations without stepping out of the whole Double declaration.
Simple, clear and easy to understand...
You just earned yourself a new subscriber and discord member!
Welcome to the club!
hello, ive never used unity before or made a game at all tbh. it wont let me drag my text into the script (8:25) so what can i do to fix that?
I really love your style of teaching!
Really good tutorial helping me lots in my college classes :) no clue how this hasn’t got more views
cant do step 8:18, its not found the script
this is the first tutorial that actually worked for me!
It took me a few days with zero C# programming experience and some questions to the Discord server, but hello from the other side. Thanks!
Thank you very much brother, i learning so much in your video
Really useful, I look forward to working my way through this course! :D
Tbvfh, this man has some serious dedication to his fans and followers, still seeing comments and responding just like the day he uploaded. 😃
:D
I’ve been dying to make an decent unity game and got super confused with trying to do anything in 3D so I thought hmmm... AHH An idle clicker game. That seems simple enough. Little did I know there would be a series for this “simple” thing I thought of.
:D I would recommend checking out the new 2021 series i am working on though, as it will have better code and it’s more up to date :)
@@ConsideraCore Wow thanks for informing me about that! And for responding pretty much as soon as I posted that comment.
Thank you for the tuto, just starting and this simple video was enough to help me get started ! :)
This is a great substitute for my game dev club
When i do "public Text goldtext;"
the "Text" is white for me and doesnt do anything and for you its like different color
That's probably because of how I set up my visual studio settings, make sure this is not in visual studio code, but community edition. VS is also buggy sometimes.
I think it’s cuz you need to connect visual studio and the way unity codes or something
I had the same problem for months and fixed it today. Go into Unity, Click edit -> preferences -> then next to "External Script Editor" hit the "Open by file extension" And click "Visual Studio (Whatever year and etc.)" Then it should work. Make sure you exit Visual Studios then go back in it after you did that and everything should pop up the correct color. Lmk if you need anything else or have any problems with it.
@@courtneyy2604 Thank you! Fought with this for several hours before finding your comment and immediately fixing the problem.
best of best love u. If i like your other videos on this serie im gona patreon you so hard lol
Onur - kun I hope you enjoy them, I tried my best! :D
Thank you! Im starting with unity and dont know much and this really helped!
I just watched the vid and i already know you will help me a lot with this tutorial! Thx
Look forward to seeing what this tutorial brings, the volume is a little low, have you considered doing episodes focusing on how to implement certain mechanics from well known clicker games, like Acension/rebirth or Items and so on on a per episode / part x-y format. Thanks for the cool tutorial.
Yes, rebirth will be soon. Episode 5 in fact, I've been super busy but I have the video recorded. However, I'm not sure if I understand the part x-y format and what type of items.
@@ConsideraCore Just ment like Rebrith part 1 of 3 for example if its was a more complex mechanic, was poorly formulated, and look cool i'll look forward to the updates
Be sure to like subscribe and turn on notifications!
Check out the Unity Idle Game Tutorial Series to learn how to make an awesome idle game in Unity! th-cam.com/play/PLGSUBi8nI9v-a198Zu6Wdu4XoEOlngQ95.html
Check out the C# Crash Course Series for even more in depth explanations on C#! th-cam.com/video/za6mFdcyACQ/w-d-xo.html
Gran Video, Saludos desde Argentina, me sirve mucho esto hermano.
Great video simple and to the point.
thanks for the help, i was using sublime text and i switch to visual studio inbetween the video and it fixed all my issues
Great Tutorial! As a beginner to unity I learned a lot.
Man, here i goes to try do some idle)
May be in the end ill do my own individual idle game!
using UnityEngine.UI isn't being recognized and therefore public Text doesn't get the green color and that messes the whole thing up. I can't seem to figure out what you did differently.
I am also having this problem. Has anyone gotten a solution to it yet?
To anyone who has this problem, all i ended up doing was deleting and re-downloading things over and over again and it started to work, lol
hey i need some help the text doesnt change when I click play and change it
Thanks for this. I'm looking for mobile devs also to change the idle rpg game play.
Thanks! Didn't you make that new crypto game on steam? It's pretty cool
Yep! Thank you :D
might want some other patreon options. cause if the only option is 15$ what if they just wanna do 3-5$ and get like a discord role or something? or like a 10$ where they can request a game per month or something
Nice background, i like the colours. Where did u get it
I made it lol
@@ConsideraCore nicee it do be vibin'
Cool tutorial, C# is very similar to JS so far!
Mostly Java since it's a C language =)
Thanks, this is a great tutorial :)
thank you, been searching for this
I don't know why but I laughed when you removed Start() and Update() saying we wouldn't need them just yet only to almost immediately put them back in LOL
2 year ago me wasn’t very smart clearly :D
@@ConsideraCore I'm currently going through your 2021 tutorial series! good stuff man. hope to have my own games up and running this year!
@@cinnabeard do you have your games running?
I followed all of the code in the tutorial but it doesn't let me drag the coins into the area where its supposed to be dragged. Also, MonoBehaviour isn't colored in.
Restart your VS if you are using it, if not make sure to install visual studio community edition and set it as the default script editor in unity stackoverflow.com/questions/48690453/change-default-ide-in-unity also not sure what you mean by "coins" do you mean "coinsText"? if so make sure your text is actually a ui text and not a TMPro text, if it is, replace public Text with Public TextMeshPro_Text or something like that and make sure to import the TMPro namespace (using TMPro)
@@ConsideraCore it seems they only have an option or text for some reason I need help finding the og text thing
@@ConsideraCore nvm found it in legacy
yeah 1:08 like all root coders... we dont use images because we dot have artists available :-(
So trueeee
Go onto google search for something and go to images then click on tools then press labeled for reuse
@@nito1482 Not the guy you replied to, but thanks a lot! I always looked out for some weird free websites. Didn't know Google had that feature.
great tutorial dude thanks
Of course, thank you!
Hi there! Thanks so much for this vid. Question: I got 2:37 and created a text thingo and it was not movable on my screen like it is for yours.... Any idea why? Maybe because I'm on free version?
Pro version has nothing to do with it.
are you still in games tab or the other tab
i cant find the click button at 11:15
I cant seem to get it to show up in the drop down menu either.
Nvm I figured out that i was missing a } at the end of the code at the very bottom
I have a problem, when I click on the text the canvas outline behind it closes so I can resize/place it where I wont without back and forth clicking between canvas and text. How do I fix this
I don't really understand.
Thanks for this, i will make all the tutorial,
This was cool, thx
for me it does not show CoinsText and Coins? 8:30
Brawlstars/ MLQ 70 nor for me
save your project on Visual Studio
has anyone figured this out yet?
@@jonkywonky6831 I had the same problem. In the code, delete the existing void Start () and void Update () and then save. It should update in Unity.
nice content
Subbed! Waiting for more tuts like this :D And after Idle Game finished, can u make a game like Boom Beach or Clash of Clans there is no tuts for those.
Hello! Thanks! I would really like to make a tutorial on that subject but my skill level isn't close to those types of games, hopefully I'll learn someday in the future!
Also, wounder if scriptable objects could help with a clicker/incremental game? been trying to see if it does but can't figure out how to do it even watching the unity conference video on this topic.
Scriptable objects? like classes?
@@ConsideraCore I actually just created this script which is a scriptable object hatebin.com/ddhctufgmk and now i can right click and create any upgrade i want and reference it in any script aka this one hatebin.com/lsemmlcgzv - Scriptable Objects is really wicked!
@@ConsideraCore Scriptable Objects are amazing data containers. They don't need to be attached to a GameObject in a scene. They can be saved as assets in our project. Most often, they are used as assets which are only meant to store data, but can also be used to help serialize objects and can be instantiated in our scenes.
@@ConsideraCore here is also a good video by brackeys th-cam.com/video/aPXvoWVabPY/w-d-xo.html to learn more
So i just watched a video on them and they seem really unique and useful and i like the concept! However, I don't think they are necessary in idle games, it seems like an extra step of unnecessary management. Although you could! If you are thinking about making an upgrade scriptable object, i would recommend using switch case and upgrade ids since it can be done in one script:
public void BuyUpgrade(string upgradeID)
{
data.serverTreeString += upgradeID + ";";
switch (upgradeID)
{
case "clickUpgrade":
// Buy click upgrade stuff
break;
case "productionUpgrade":
// Buy production Upgrade stuff
break;
}
}
then for each button in the editor, you would assign it the certain ID you want to do, ex: "clickUpgrade".
thank you about the tutorial which help us more
What is the resolution for newer phones? Great tut btw keep it up
Thanks! and iPhone X is 1136x2436 I believe
i put my build settings to IOS, then looked at all the resolutions for the phones, wrote them all down, switched back, so i always know the size
@@themooselord9848 Yeah unity does a swell job when it comes to resolution presets :D
so you do need those methods you deleted in visual studio! :)
Thank you for the video, hope your mobile games are doing well.
I will go learn some coding and come back to you
How did u get it to have the coins text below the idle script? 8:24
for those having the same problem: there is an error somewhere in the code which you can see in the "console" tab, once you fix that they should appear
what if i want the size to be for bigger phones AND smaller phones, like ipads and phones or something? like you made its size good for 6s, but i wanna know how to make it compatible with all electronics basically
Use anchors, I recommend this video to help out: m.th-cam.com/video/2VrtXiUnJH0/w-d-xo.html till I make my own =]
my coin amount does not change when I change it in visual studio help??
same here :(
'Assets
ewGAme.cs(7,12): error CS0246: The type or namespace name 'Text' could not be found (are you missing a using directive or an assembly reference?)' here is the line of code i used
'public Text CoinsText;'
wtf i didnt know you made tutorials not had a youtube channel!
CryptoGrounds I did it I managed to run unity 2018
Help me please ı have 9 error in yhe script 😟
Cute Boss well you have to send me the errors or else I can’t help lol
So i have downloaded visual studio, but how do i open the script with it. Like u did at 4:35
Just click on the script
Didnt work at first but figured it out! Thx for responding
the text isn't updating when i click the button what should i do?
Many thanks!
Hi can I use a few second of the clip? I need it for a commercial video.
Wdym? Provide me more details please
I noticed that Unity hooks into MonoBehaviour methods such as Start and Update without regarding method visibility, so is there a good reason to make them public instead of private?
twiksify honestly it doesn’t matter I think
Thank you so much! Been looking to make an incremental for a while now, this looks perfect (:
Also, when i add the objects, it shows on game view but not on scene view. Please help.
Sweet!! Of course =]
I will try to complete this..
Will the 6+ res work for any apple phone or how do we get that to work?
Most likely yeah, but use anchors properly and adjust the resolution like I did in the video and throughout all the videos. I will probably do a separate video on this eventually
For some reason its either i am doing something wrong or Visual Studio does not allow me to make Text variable. it just stays white colored (as well as "monobehaviour". So it appears in the unity object, but you can't link any stuff there
Ummm isn't 1^308 still 1?
think i meant 10^
Hey! I can't seem to call UnityUI. It just doesn't let anything happen.
UnityEngine.UI
Can you please make a game tutorial on idle heroes game type?
John Jane idk what that is
It says: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement. How do i fix?
Uh no clue because I don't know the context of this error.
How do i make it where ever ANDROID platform can play??? Please answer quickly
Search up how to build for android on unity, it’s a long process and youll need to buy a google play dev account
@@ConsideraCore I changed my build setting to Android and the Target Platform is Android
IBeToxic yes but you have to make a key in order to publish it, which I kinda forgot how to since it’s been 3 years since I made a new one. You’ll have to actually build it, before that install all the proper JDK stuff. I really advice you to look up a tutorial since it’s not easy to explain in comments and something I really don’t want to do right now till I make my own tutorial
@@ConsideraCore okay
@@ConsideraCore Can you make something where we can just control C and Control V cuz i kinda messed up the code and i dont want to go back in the tutorial redo so pls
why doesn't it work when I put in public Text coinText?
i'm getting an error that says "error CS0029: Cannot implicitly convert type 'double' to 'string'". what should i do?
Use .ToString()
5:40 "one to the 308th power" :thonk: shouldn't it be ten to the 308th power?
Harry W :hypertroll: but yes lol, I think I mentioned it in the comments somewhwre
doesnt work for me
the text isnt popping up using text mesh pro?
for those having the same problem: for me what worked is zooming out a lot in the scene tab, then changing the font size and now i found it
Everything run well, but do you get
"NullReferenceException: Object reference not set to an instance of an object"
error msg like this in the console?
did you skip to the end? if so, you need to make sure you assign your game objects to your script which i show how to do in the video. if not, same thing lol
@@ConsideraCore i assigned it, and it worked fine tho, but there are just the error msgs:(
@@gclipsoat4719 what are the errors?
like the full errors
@@ConsideraCore ah I solved it, anyway thank you so much! :D
pls help i have a error, error CS1061: 'Text' does not contain a definition for 'Text' and no accessible extension method 'Text' accepting a first argument of type 'Text' could be found (are you missing a using directive or an assembly reference?) i dont know how to fix this
make sure to add the UnityEngine.UI namespace at the top.
using UnityEngine.UI;
CryptoGrounds i did that but it still doenst work idk whats wrong
I Fixe it but now i Have a new error UnassignedReferenceException: The variable MoneyText of script_click has not been assigned. but i already dragged the text into the script
I dont know why the GameManager hasnt the space for the coinstext for me. I followed every step and i dont know what i did wrong
I just downloaded Unity and in the "Scene" area, nothing appear after creating text or buttons. Is there a way to change that? (Sorry if my english is not the best)
Don’t forget to add a canvas
the script is showing nothing 8:28 how am i supposed to drag CoinsText if there is nothing
neverfuckingmind xDDD
How do you use it with TextMeshPro? It won't let me use it when trying to drag it in 🤔
It is because TextMeshPro is not the same as Text. in the code, make sure you have the "using TMPro;" namespace. and replace all "Text" with "TMP_Text"
@@ConsideraCore Tysm for the quick response! Very helpful ☺️ Also I'm sorry that my question might sound a little unknowing and admittedly that's because I simply am lol. Thank you for not letting that stop you from helping others. :))
This helped. Thanks!@@ConsideraCore
My text isn't updating I've tried everything I have gone over the code 4 times!
You didn’t skip a part of the video? It’s not just coding.
No I did do the rest tight
@@mrmonty1758 same here :(
it's been awhile since I've coded anything and this is a good tutorial I just don't understand why I can have the exact same same code and program right down to the variables and still get this:
NullReferenceException: Object reference not set to an instance of an object
IdleTutorialGame.Update () (at Assets/IdleTutorialGame.cs:23)
Any ideas?
I got it but for those of you who happened to have the same Error kick out, I had just forgotten to add the text object in unity to the manager.
@@darkshurikens3316 brooooo thx i had the same problem credit to u man : P
Top !
CG: So this is a short and basic video -
Me: Your kidding right? i understand nothing
Yeah I say that and then I end up making a longer video than expecting lol. If you don’t understand something or anything, rewatch the video, ask questions, or use google =]
For some reason Visual Studio won't recognize my UI when I put .UI after UnityEngine. It recognizes my text components but did not come up with anything when I typed .UI. I no very little coding so I don't really know how else to explain it. Any help would be appreciated
Try restarting, if that doesn’t work, go to edit >preferences >external tools and change “external script editor” to your visual studio!
CryptoGrounds Just recreated the entire project without any difference, so I’ll try it out. Thanks for all the help man!
I had the same probles as you have. This worked for me: th-cam.com/video/5LX13Xqc50g/w-d-xo.html
Thomas ohh yeah I got it by now and just released my game! This series was a big help for me. Thanks for the response though
awe....was hoping for this tutorial to go into 1e+177? and also showing us how to do number smashing no other tutorials do this guess its alot of math....
Episode 4 goes to 1e5, i have an episode that requires a third party script planned where numbers can go to 1e(9e15) (9e15 digits basically) so yeah we will get there!
also wdym by number smashing?
@@ConsideraCore ummm number notations like "K" - "M"
Oh, letter notation, I'm not a fan of it since scientific is easier to read, I did scientific notation on episode 4. If you wanted to do it,
if (coins >= 1e3)
coins.text = (coins / 1e3).ToString("F2") + "K";
if (coins >= 1e6)
coins.text = (coins / 1e6).ToString("F2") + "M";
if (coins >= 1e9)
coins.text = (coins / 1e9).ToString("F2") + "B";
I haven't figured out a system for myself to make this process easier, but again, I wouldn't recommended this notation since it's unreadable past 1e25ish (I'm still using scientific in this comment lol)