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

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


Cross reference crashes Unity (was: Compilation and launch of project takes...

Hello,Recently I've noticed that compiling and launching of my project inside Unity editor takes much more time than couple days ago. Much more. About 30 seconds just for launch instead of 2 seconds....

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


Unity 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 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

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


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