Implementing drag and drop in c#
I am new to c# and want to create a board game using buttons as the moveable pieces. i am having trouble making implementing the drag and drop on the buttons. please help
View ArticleNullReferenceException: Object reference not set to an instance of an object...
using UnityEngine; using System.Collections; public class spawn : MonoBehaviour { public GameObject wisp; public GameObject player; public GameObject enemy1; public GameObject enemy2; private...
View ArticleLosing reference to object and attached script
Hello, Having a bit of a weird problem with losing the reference between Script A to object B (TempSaveObject) and its script (TempSaveScript). When Object A is instantiated, (its script) Script A gets...
View Articlewhy does my camera see through walls?
Hi, I'm new to Unity and really don't understand scripting. I'm trying to make a maze game and have the camera see through the character's eyes (a subjective shot). I would also like the camera to...
View ArticleEmgu/OpenCV with Unity Free
Hi all, I'm trying to do a project with OpenCV to find the shapes of objects. I've been looking at Emgu and have tried out the examples in visual studio, these built fine and the .dlls built fine in...
View ArticleOverride for Web checkbox on Texture doesn't work
When I check the box for "override for web" on a texture and try to change the max res to anything it doesn't stay. If I look at the player.log it looks like it did something, but nothing happens. It...
View ArticleHow to control one ragdoll with two players?
Hello We would like to modify the Avatar2Players example script (in the free ver of Unity) so that 2 players would be able to control one ragdoll with the Kinect -one person controls the left arm-leg...
View ArticleC# Class and Array
Hello, im new to unity, only made a few things and rpg elements so far, and ive comen to the point where i think its time i learn about classes and arrays. I really dont have any experience with...
View ArticleManually creating a cubemap?
Hi, I am new to Unity and am trying to re-create a simple in scene I made in 3ds Max inside Unity. I created 3 spheres and placed them in a row and placed a point light above them. The middle sphere...
View Articleinsert new screen effect?
I would like to add effects such as those that can be found in video games as indie witch or as Paranormal or the fearful effects, (such as the screen suddenly turns red and moves), etc.. how do they...
View ArticleHelp making premade Items for farming game
Hi, I've been trying to make items for my farming simulation game (such as seeds, tools etc) but I've hit a snag when trying to make pre-made items the player can get. Originally, the Item class...
View ArticleModifying terrain heights based on a texture (blending the two, not making a...
I'm writing a tool that will add a racetrack to a terrain. I can successfully read a Texture2D, and quite happily modify terrainData. My problem lies with a calculation that I just cannot seem to...
View ArticleHow do I get a navmesh agent to stop at the edge of a collider?
I have my project set to raycast my clicks onto the navmesh and order an object to move towards it using the normal navmesh agent functions for destination. But the behavior I want to emulate is that...
View ArticleCharacterController set the Min Move Distance via Script
Question Above. Need to access Min Move Distance. Someone know how? System.Reflection could be a solution but I never used it.
View Articlehow to Change ide
Hi I download it http://unityide.com/ but I don't know how to install it? Please help me
View ArticleReceive shadows disabled for object, still receiving
I am baking shadows with Unity's beast, however when I disable receive shadows, it seems to still draw the shadows for that object. How can I fix this best? I thought I could remove the static property...
View ArticleGrouping instanciatet meshes ZB. goldcoins
Also mein problem sieht so aus, wenn ich per mausklick per zufallszahl sagen wir 50 gold fallen lasse. aber jedes gold sein eigenes mesh hat also instziert wird. Wie kann ich die goldstücke in eine...
View ArticleCan you get this c# Simplex Noise script working?
I can't attach this noise script to an object even if i do : Monobehaviour on the class... and i can't access the SimplexNoiseGenerator.noise function from js: js access code: function equation1 (...
View ArticleHow to use local version in Asset Server conflict
Seems like the only usable option in an Asset Server conflict is to Discard Local. Of the other two: 1. Skip means you'll have to deal with it later, and 2. "Ignore" option is very, very scary. It...
View ArticleDownload an image from a local device
Hi everyone !!! :-) I'm developing a project in wich I'm using an iPad to control a Windows based application: the Windows application is the server (handled with Unity's calsses) and the iPad is the...
View Article