Quantcast
Channel: Latest Questions by Santa
Browsing all 88 articles
Browse latest View live
↧

Profiler most expensive value is GameObject.set_active()

In profiler I see that the most expensive value is GameObject.set_active() which is called when I'm activating objects (it shows about 30% of work of several hundred lines script). Why is it so? Is it...

View Article


Crash at first launch with OpenFeint

When I launch game first time after build and install it crashes. It happens when I'm trying to play sound. The reason is that at first launch OpenFeint shows it's window with offer to login. All the...

View Article


Touch getting stuck sometimes on iPhone 2G

Sometimes on iPhone 2G one touch gets stuck. It still detected while nothing touches the screen. Until any touch happens again. Happens rare (one time in 3-4 minutes of active touching). No special way...

View Article

How to allow automatic screen rotation in iOS?

Can Unity automatically rotate screen when I for example turn device in my hands from "Portrait" position to "Portrait Upside Down" position? Is it possible in Unity at all?

View Article

SweepTest() doesn't work for rigidbody with mesh collider

I have rigidbody with mesh collider. And rigidbody.Sweeptest() doesn't work for it. I've tried to make mesh collider both "convex" and not. Where could be problem?

View Article


How to check execution order from script?

Is it possible to check is script placed on the top of execution order? Or on the bottom. From script. For example to remind to set it there in new project.

View Article

WWW returns 'Invalid arguments' error

Hello, I'm trying to download simple file but getting strange error. Simple test code is: WWW www = new WWW( "http://download.unity3d.com/company/images/af2.jpg" ); ... if ( www.error != null )...

View Article

Unity 3 support after version 4 release

Will Unity 3 be supported after version 4 release? I mean if for example Apple updates XCode and iOS builds stop working. For example. Will it be fixed also in Unity 3?

View Article


Licensing. Adroid Pro 4 with Unity Pro 3.

I've got Unity Pro 3 with iOS Pro 3. Is it possible to buy Android Pro 4 without upgrading Unity Pro and use it with Unity 3? I mean that now it's enough for me to use Unity 3. And I would better...

View Article


Static variables optimization

There are several quite big static arrays in the different place of code. For example such as: public static someIndexes = new int[1024, 1024]; There is no references on one of them at all. It just not...

View Article

Change angle of camera in prefab preview

Is it possible to change angle of view for prefab preview area? If object is almost flat or even just a texture on triangle it often shows nothing by default. And it's required to turn it with mouse to...

View Article

Warning "Keeping target iOS version on "4.3" or above is highly advisable"

When I build project for iOS 4.0 warning appears: *Keeping target iOS version on "4.3" or above is highly advisable to minimize App Store submission troubles.* What it is about? Why there is such...

View Article

How to call standard Unity menu item from script?

Is it possible to call any of the standard menu items from script? For example - Edit -> Project Settings -> Physics - GameObject -> Move to view Thanks

View Article


OnCollision events inside child with collider

Do OnCollision events send inside children of RigidBody? I mean if parent object has RigidBody and it's child has Collider. Child does not recieve OnCollision events. While OnTrigger events send to...

View Article

FieldInfo.GetValue with GameObject field

Using FieldInfo.GetValue with GameObject field doesn't work. --- Code always gives null result: public GameObject someVar; ... GameObject go = fieldInfo.GetValue(parentScript) as GameObject; --- While...

View Article


Pointers in function parameters

How to pass a pointer to structure to a function? For example in this function I need to change Vector3 value:function ChangeVector( vec : Vector3 ) { vec.x = 0; }function Main( ) { var vec = Vector3(...

View Article

Finding assets from script

Hello,Is there a possibility to find all assets with given part of name? I mean they are not loaded. Just stored somewhere in the assets. The way to get all of the assets names to search inside them...

View Article


How to convert string to uppercase or lowercase?

Hello,How to convert string to uppercase or lowercase?I've tried String.toUpperCase() but it's not supported.

View Article

How to set position in ScrollView?

Hello,How to set position in ScrollView?For example I have 300 buttons inside ScrollView and want to set position to make 200-th button visible.

View Article

Increase in speed in iPhone Advanced

Hello,What speed increase gives iPhone Advanced engine version in comparison with iPhone Basic?Is it possible to make 3D game with iPhone Basic and buy Advanced at the end of development? Or iPhone...

View Article
Browsing all 88 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>