Update mesh for waves (solved)
I am trying to make a nice ocean for a little project yet I cannot for the life of me figure out how to update the mesh. I have tried some suggestions on other threads but nothing worked so I figured I...
View ArticleMake one unit move towards another.
Edit: Okay tossed out the previous script after digging up some tutorials yet this still isn't working any help? I am working on some basic scripts so that I can use them as the basis for a few RTS...
View ArticleToggle setting in another script via a value. (fixed)
Edit: I finally realized what was wrong with it posting the fixed version now for people to see. I am making a little program that has a pause button (sets the timescale to 0) and a slider that allows...
View ArticleCheck if target is in range from Raycast
I am trying to write a script where a NPC shoots a raycast at an enemy and it checks to make sure that the target is in range. When I run the script with no range things it works fine and even comes...
View ArticleGetSpectrumData Obsolete?
I have been looking at doing some stuff with audio in some projects and I was looking up how to get the spectrum data from the audio source. The thing I noticed though is in the scripting documentation...
View ArticleUsing a shader on all child objects
I recently picked up Fragmentum from the Unity asset store and I was curious. With plugins like this that are a shader is there a way that you can though a mesh or similar apply the shader to the...
View ArticleRotation axis jumping from 0 to 180 even when rigid body is locked
I am writing a script that spins an object with a light attached to create a Day-Night cycle. Here is the bit of code. void Update () { xrotation = xrotation + (Time.deltaTime / timescale);...
View ArticleString array out of index C#
I am currently writing a little program that takes a string of numbers, splits them into lines and then writes them to a file. The problem is however all of my string arrays work just fine except this...
View ArticleLoops when generating random string
I am currently working on a program that generates a series of keys based on various factors, the basics are all down however right now I am running into issues where my generator that is supposed to...
View ArticleInspector GUI TextFields going blank when focus changes
I am writing a tiny editor extension to help automate the more repeating parts and I have hit an odd snag. Everything works perfectly fine however as soon as I switch my view to another object and then...
View ArticleWorldspace UI contents scale issues when moved along Z axis
Currently I am working on a UI for VR games that renders the screen in world space. Currently everything is working with the system however I am running into a bizzar bug. The contents of the UI are...
View Article