Quantcast
Channel: Latest Questions by zenforhire
Browsing all 83 articles
Browse latest View live

changing collider size avoids collision detection?

Hi All, I'm trying to use the physics engine to simulate a traveling sound wave. I'm using a sphere collider whose radius grows to match speed of sound. The edge of the sphere is the wave. Every...

View Article



Prefab name in Project does not match Inspector

Hi All, The prefab name in inspector has the name I assigned to a prefab's instance at runtime. When I try to change name in Inspector, it reverts back to name I assigned at runttime. Run time name:...

View Article

FixedUpdate only called during InvokeRepeating script

Hi All, I'm creating new GameObjects from a prefab in an InvokeRepeating script. The GameObject's FixedUpdate gets called in early stage of application. As time goes on, the FixedUpdate only gets...

View Article

Stopping a selected coroutine

Hi All, Trying to stop a selected coroutine of the same method. Is there a stop method to pass in a handle to a thread? public IEnumerator crossFadeThread( AudioSource fadeOut, AudioSource fadeIn,...

View Article

Unable to select instantiated object in hierarchy during play

Hi All, I am creating NGUI Sprites at runtime for contacts on a navigation map. During play, I cannot select them in the hierarchy view. If I pause, I can select them. Not sure if it's an NGUI or Unity...

View Article


Rigidbody should only torque around selected axis

Hi All, Tuning the turning radius of a ship. It flops over and pitches in the first 90 degrees of course change? It slowly rotates around local Z and X axis too. I only want the y axis. I apply forward...

View Article

Instantiate with the prefab's existing Transform

The Instantiate functions require passing in a position and rotation. I want to use the transform that is with the prefab. I'm using a factory pattern to change the look and feel of base prefab at...

View Article

Synchronizing C# event handlers at Start

Hi All, Having issues with synchronizing c# event handlers at Start(). I cannot control the order of Start calls. An event is sent to synch all the event handlers. Some register handlers after the...

View Article


Where does AddRelativeForce apply forces?

Hi All, Does AddRelativeForce apply it's force at the CG or the (0,0,0) of the rigidbody? If it claims it will not produce a torque, it has to be at the CG/CM? A rigidbody is flopping over in turns...

View Article


Any networking examples using physics engine on server?

All examples of networking I've found never use the Unity physics engine. The "server" seems to just relay messages around like Photon. I want one master to run the simulation and update clients with...

View Article

data shared between scenes cannot be used in inspector?

I'm use to binding/drag and drop my Model data to my Views in the inspector. For game state data you can't since the common solution to a Singleton is new GameObject() at runtime. public class MyClass...

View Article

Cannot obfuscate class inherited by MonoBehavior

Hi All, Been trying out apps that claim to obfuscate Unity builds. Latest one would not change class or method names for any class extending MonoBehavior. Author of app claims Unity will break. Anybody...

View Article

any tool to obfuscate source code not assemblies?

Hi All, I see plenty of reference to obfuscating the .NET assemblies. But won't do classes with Monobehavior superclass. Then have to find yet another obfuscator for android builds? Idea is to...

View Article


Textures get larger in Android build

Hi All, We are new to porting to Android. We have Unity Pro and basic Android. We have hit the 50 meg file limit. The textures get larger when compressed? Is there a setting we are missing?...

View Article

Reflection in water is pixelated

Hi All, The reflection in a water plane is pixelated. I've used several assets and they all have same problems. Attached screen capture.![alt text][1] [1]: /storage/temp/41542-pixellatedreflection02.jpg

View Article


Polygons flickering for distant objects

Hi All, Polygons appear to flicker or flash on distant objects. My take is the drawing order messing up? Sometimes it switches between the backside and forward facing polygons. They are different...

View Article

Different mesh draw call count for test and production scene

Hi All, Mesh assets were created to use an texture atlas. All use the same material. In a test scene, all the assets use one draw call or less. When used in game as collection of board hexes, some use...

View Article


GetComponent started returning nulls

Hi All, Isololated problem to GetComponent returning nulls. Pulled code fragment from production and made a test case: // Use this for initialization void Start () { FishModel.Type fishType =...

View Article

Quickly rotating game map causes motion sickness

The player uses a fast moving vehicle that can make really fast tight turns. We have the camera third person. Close to top down perspective. The player is always at center of view. The map rotates when...

View Article

Calculate camera frustum intersection with plane

We have play area composed of hex gameobjects. We only display/load what is visible. Impossible to load large maps at one time. We want to calculate the polygon intersection with the game board plane....

View Article
Browsing all 83 articles
Browse latest View live




Latest Images