Quantcast
Channel: Answers by "tanuj0092"
Browsing latest articles
Browse All 63 View Live

Answer by tanuj0092

Probably the question description is still unclear whether you are directly using the object or instantiating the object . However, there are several possibilities in your case. First, in the image you...

View Article



Answer by tanuj0092

Probably the mass of the object would be less according to the scale factor of your scene. Increase the mass of the object. However after certain point, after increasing the mass, the effect decreases....

View Article

Answer by tanuj0092

After looking at your question, following are the cases : 1. Is your animation event animation.play is constantly fired in update or whatever function, This can block your recoil effect as the idle gun...

View Article

Answer by tanuj0092

Please correct type. gitignore file.. It's obvious that there is some error in that file.

View Article

Answer by tanuj0092

Just check whether the networkView component is attached to your game object and rather than your transform is being referred in networkView component, your script component must be referred there....

View Article


Answer by tanuj0092

you are calling your ad in awake function. Chartboost is not initialized at that point. your implementation is correct though. But you are calling your ad quite early. Try calling your ad at some other...

View Article

Answer by tanuj0092

Every time you instantiate an object in a network, it's viewID is updated alongside. You must be using network.instantiate. That's why. The solution is to synchronize all other gameobjects too. try...

View Article

Answer by tanuj0092

Try these steps: 1. When xxx player gets a hit, send rpc from the xxx to the server using RPCMode.Server argument. 2. Then server will send a RPC to all connected players in the network using...

View Article


Answer by tanuj0092

In the networkView component of that game object on which this script is attached, the transform must be reffered. Refer this script component at that place. This is the reason why rpc are not working...

View Article


Answer by tanuj0092

If you are using unity networking, then possibly in the networkView component, the transform component of that particular gameobject is being reffered. Drag and refer the script on that gameobject to...

View Article

Answer by tanuj0092

Just check whether the isTrigger component of rigidbogy2D is checked or not. It should work when it is on.

View Article

Answer by tanuj0092

Hi, Try to check that whether the rigid body you are trying to find with ray cast is already a child of another rigid body or not? If yes then It will return the parent rigidbody gameObject.

View Article

Answer by tanuj0092

Can you please provide more information? 1. On which gameobject this script is attached? In this case I guess you must be attaching it to the blob. 2. In this script, the scoreText is not been assigned...

View Article


Answer by tanuj0092

Hi, Check the URL in the response. I guess the format of the URL must be incorrect. Check if there is http:// in your response?

View Article

Answer by tanuj0092

Try this code: using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Linq; public class RandomFromList : MonoBehaviour { public List roomList; public GameObject[]...

View Article


Answer by tanuj0092

Hi, You basically inherit a monobehaviour, so to initialize that variable, you can have following methods: 1. You can attach ClassA to a gameobject in the scene. It will automatically initialized. 2....

View Article

Answer by tanuj0092

Once a List is created, it references the values from different memory locations. Eg. if you create an integer list then list[0], list[1]..etc actually points the value at that memory location, not the...

View Article


Answer by tanuj0092

The "InvertMouseY( float val )" is a non static function of the class "CameraOperator". In order to access it, you can have two ways: 1) The first is defining the object of CameraOperator class and...

View Article

Answer by tanuj0092

According to your code, the lines are executed on the button press. However, GUI.Button works on mouse release or finger release. So, this code is executed in only one frame which is normally 1/60 th...

View Article

Answer by tanuj0092

Hey you can switch camera using webcamtexture.deviceName. Try this code: WebCamTexture webCamTexture; WebCamDevice[] devices; void Start() { devices = WebCamTexture.devices; webCamTexture = new...

View Article

Answer by tanuj0092

Hey that can be possible with shader. You can use a culling texture to crop the image in the shape you want. Shader "MaskedTexture" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} _Mask...

View Article

Browsing latest articles
Browse All 63 View Live




Latest Images