This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

SATORI

Moderators
  • Content count

    1,335
  • Joined

  • Last visited

  • Days Won

    22

SATORI last won the day on April 3

SATORI had the most liked content!

Community Reputation

539 Excellent

7 Followers

About SATORI

  • Rank
    Programmer
  • Birthday 09/14/1995

Profile Information

  • Gender
    Male
  • Location:
    USA
  • Interests
    "Everything you can imagine is real." -Pablo Picasso

Recent Profile Visitors

3,175 profile views
  1. You should really open the Error List window in Visual Studio.
  2. Thanks for the reminder.
  3. Both.
  4. He wanted to change the Render Mode for the UI so it would line up with the camera, as he demonstrated in the screen shots. I recommend you to polish up on your knowledge base on Canvas Render Modes. https://docs.unity3d.com/Manual/UICanvas.html If otherwise, you must have gotten what I said confused with the Canvas Scaler component. That component is responsible for scaling the on-screen UI scale.
  5. Yes, this is normal. If you want to have the canvas scale stretched to the camera's perspective, navigate to the Canvas/UI game object. There should be a canvas component. On that component, there will be a Render Mode setting. Set it to "Screen Space - Camera".
  6. I'm not quite sure if I read what you wanted correctly, however I'm just gonna leave this here lol using UnityEngine; [RequireComponent(typeof(AudioSource))] public class LoopSound : MonoBehaviour { private AudioSource audioSource; public AudioClip myClip; public float timer = 5.0f; private void Start() { audioSource = GetComponent<AudioSource>(); InvokeRepeating("MySfx", 5, timer); } private void MySfx() { audioSource.PlayOneShot(myClip); } }
  7. Took me just a moment to Google CS1525. What do YOU think it is? https://msdn.microsoft.com/en-us/library/3hdyz4dw.aspx
  8. You've got quite a few syntax errors here, are you using an IDE? If not, you should. Download Microsoft Visual Studio 2017 (community edition) or a different IDE while working in a C# environment. Pertaining to your debug error, it displayed because you didn't put a postfix operator " () " to close your indication of the function startPreview. Pay close attention when you're programming. It isn't a walk in the park where you can step anywhere you'd like. It is booby trapped; intertwined with the world of 'grammar'. If one cog wheel breaks, the whole system poops itself. Edit: Well then... Ocular beat me to to it xD I took too long making coffee.
  9. It would be really, really cool if you learned how to do this stuff your very self and then show us what kind of work you have brought into this world.
  10. What this code is doing is checking the sticksMan.stick.Length, and for that length you are checking if the game object referenced is active in the hierarchy window (reference is pointing to the game object sticksMan.transform children). If the first condition doesn't check out during the loop, it checks if the specified object is not active in the hierarchy window, then sets foundStick to active as a gameobject, destroys the object instance itself afterwards then sets the foundStick object under same reference as earlier. By the way, break terminates the loop. I think you may want to rethink your logic here. Personally your request is way too unclear for me to try and solve, maybe go in-depth about what you're trying to do?
  11. Glad you got it working man This is an absolute necessity imho
  12. Have you ever wanted to use Unity's dark skin (pro)? No more do we have to spend long nights in our caves with Unity's user interface blinding us. This extension allows you to create your own editor skins, or you may choose the preset skins that ship with its release. Enjoy. Oh and, let's all thank the developer(s) for this extension. Info: https://github.com/zios/unity-themes/wiki Download: https://github.com/zios/unity-themes/releases Instructions: Extract folder contents and drag them into your Unity project window. Navigate to > Edit > Preferences > Themes to manage the extension's settings and capabilities. This is my setup: https://gyazo.com/ff2f09938bc6cf97768a8f8808c2951c
  13. I recommend to research how Fixed Joints work for a greater understanding of how to get the exact functionality you are looking for. https://docs.unity3d.com/Manual/class-FixedJoint.html PS: If you aren't at least willing to learn how this stuff works, I'm afraid many won't use their time to aid you in writing a script for you - unfortunately. The help section gets a lot of 'leaches' here, so we like to make sure our time spent helping benefits the individual in a cognitive manner, instead of being part of an average copy and paste routine. I can tell you that the dedicated (talented) part of the community here is passionate towards those who are as passionate as they are about learning and creating things on their own. The really cool thing about learning how to do these sorts of things by yourself, is you get to keep on doing them without anyone's assistance whenever you want, however you like. Anyway, that video I found on YouTube contains what you need to know to get it working. If you can piece it out alone from there, I'll convert it to C# for you if that's what you prefer.
  14. I personally can't find any examples where it is used, but it's the way I would go about it for a start. I naturally think of left ctrl as crouch as it is in many games, which is somewhat of an abstract form of decrementing, depending how you see it. Another set up I can pull out of my mind is to use Q/E as well, that seems friendly. Or left/right click. whatever feels best is the way to go for controls.
  15. What I think would be relatively friendly is to set up WASD movement to allow the player to traverse or in other words glide across the surface of the water (un-submerged). Lock this movement to only operate on the Z/X axis. For depth-control under the surface of the water: map left shift and left ctrl as an increment/decrement function for the player's Y position. https://gyazo.com/2b49dbcf208b11b9b8a586030c5272e8 https://gyazo.com/2b49dbcf208b11b9b8a586030c5272e8