Simple Chat Bubble in Unity! (Chat, NPC, Multiplayer)

  Рет қаралды 49,164

Code Monkey

Code Monkey

Күн бұрын

Пікірлер: 152
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Awesome Chat Bubble! Easily add it to your games for Messages, NPCs or even Multiplayer! 🌐 Have you found the videos Helpful and Valuable? ❤️ Support on Patreon www.patreon.com/unitycodemonkey or get the Game Bundle unitycodemonkey.com/gamebundle.php
@misterkengkue
@misterkengkue 4 жыл бұрын
U v awewewe
@epicshot1053
@epicshot1053 4 жыл бұрын
Pls in German!!! Im Not good in englisch pleas!!
@styliann
@styliann 4 жыл бұрын
Great video as usual: simple but detailed explanation. Could you make more RTS videos? Particularly one with the combat system follow up to the RTS control video from last month?
@arcday4281
@arcday4281 4 жыл бұрын
Even though I don't need it now, thank you very much for the extra experience. A beginner's question is not related to the topic: Can I use "Enemy-AI" to list States using the "Interface", or would it be better to use "Enum-state"... ?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
@@styliann I do intend to continue the RTS videos and make a mini-AoE but right now I'm trying to get the Code Monkey Steam App done so I'll probably only get back to that next month.
@PandemoniumGameDev
@PandemoniumGameDev 4 жыл бұрын
Don't trust atoms they make up everything 😂 this is gold. Thanks for the great tutorial!
@michaelzhao5873
@michaelzhao5873 4 жыл бұрын
I love your tutorials man! So simple and so useful - this one is no exception. You literally upload the videos as I need them. You actually inspired me to create a series of devlogs on my own channel where I'm building a 2d mobile game! 💪🙌
@zy-blade
@zy-blade 4 жыл бұрын
Awesome guide, as always! You make many indie devs happy with your tutorials =) Let me add one thing. If you animate the GUI, don't use animations, but tweens (there are free libraries on the assetstore). I know this was just a demo case to show what's possible. But if you use animations, afaik, your GUI will redraw every frame during that animation. Well, happy coding, and keep up the tutorial-flow :P
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Yup I normally do it all through code, here I went with animations so I didn't complicate the video with extra code.
@zy-blade
@zy-blade 4 жыл бұрын
​@@CodeMonkeyUnity I just searched around and found another video, where someone said, even with tweens, canvas gets updated. So a good solution will be using multiple canvases. Reference was: create.unity3d.com/Unity-UI-optimization-tips Maybe ppl reading comments under this video will find it useful.
@etrex5272
@etrex5272 Жыл бұрын
Thanks. Saved me again. I had issues with non-canvas box scaling and watched like 5 bullshit videos that did not help me before this.
@yannicksignorell2420
@yannicksignorell2420 Жыл бұрын
Wonderful tutorial thank you ! One single down side though, please don't accelerate some "trivial" part like the animation of the chatBubble. Being new to unity development it's extremely frustrating, because I have to slow the video down and even like this I'm not really able to redo all of your actions !
@jean-michel.houbre
@jean-michel.houbre 4 жыл бұрын
Et voilà ! Another very useful video. Thanks.
@lychee9590
@lychee9590 4 жыл бұрын
This is very useful man please continue teaching us!
@LionDev
@LionDev 4 жыл бұрын
You upload the stuff everytime I need it so great because I have to make my dialogue system better and this is pretty good thank you 👌😅
@WuxiaNovelsAudiobookHD
@WuxiaNovelsAudiobookHD 4 жыл бұрын
Thank you very much for this tutorial! Your videos are very helpful for a beginner like me who wants to make our own game
@PecaCS
@PecaCS Жыл бұрын
On ChatBubble script in Awake where we use transform.Find("Background") I know that in other videos you state how you are not a fan of using strings because it's easy to make a mistake. So can you help me think of a solution on how to avoid having to use Find("somestring")? I suspect this is the quick and dirty way and the proper way would be to separate the logic in each object and just reference the objects with SerializeField and call their public method or have an event for the other objects to listen to? I really want to know what your thoughts are on this. Thank you for making these tutorials, they are of big help to me.
@dheerajbansal615
@dheerajbansal615 4 жыл бұрын
good work bro really helpfull
@hjc1710
@hjc1710 4 жыл бұрын
I came here to learn about chat bubbles. I stayed for the dank Lionel Ritchie refs.
@Blinkers2007GameDev
@Blinkers2007GameDev Жыл бұрын
AWESOME!!!!!!!!!!!!!!!!!!!!!
@nielscornette
@nielscornette 4 жыл бұрын
Awesome video! Thx for it! How would you handle the chat bubble going outside the game screen? Like in multiplayer if someone talks on the right side of the map very far away but you still want to show the text bubble in that direction?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
You would need to do some math converting the chat bubble edges into screen positions and moving them accordingly. I covered something similar in my Tooltip videos kzbin.info/www/bejne/rZjLo6qQabCEqMU
@deex8052
@deex8052 4 жыл бұрын
New intro I see.... Pretty cool if I do say so myself..!
@krish-ut9de
@krish-ut9de 4 жыл бұрын
Loveee itt thanks to you i will be able to make my first game
@CirbyWeh
@CirbyWeh 4 жыл бұрын
Nice video, thank you! At 9:40, what exactly would happen if "default:" is triggered in your switch statement? I assume it will then use the return happyIconSprite?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Yup the default will fall into case IconType.Happy and run that same code.
@CirbyWeh
@CirbyWeh 4 жыл бұрын
@@CodeMonkeyUnity Thank you for the reply. Keep up the good work!
@santa_suerte
@santa_suerte 6 ай бұрын
Thanks for this awesome content ! One question though: how could you make sure that when spawning a chatbuble for a particular player/npc, it first destroys the previous one ? (if one player was to publish two consecutive messages before the auto-destroy lapse of time, the two bubbles would be overlapping for a second or two). I thought about adding an if statement and identifying bubbles with tags (for each player), so if the bubble exists with this tag, first destroy it, but that would make a quite heavy operation on each new bubble spawning (if, findwithtag, etc). What do you think ? Thanks !
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
On the code where you are spawning the chat bubble, you could have a Dictionary and see if that player already has a bubble that still exists, if so manually destroy that one before spawning the new one
@santa_suerte
@santa_suerte 6 ай бұрын
@@CodeMonkeyUnity Thanks !
@maistrogaming7911
@maistrogaming7911 4 жыл бұрын
As usual..... Man thanks a lot...if you want to make part 2...make it like mincraft chat system
@revengerwizard
@revengerwizard 4 жыл бұрын
How can I make the box expand based on the text lenght? However, awesome video! Just what I was thinking to do in my game.
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
You mean expand the background size as the text gets written? For that you would just need to run the same code update the background when the text changes and modify the TextWriter to only write visible characters. Right now the way its set up all characters are written right away but start off invisible and appear over time.
@theDarkerSan
@theDarkerSan 4 жыл бұрын
Exelente tutorial, Eu gosto bastante da estrutura de ensino dos seus videos.
@Drifts3
@Drifts3 4 жыл бұрын
I know this may take time, but would you make a tutorial about giving players customisability. Such as drawing simple sprites for in game characters in 2D, or creating their own levels or customisable polygons. I know this is quite general, apologies for that. Or at least point us in the right direction, thanks!
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
I covered some character customization just like I used for the Guests in Battle Royale Tycoon kzbin.info/www/bejne/kIO1lGqAYrSqfdE
@fatmarajab114
@fatmarajab114 Ай бұрын
Very informative tutorial! Thanks a bunch! Just had a quick question though. My icon and background both turn black when spawning in the game view. However, they look perfectly normal while in the scene view. I've confirmed that lighting and positioning in the Z-axis is ok, so I'm still completely clueless as to what could be causing it. Any ideas will be truly appreciated! Thanks again for the tutorials.
@CodeMonkeyUnity
@CodeMonkeyUnity Ай бұрын
Hmm are you mixing SpriteRenderers and MeshRenderers? Mixing 3D and 2D? Maybe some issue with the sortingLayer or sortingOrder? Maybe the game camera is not rendering all layers?
@deflatedbraincell
@deflatedbraincell 2 жыл бұрын
Hi! I don't understand how "backgroundSpriteRenderer.transform.localPosition = new Vector3(backgroundSpriteRenderer.size.x / 2f, 0f)" can transform the background to the middle of the text of the chat bubble. If the text is at a x-coordinate of 0, wouldnt the background be transformed to the right instead of 0, as it is moved to the size of the sprite.
@CodeMonkeyUnity
@CodeMonkeyUnity 2 жыл бұрын
It depends on the pivot of the object, the background pivot is on the center, the text is on the left corner
@arthurmorgan923
@arthurmorgan923 4 жыл бұрын
Code Monkey, what is your opinion about developing a game from scratch ? I know that you love coding. And when you develop a game from scratch, you literally code everything. There is a KZbin channel named ThinMatrix and he uses opengl-java do develop his engine and games. Have you ever tried ? Have you got future plans about it ?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Generally those are two separate paths, you can either make an engine or you can make a game, doing both is nearly impossible. ThinMatrix is the extreme exception to that rule, somehow he manages to build both games and engines. I would love to one day build an engine from scratch but I am aware that would be simply for personal educational purposes and would not as an actual part of my job.
@deanharrison7352
@deanharrison7352 4 жыл бұрын
I've followed this exactly but textMeshPro.GetRenderedValues(false) is returning the vector2 1.4/0.6. This makes the chat bubble sprite HUGE in comparison to the text, i'm not sure what the problem is.
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Check the Scale of the Text and Image objects, they should all be at 1,1,1
@deanharrison7352
@deanharrison7352 4 жыл бұрын
@@CodeMonkeyUnity Thanks!
@gbezjak
@gbezjak 2 жыл бұрын
@@CodeMonkeyUnity hi, there, thanks for the tutorial but I have the same problem. the text and image objects are of scale 1,1,1, but when I instantiate a bubble it's width and height are humongous.
@CodeMonkeyUnity
@CodeMonkeyUnity 2 жыл бұрын
@@gbezjak It also depends on the size of your camera. In the video I'm using a Orthographic camera with size of 50 I think, so if you're using a camera with size of 5 then yeah it will be huge
@gbezjak
@gbezjak 2 жыл бұрын
@@CodeMonkeyUnity no, I don't think that's the problem. I have changed the size of the camera and it stills stretches the image on gigantic proportions (numbers like 4e8). Probably the problem is somewhere with reading the size of the tmptext. 🤷🏻‍♂️
@jayessem725
@jayessem725 Жыл бұрын
The text writer using Unity UI does not work with this code using Text Mesh Pro. I am just starting out and don't know how to convert one to the other.
@FortressBOfficial
@FortressBOfficial Жыл бұрын
2:40 leaving a mark
@jayessem725
@jayessem725 Жыл бұрын
When I create a chatbubble saying "hello world" the bubble appears correctly. However, whenever I create a bubble pulling the text from an input field the bubble generated is MASSIVE and obscures the whole screen. I've read this can be an issue when transforming instantiated objects. Any idea what could be wrong or how to fix?
@isGoofy
@isGoofy 2 жыл бұрын
Hi! When I try to Instantiate the bubble it show up an error saying that the object I want to Instantiate is null, what can I do. I compared the code multiple times and it looks like it's pretty much the same, I didn't use the Icon stuff only the text so I just removed the code of the Icons.
@CodeMonkeyUnity
@CodeMonkeyUnity 2 жыл бұрын
You are calling Instantiate and passing in a null reference, use Debug.Log to find what is null and where it should have been set unitycodemonkey.com/video.php?v=5irv30-bTJw Perhaps you just forgot to drag the reference in the inspector
@isGoofy
@isGoofy 2 жыл бұрын
@@CodeMonkeyUnity I figured out that I didn't saved the GameAssets object as a Prefab, after that everything worked as a charm, thank you very much for the tutorial and for the fast response!
@NoirPhoenix
@NoirPhoenix 4 жыл бұрын
Hey Code Monkey, I don't suppose you have any knowledge on Active Ragdolls. Such as Self Balancing and Up Force oriented ones? It is a topic which isn't covered commonly and the ones that are available are using capsule colliders to balance thus the entire rig isn't really exposed to ragdoll interactions compared to other methods such as Self Balancing and Up Force.
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Ragdolls are something I've never used but always wanted to try out, need to find the time to research it!
@NoirPhoenix
@NoirPhoenix 4 жыл бұрын
@@CodeMonkeyUnity Yeah its a very interesting topic but not many people have documented anything about it. There are very few articles on it as well :s. There are youtubers called MetalCore999 and Nimso Ny who work with Ragdolls but are very brief on how they work.
@soumyasamal6314
@soumyasamal6314 3 жыл бұрын
Can i use this method for a vr project , i have to attach a pop up box with a animate character?
@juulh6870
@juulh6870 4 жыл бұрын
Thanks!
@letsplaynay9936
@letsplaynay9936 2 жыл бұрын
Thanks so much! after hours of modifying it to fit my game I finally got it to work. Is it fine I use this code for my multiplayer chat game?
@CodeMonkeyUnity
@CodeMonkeyUnity 2 жыл бұрын
Yup go ahead, best of luck with your project!
@letsplaynay9936
@letsplaynay9936 2 жыл бұрын
@@CodeMonkeyUnity thanks! Do you happen to know how i'd be able to use text wrapping when the message is a certain length so that it goes to the next line in the chat bubble?
@CodeMonkeyUnity
@CodeMonkeyUnity 2 жыл бұрын
​@@letsplaynay9936 You could handle it "manually" by checking the string length and inserting a in the middle, that method might be easier than trying to use the built in wrapping My tooltip class does support vertical size kzbin.info/www/bejne/j4asoJt5jdmSpsU
@dragonburning126
@dragonburning126 Жыл бұрын
Hi code monkey !!!! Thanks for your awesome tut !!!! I have a problem with TextMeshPro "T" UI icon. It is too big. I tried to scale the font but the icon doesn't want to resize at all. I also tried to resize my canvas (cause i use unity3D) but nothing change. Consequence : when my bubble background resize to match the text, the bubble background become giant... Do you have any idea what I should do?
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
Are you talking about the Gizmo in scene view? On the scene view, on the top right corner there's a button with a small arrow pointing down, you can click on that and then modify the size of the gizmos. But that's just a scene view gizmo, does not show up in Game view at all.
@dragonburning126
@dragonburning126 Жыл бұрын
@@CodeMonkeyUnity Thanks ! I'll try to resize the gizmo to see what happen to my bubble. I don't think that my issue is present because of the gizmo but.... I have to try to find why my bubble is too big....
@sanamoawed9522
@sanamoawed9522 2 жыл бұрын
What replication system u used? Mirror or what?
@CodeMonkeyUnity
@CodeMonkeyUnity 2 жыл бұрын
The demo itself isn't multiplayer, so they are just spawned normally, but you can easily use this element in a multiplayer games just like many games do. For example when working with Netcode for GameObjects you would just do a ServerRPC to send the message to the server which would then use a ClientRPC to send the text message to every client and spawn the ChatBubble unitycodemonkey.com/video.php?v=3yuBOB3VrCk
@gokselserkan
@gokselserkan Жыл бұрын
Great videos, very informative but the problem with the content is that in order to do something, I have to watch a lot of other videos to do what I want to do. I want to create a chatbox but now i feel like I need to watch the GameAssets video too. Maybe you do it this way intentionally but it is just too much.
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
That's how game development works. You build systems on top of other systems, you don't rewrite everything from scratch every time. If you're looking for a more guided path then I would encourage you to look into my complete courses as opposed to tutorials which cover just one specific system/element unitycodemonkey.com/video.php?v=PcArjIC1QnQ
@gokselserkan
@gokselserkan Жыл бұрын
@@CodeMonkeyUnity Thanks for the answer mate! Some of us true beginners, that's why it sometimes gets bothersome.
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
I get that it can be frustrating for beginners but I would rather you go through that frustration and learn proper practices rather than teaching you the incorrect method of "build everything from scratch"
@gokselserkan
@gokselserkan Жыл бұрын
@@CodeMonkeyUnity Still tho, thanks for taking the time to get back and spread enthusiasm^^.
@JohnSmith-1066
@JohnSmith-1066 Жыл бұрын
I really don't like how you derailed the tutorial by making us refer to ANOTHER video that ultimately is not neccessary for the completion of the lesson. Really unprofessional IMO.
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
What are you referring to?
@JohnSmith-1066
@JohnSmith-1066 Жыл бұрын
You building the functionality of the chat bubble script around a separate gameassets script from another video.
@rodrimarin3375
@rodrimarin3375 Ай бұрын
@@CodeMonkeyUnity yes please stop doing it, i cant be changing videos in the middle of the tutorial is like i am mising code and i have to lose a lot time looking for another video and using code i dont want to use
@dota2adsc653
@dota2adsc653 3 ай бұрын
Hello CodeMonkey i wanna do that but text in UI, dont work with this example, can you help me?
@CodeMonkeyUnity
@CodeMonkeyUnity 3 ай бұрын
Thanks for the super thanks and congrats on completing the course! I'm glad you took the time to really learn, I've never used Kotlin but I love C# so if you stick with it I'm sure you'll love it as well! Best of luck in your learning journey!
@its_nuked
@its_nuked 11 ай бұрын
Hello. I've followed up to the point where you make the Chat Bubble dissapear after 4 seconds, but... Despite my code having no erros, writing it the same and inserting all the right things in the editor page from what I see, Whatever new text and sprite i Choose in the GameHandler doesnt appear as my spawned sprite. Instead the one we set way befoere when setting up the background of the text stretching far enough is still showing up. Any idea why?
@CodeMonkeyUnity
@CodeMonkeyUnity 11 ай бұрын
Sounds like maybe you're mixing the "prefab" and "spawnedTransform", make sure you're modifying the object that you instantiate, not the original prefab Add some Debug.Log to make sure your code is running like you think it is
@mdsahil-mq6uy
@mdsahil-mq6uy 4 жыл бұрын
Bro i have a problem please help 🙏🙏me... I have made a game in unity but i the file size is aroung 800mb please help me 🙏🙏🙏🙏🙏🙏😭
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Compress your textures, use unity's build log to identify the largest ones
@RTWrename
@RTWrename 4 жыл бұрын
the program runs well, I just get this error at the start IndexOutOfRangeException: Index was outside the bounds of the array. TMPro.TMP_Text.GetTextBounds (System.Boolean onlyVisibleCharacters) (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_Text.cs:4488) TMPro.TMP_Text.GetRenderedValues (System.Boolean onlyVisibleCharacters) (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMP_Text.cs:3646) ChatBuble.Setup (System.String text) (at Assets/Scripts/Dialog/ChatBuble.cs:28) ChatBuble.Start () (at Assets/Scripts/Dialog/ChatBuble.cs:22)
@heinstain8438
@heinstain8438 Жыл бұрын
I built this into my game so that when you hover hover a UI object, the bubble is created with the name of the UI object. I'm trying to figure out how I can destroy the bubble when the mouse leaves the UI object. I have that part functional, but because the instantiation is being cast within Create(), I cant figure out how I would be able to destroy it using another public method. Any ideas?
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
Sounds like you're trying to make a tooltip? I made one here unitycodemonkey.com/video.php?v=YUIohCXt_pc The Create(); returns the ChatBubble, so you could just store that and then destroy it
@datmad5573
@datmad5573 4 жыл бұрын
I've been having troubles with visual studio. All the code works but if I try to type in "Input.GetKey()" it doesn't show me any options to quickly type it in, like if I typed "Input.G" it doesn't show "GetKey", "GetKeyUp" or "GetKeyDown". Is this a bug, do I need an extension or am I just doing this wrong?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
You need the Unity Visual Studio Tools which should be installed automatically. Either reinstall Unity or install the tools manually docs.microsoft.com/en-us/visualstudio/cross-platform/visual-studio-tools-for-unity?view=vs-2019
@Aswhy_Artist
@Aswhy_Artist Жыл бұрын
does this work on 3D as well? I cant find the sprite on 3D
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
Yes. What can't you find? I used this same element in a recent video unitycodemonkey.com/video.php?v=LdoImzaY6M4
@Aswhy_Artist
@Aswhy_Artist Жыл бұрын
@@CodeMonkeyUnity Sorry I meant I was having troble creating a 2D sprite in a 3D game, had to download 2D sprites asset am trying to see if that works
@TorinAst
@TorinAst Жыл бұрын
@@Aswhy_Artist Could you find the create sprite option?
@Aswhy_Artist
@Aswhy_Artist Жыл бұрын
@@TorinAst yea I just had to use the package manager and look up 2d sprite
@dBO123
@dBO123 4 жыл бұрын
Followed the video, and the TextWriter one, but one I wanted to use the AddWriter_Static function, unity threw an error - cannot convert TextMeshPro to UnityEngine.UI.Text. Somehow you didn't get the error.. should I change my TextWriter script to take a TextMeshPro instead of the UI.Text?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
Yes when I made the TextWriter I made it using UI Text, you need to adapt it to work with TextMeshPro. From what I remember all the functions are exactly the same, so its really just changing the type.
@agourk12
@agourk12 Жыл бұрын
thanks
@enzilla3973
@enzilla3973 7 ай бұрын
why is there medic and soldier from TF2?
@CodeMonkeyUnity
@CodeMonkeyUnity 7 ай бұрын
Because it's fun!
@freestylerak6655
@freestylerak6655 Жыл бұрын
When I move my player left and right the scale of the chat bubble changes and it creates an mirror image of chat bubble which looks weird. How can I fix this?
@freestylerak6655
@freestylerak6655 Жыл бұрын
In code I changed the local scale of the chat bubble depending upon the local scale of the player. It does work but when my player changes direction, the chat bubble remain in the previous position before changing to new position which makes the chat bubble look at two position at the same time for one frame.
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
You can have a simple script constantly setting the chatBubbleTransform.localScale = parent.localScale That way when the parent inverts the bubble will invert again Alternatively make it not a child of the player and just make a script to follow the player Or alternatively never modify the scale on the main player game object, instead separate the visual into a child object and only ever modify that, that's what I teach for good project structure in my free course kzbin.info/www/bejne/d56qhHh-bLaWesk
@alexgrahmann
@alexgrahmann 3 жыл бұрын
This code is working extremely well for me! Big question, though: I'm trying to put the floating chat bubble a certain distance from each enemy's Collider center (to make it move up or down, based on the height of the enemy). It works great at first, but once an enemy dies, FunctionPeriodic continues to look for their GameObject info, which is gone. So, there's an error and Unity stops. Could you help me figure out how to STOP FunctionPeriodic once an enemy dies?
@CodeMonkeyUnity
@CodeMonkeyUnity 3 жыл бұрын
Look in the FunctionPeriodic class, there's a function to destroy the object
@alexgrahmann
@alexgrahmann 3 жыл бұрын
@@CodeMonkeyUnity Thanks so much! If you’re ever at a loss for video content, I’d love a more in-depth walkthrough of the FunctionPeriodic code - it’s so simple and helpful, but I know I’m missing great things! You’re the best!
@michaelchou1515
@michaelchou1515 Жыл бұрын
5:10,I have created a ChatBubble includes icon, background and text just like you did, and I add script to that,When I click play button console says "Object reference not set to an instance of an object ",why?I really appreciate it if you can clear it out.
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
Use Debug.Log to find out what is null unitycodemonkey.com/video.php?v=5irv30-bTJw
@michaelchou1515
@michaelchou1515 Жыл бұрын
@@CodeMonkeyUnity Thank you,but still not working.
@michaelchou1515
@michaelchou1515 Жыл бұрын
I have solved the problem,thanks
@Lulu.012
@Lulu.012 Жыл бұрын
@@michaelchou1515 May I ask how you fixed it?
@hodlgang4906
@hodlgang4906 2 жыл бұрын
I've exact the same code even checked it with your downloaded project but my text flashes fully before the Textwriter starts. It's just a milisecond where the full text is visible but its still anoying. How its not flashing on your end even with the same code?
@hodlgang4906
@hodlgang4906 2 жыл бұрын
Or is it just overplayed with the fade in animation on your end?
@CodeMonkeyUnity
@CodeMonkeyUnity 2 жыл бұрын
Yup it happens the same but is hidden by the animation and the TextWriter starts writing on the next Update You can just set the text in the function to an empty string "" Then on the next Update the TextWriter will run and start writing
@kouni.i
@kouni.i 4 жыл бұрын
is there posibility to get unbanned from discord server ? someone logged in on my discord and started swearing and i got banned
@Bro-tl8jo
@Bro-tl8jo Жыл бұрын
Quick question, does this work for unity 3D?
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
Yes, you can either use it directly in a world canvas or swap the components for 3D ones, I used this in 3D in the interactions tutorial unitycodemonkey.com/video.php?v=LdoImzaY6M4
@Bro-tl8jo
@Bro-tl8jo Жыл бұрын
@@CodeMonkeyUnity what, sorry j dont really understand, im not very good and im still learning
@misterkengkue
@misterkengkue 4 жыл бұрын
Hello good video
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
🌍 Code Monkey on Steam! 👍 Interactive Tutorials, Complete Games and More! ✅ Add to your Wishlist! 👉 store.steampowered.com/app/1294220/
@AlMgAgape
@AlMgAgape 3 жыл бұрын
for online chat, use photon2 ??
@CodeMonkeyUnity
@CodeMonkeyUnity 3 жыл бұрын
That is one possible framework you can use yes, there's also the official Unity MLAPI
@AlMgAgape
@AlMgAgape 3 жыл бұрын
@@CodeMonkeyUnity owh, i think you make it with Photon2, emm what the MLAPI is better then Photon2 ?
@ghostplayer2_gp216
@ghostplayer2_gp216 4 жыл бұрын
Which Machine Lang. Do u using?
@ghostplayer2_gp216
@ghostplayer2_gp216 4 жыл бұрын
and I am 12 years old I want learn code but which machine language should I learn?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
You mean programming language? Unity uses C#
@someguy9163
@someguy9163 Жыл бұрын
how do i get the chat bubble background?? pls help
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
The rounded rectangle? You can just draw that in any image program, like Paint or Photoshop, or you can download the project files linked in the description
@someguy9163
@someguy9163 Жыл бұрын
@@CodeMonkeyUnity oh ok Thank you so much um i have another Question in your simple npc um can i like put another code in it like i like to make another Bubble chat that display like under the player screen that u can press Continue and the text will Continue i dont know if you can do this or not but can you make a video on that if you cant thats ok
@SteveTheExploiter
@SteveTheExploiter 4 жыл бұрын
I found this tutorial quite punny.
@meiskoi7653
@meiskoi7653 4 жыл бұрын
did anyone saw medic and soilder
@HarrisBaig
@HarrisBaig 4 жыл бұрын
hi code Monkey, Can you explain MVP pattern with respect to any unity project in your upcoming videos?
@ghostplayer2_gp216
@ghostplayer2_gp216 4 жыл бұрын
I am waiting your game (steam)
@pawelg5354
@pawelg5354 3 жыл бұрын
How can I recreate this in UI?
@CodeMonkeyUnity
@CodeMonkeyUnity 3 жыл бұрын
Just use images and the UI Text object, the logic is mostly the same
@pawelg5354
@pawelg5354 3 жыл бұрын
@@CodeMonkeyUnity I tried but because RectTransform doesn't have property 'size' I tried using 'sizeDelta' and nothing happened. Also in line: textMeshPro.SetText(text); error occurs: NullReferenceException: Object reference not set to an instance of an object. I don't know if I am using wrong property in RectTransform because Text doesn't change when I run the game. Thank you for helping.
@CodeMonkeyUnity
@CodeMonkeyUnity 3 жыл бұрын
@@pawelg5354 Yup it is the sizeDelta but TextMeshPro also uses margins, it depends on how you set up wrap and auto-size. That error means your textMeshPro is set as null, make sure you're using the UI component and not the other one. TextMeshProUGUI
@pawelg5354
@pawelg5354 3 жыл бұрын
@@CodeMonkeyUnity huge thanks
@itslina8948
@itslina8948 4 жыл бұрын
Hungry asf
@deccopiropo
@deccopiropo 4 жыл бұрын
What's the name of this game? I wanna play hehehehe
@CodeMonkeyUnity
@CodeMonkeyUnity 4 жыл бұрын
It's just a demo to showcase the effect. Although I did use it in my game Battle Royale Tycoon
@dkordy
@dkordy Жыл бұрын
How do you confuse things, you start a video and then this is from here, and this is from this video, here we made this, there that, and that's it for you. and at the end you say - Simple!!! I have tried several times to follow the way you work and there is no way. If I'm doing the same project as you, then I might be able to manage, I'm just copying the same thing you're doing, but if I try to apply something to my project, there's no way! And you have really good ideas, things that are needed for all kinds of projects. It's a shame that you're a bad teacher. A good professor follows a linear path. And those who want to feel superior and want admiration always complicate things. What a shame. I'm not one to give up, so I'll try to watch your videos again.
@CodeMonkeyUnity
@CodeMonkeyUnity Жыл бұрын
That's how game development works. You build build systems upon systems, you don't reinvent the wheel every time. It sounds like what you're looking for is a complete guided step by step course and not a tutorial, those are completely different things. If you're looking for that then I'll point you to my 11 hour free course which does indeed cover everything from start to finish and nothing was made off screen. kzbin.info/www/bejne/d56qhHh-bLaWesk
@dkordy
@dkordy Жыл бұрын
FINALLY!!! I managed to figure it out from the tenth time of watching the video. The problem was in Prefab/GameAssets in the folder that must be named Resources! - And no, I didn't mean a fully guided step-by-step tutorial, but it would be nice if you mentioned when you use something from other things to note the importance of things in those things. if you understand me? And building systems upon systems i get it inportace of that, And just because I like what you do at the end, that's why I stayed to understand, but it really shouldn't be that hard to understand the concept. Don't take offense to the comments, I was just expressing my frustration because it didn't turn out the way it turned out for you. But I'm telling you after watching the video for the tenth time, I understood. It is now resolved. And that's how I got to know your way of working. I think it will be clearer to me in the future what you are doing... Thank you, many many greetings.@@CodeMonkeyUnity
@advikmalwa379
@advikmalwa379 4 жыл бұрын
First comment
@tqacks1769
@tqacks1769 2 жыл бұрын
beat minecraft.
The Minecraft Movie memes are way too good.
8:10
Phoenix SC
Рет қаралды 1 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 19 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 6 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 145 МЛН
How to make a Dialogue System in Unity
16:19
Brackeys
Рет қаралды 935 М.
HOW TO Add RAIN To YOUR 2D GAME - UNITY
7:58
Lost Game Dev
Рет қаралды 20 М.
5 Minute DIALOGUE SYSTEM in UNITY Tutorial
5:11
BMo
Рет қаралды 174 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,2 МЛН
How to Create Floating Text with Unity: A step-by-step tutorial
8:48
Animated Cursors in Unity!
16:59
Code Monkey
Рет қаралды 26 М.
How To Make ChatGPT NPC In Unity - Tutorial
11:06
Valem Tutorials
Рет қаралды 54 М.
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 19 МЛН