Quantcast
Channel: Latest Questions by davidwalmsley
Browsing latest articles
Browse All 53 View Live

Creating a Character Collider Script

Im new to Unity and fairly new to Javascript. I am creating a game that uses a movement and camera system similar to Xenogears, and I have the character movement script and the camera script working...

View Article



Scripting a Player Character Collider

Im trying to create a game with a Xenogears style movement and camera system. I created my own scripts for the character movement and for the camera and they are working as intended. I am now trying to...

View Article

How to make lighting work with tiles?

I have been working with the unity and blender to try to create a stage and I have run into a problem. They way I wanted to set things up is to create tiles in blender and bring them over into unity...

View Article

Where can I find Unity Script Tutorials that teach how to make the scripts...

I have been looking around for a long time at various tutorials to teach me Unity Script, and have had great deal of luck every time I am looking for a specific solution to a specific problem Im...

View Article

GetComponent for siblings and parents

I'm trying to put together a battle system, and I've run into a few problems. I'm setting the enemies up to have nearly identical scripts and hierarchy so that they will be easy to reference later on...

View Article


Trouble with targeting enemies from a List

So I am following a tutorial on creating a simple combat system that is in C# and I am trying to convert it into unity script. I have the scene set up with a simple object that will be the player and...

View Article

Adding scripted variables to an array

I am trying to set up way for the player to select spells during combat. I need to put them into an array so that I can I list them and scroll through them. Being a newbie to Unity Script I thought the...

View Article

Sorting a list into multiple smaller lists

Im trying to get certain parts form a large list into a few smaller lists, and Im running into problems. I have it set up with a base Food Class. There is a Fruit and Veggie Class that extend from the...

View Article


What is the best way to implement Game States?

So I am trying to create an RPG, and off the top of my head I will need about 4 different game states that changes what button input does. The first would be the normal state (when your just walking...

View Article


Question about pulling variable types from a List

I am trying to Implement a dialogue system for my game. I have created a class called TextBox that is 3 strings. The three strings display letter my letter to make it look like talking, yada yada. I...

View Article

How do I get the index of an item in a for loop? (js)

I have a list of items that I want to display in their index order, displayed in the OnGUI function by a name variable in their class. I want to put each new item on the next line. How do return the...

View Article

Generic Lists, Item adding and removing options

I've recently had to dive headfirst into generic lists to work out the inventory system in my game. I am trying to make it so that when I remove an item from my inventory list it will leave an empty...

View Article

Best way to access static variables from the inspector

Ill start by by saying Im not sure if this is the best way to go about doing this, but its the best way I could come up with. So any suggestions on doing it a different way are welcome. So, for my...

View Article


Point lights are blinking on and off as the camera moves

I have two directional lights that are very low and a bunch of point lights throughout the scene that handles the majority of the lighting. The issue Im having is that certain lights will blink off and...

View Article

What is the best way to ease a rotation? (js)

I have a gameObject, Player Controller. This gameObject handles all of the movement, which basically moves you in the direction of the input relative to the screen. Inside the Player Controller I have...

View Article


Looking for a forum or group to discuss UnityScript

I've been coding with UnityScript for a few years now, and I've gotten the jist of how things work with it. All the things I have set out to do I have found a way to do through tutorials or this site....

View Article

What's the best way to access a component that isn't pre-defined?

I am trying to create a system that casts magic abilities for my combat system. In a nutshell I want my main combat script to be able to call a MagicStart(); function that will be applied to one of a...

View Article


Best way to light grass?

I am just getting started messing around with different ways to make good looking foliage for nature scenes. My problem is that I can't get the light to hit the grass I've created to match the lighting...

View Article

how do I set Property Drawer dimensions?

So Ive been wanting to learn some editor scripting so a specific class in my game will show up correctly in the inspector. As the class doesn't derive from MonoBehavior I read that I need to look into...

View Article

Turn culling off on the Transparent / Cutout / Diffuse Shader

Can anyone help me figure out how do turn the culling off on the Transparent Cutout Diffuse Shader? Before I get a lot responses that I've seen on unityAnswers I will clarify a few things: - I am sure...

View Article

A Nature/Tree Soft Occlusion Leaves shader that works on any mesh, not just...

How do I make a shader that operates like the Nature/Tree Soft Occlusion Leaves? I just recently updated to Unity 5 from 4 and now the shader I used for grass Nature/Tree Soft Occlusion Leaves isn't...

View Article


Is it possible to make the new standard shader act like a toon shader?

I really like he way the toon shaders look, and I really like the way the standard shader gives all lights shadows. I know the new standard shader works very differently than the all the old shaders,...

View Article


Unity is not playing an animation that I definitely have

Basically Unity is not recognizing an animation I have. When I run my game an error is thrown that says: The animation state targetted_right could not be played because it couldn't be found! Please...

View Article

Need a Shader Solution for lighting a flat vertical mesh horizontally

I'm trying to figure out how to get my grass to blend in correctly with the ground under it. I'll start out by saying I'm not using unity's terrain, just a normal (if not very large) mesh for the...

View Article

Fading out the edges of a mesh without using a material

How can I mask out the edges of mesh so that the alpha fades to zero independently of the material? I am making spell effects and I am wanting move the materials offset values to animate it but I want...

View Article


None of my Blend files are reading anymore

I just downloaded the new version of unity and every single mesh I had imported is no longer working. Is this an intended issue with the new version of unity or is this something that is broken and is...

View Article

Need advice on how do handle my .blend files from here

Okay, so... I am in serious need of advice from anyone who would be willing to help me out here. Since the last Unity update the majority are meshes are seriously messed up in varying degrees (some are...

View Article

When I import FBX files the animation names have the armatures in them now

I'm trying to switch all my blend files over to FBXs and Ive run into another problem. Now all the animation names have the armature they are attached to in the name. Does anyone know what is causing...

View Article

Which of these meshes is more efficient?

![alt text][1] I was working on 3D models for bushes and I was wondering of these two models which is more efficient for Unity to load? I plan on using ALOT of variations of this shape so any small...

View Article


Browsing latest articles
Browse All 53 View Live




Latest Images