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 ArticleHow 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 ArticleHow 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 ArticleIncrease 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 ArticleBitwise 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 ArticleHow 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 ArticleStruct 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 ArticleMaximum value of "enum"
Hello,How to get maximum value of enumeration? Like this:enum SomeEnumeration { A = 1, B = 2, H = 30 }
View ArticleRemove 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 ArticleOnTrigger 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 ArticleHow 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 ArticleProfiler 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 ArticleCrash 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 ArticleTouch 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 ArticleHow 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 ArticleSweepTest() 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 ArticleHow 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 ArticleWWW 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 ArticleUnity 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 ArticleLicensing. 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 ArticleStatic 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 ArticleChange 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 ArticleWarning "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 ArticleHow 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 ArticleOnCollision 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 ArticleFieldInfo.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 ArticleUnity 4 updates after version 5 release
Hello, How long will Unity 4 get updates after version 5 release? Is there any information about it?
View ArticlePhysics architecture. When first step after collision happens?
Hello, For example two standard objects collide together and physics changes their velocities automatically. Will the first step with new velocities happens in the same physics tact or in the next one?...
View ArticleKeyboard shortcuts Ctrl+Alt in [MenuItem] are Ctrl+Alt+Shift suddenly
I'm updating project from 2018.2 to 2019.1.3. And all keyboard shortcuts with "Ctrl+Alt" started to work as "Ctrl+Alt+Shift". [MenuItem("Custom/test Ctrl Alt K %&K")] static public void...
View ArticleDuplicate prefab and all its variants to new prefab with new variants
Is it possible to make totally independent copy of prefab with all its variants? For example I have: Prefab_1 -> Variant_1 -> Variant_2 And at the end there must be: Copy_Prefab_1 ->...
View Article