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

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


Bitwise not gives incorrect result

Hello,I'm trying to make a mask for layer. And doing this: var mask : int = ~(256);Result is: -257That is not at all a "bitwise NOT" for 256.Why it is so?

View Article

How many lights could affect at an object at the same time

Hello,In one place of my scene there is a large amount of light sources. And object moving there start to blink. When I decrease amount of light it blinks less. I wonder could it be because of amount...

View Article

Struct in JavaScript

Hello,Is there a way to make a structure in JavaScript? I mean not class but structure as Vector3 for example. For creating big fast arrays. Something like this:struct SomeStruct{ var i : int; var f :...

View Article


Maximum value of "enum"

Hello,How to get maximum value of enumeration? Like this:enum SomeEnumeration { A = 1, B = 2, H = 30 }

View Article

Remove all clips from animation by script

Hello,How to remove all AnimationClips from Animation via script? The same as set Size in editor to 0 but from script. I'm trying do do so:while ( animation.GetClipCount() > 0 ) for (var state :...

View Article

OnTrigger events on CharacterController in Unity 3

With moving project to Unity 3 detection of trigger collisions with CharacterController start working strange. There is one object with box collider which is trigger and other object with...

View Article


How much Unity iOS Pro license affects on application size and loading speed?

How much application size decreasing with iOS Pro license? Is there precise amount of megabytes or percent of the application? And also is it increases speed of assets loading or only phase where Unity...

View Article


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
Browsing all 88 articles
Browse latest View live


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