Quantcast
Channel: Latest Questions by khoatic
Browsing all 97 articles
Browse latest View live

Problem with List

So Im calling a function in a class called PathNode, of an instantiated object. I later then call that same class but a different function that sets a value from that list. However im testing the count...

View Article



List in prefab instantiated object not saving after Awake

So im instantiating a prefab with a script attached to it. inside the prefab script it holds a List variable. right now Im testing to figure out what the problem is, but what seems to be happening is...

View Article

Physics.OverlapSphere not giving proper coordinates

So Im trying to use Physics.OverlapSphere to get a set of objects around the object with the attached script. when testing its showing their locations to be exactly the same, I cant figure out why,...

View Article

using Raycast to detect collision

So i have an object im wanting to move till it reaches the object. I tried checking if the coordinates match but that didnt work. So i decided to use a raycast since the moving object is moving in one...

View Article

instantiating a cube so a side is parallel with a Vector

Im looking to have a cube adjust its side in the same direction as a vector in my scene. I was wondering if anyone knows a good place to start with this. the main thing im having trouble figuring out...

View Article


using a Mesh Volume for AI

So in my game right now, im having boxes spawn dynamically to create routes an AI can travel in. Im trying to figure out a good way i could use these to create a pathfinding technique. please help.

View Article

Resizing multiple GUI Textures to remain together

So the problem im facing is that I am using a GUITexture to display a background image. Then in front of that Im using a different GUITexture to display the button images. I managed to get it so i can...

View Article

Particle system drifting to a dynamic point

Im looking to have a particle system spawn and all the particles move to a specific point in the world that is moving. Im alittle confused how i might be able to do this, if any of you have any help on...

View Article


Checking for idle hover using tooltips

So I recently started using tooltips to detect when the mouse hovers over a GUI.Button to play a sound. I have it so it works when you hover over the button it fires the sound, but if the mouse stays...

View Article


custom GUI that supports post processing

Hey, so i recently bought https://www.assetstore.unity3d.com/#/content/3842 and Im trying to have those effect work on my GUI. I know it wasn't working because of the order Rendering is happening,...

View Article

Drag and Drop in Inspector

So Im looking to have a custom area in my inspector i can simply drag and drop objects in. When it is dropped in Im wanting to save that data in a new class within a list and have it so i can adjust...

View Article

Null Reference from Custom Editor

So Ive been getting null errors on the SoundObj In the DropAreaGUI function in the SoundInspector Class. Im unsure what im doing wrong, but even if i try and play it all the data gets wiped away and im...

View Article

how can I create a new Object from custom Editor

So Im trying to have it so when I drag a object in a box in the inspector it Creates a new SoundObj, then adds that object to the SoundManager's Sounds list. In the inspector Im wanting it to show all...

View Article


FMOD Channels in Unity

So I'm trying to create a Master Volume using FMOD in Unity. My initial thought was to use a channel however in the unity plugin version Im not seeing Channels that I can use. I looked around and im...

View Article

LOS Rotation with constant width

I have a basic scene right now with two objects, spheres just for now. One is going to be the AI while the other the player. Im trying to check if the AI is in LOS of the Player. If the AI is, im...

View Article


Following Mouse Motion

In my 3D game, I have three main components to this mechanic: The Player which is pretty much acting as the pivot point, the object which rotates around the Player dictated by the mouse position, the...

View Article

Diffuse fullforwardshadows shader

So I'm trying to have a spotlight give shadows in forward rendering mode. I've done some research and found i should include #pragma surface surf Lambert fullforwardshadows in the shader itself. I'm...

View Article


Transparent/Diffuse Texture that includes fullforwardShadow

I managed to get a Diffuse fullforwardShadow Working, However I have some textures that are transparent. How could i modify this code to handle this? Shader "Custom/DiffuseForward" { Properties {...

View Article

Transparent/diffuse using fullforwardshadows

So Im trying to make it so I can use forward rending so i can create shadows using spotlights and point lights. I have it so it will work for non-transparent objects. Now im trying to get...

View Article

Recieving shadows on a semi-transparent texture with normal texture attached

So I was wanting to have a semi-transparent texture on a quad object recieve shadows. I was thinking about adding a normal map of the Semi-Transparent texture to make it more fesible if any. Does...

View Article
Browsing all 97 articles
Browse latest View live




Latest Images