Quantcast
Channel: Answers by "Psymon"
Browsing latest articles
Browse All 25 View Live

Answer by Psymon

After a lot of optimization on the VRAM usage, my game's not crashing anymore. But I still don't know how to solve the SensorManager error .

View Article



Answer by Psymon

You need to call RollBombs in a coroutine. StartCoroutine(RollBombs());

View Article

Answer by Psymon

If the data stored in your spline is not serializable, the inspector will not save the contents. You may have to define other classes in order to make your spline serializable. For example an array of...

View Article

Answer by Psymon

You need to create a class MainActivity inherited from UnityPlayerActivity. Quick example : package com.example.myplugin; import com.unity3d.player.UnityPlayer; import...

View Article

Answer by Psymon

Resources.LoadAssetAtPath is only available in an editor script. You need to put your picture in a Resources/ folder and then load it with Resources.Load without the extension. Ex :...

View Article


Answer by Psymon

You can do a function like this : //c# void IntToIntArray(int numberToConvert, out int[] numberArray) { string sNumber = numberToConvert.ToString(); numberArray = new int[sNumber.Length]; for(int i =...

View Article

Answer by Psymon

You need to Build only and not build & run.

View Article

Answer by Psymon

Do the .entitlements file have the correct header ? It should be like this : com.apple.security.app-sandbox

View Article


Answer by Psymon

It keeps creating boxes each frame because you don't wait the seconds because you don't yield on your MakeBox function. Try something like this : void Update () { if(ready){ StartCoroutine(MakeBox());...

View Article


Answer by Psymon

If you have a pro version you can use the Unity profiler ( [http://docs.unity3d.com/Documentation/Manual/Profiler.html][1] ). Don't forget to check the Development Build option before building because...

View Article

Answer by Psymon

For the square operator you can use [Mathf.Pow][1] Then your calcul will look like this : y = 0.005f * Mathf.Pow( (x-200), 2 ); [1]: http://docs.unity3d.com/Documentation/ScriptReference/Mathf.Pow.html

View Article

Answer by Psymon

Only Range with float is maximally inclusive. Range with integer is not maximally inclusive. [Unity Documentation][1] [1]: http://docs.unity3d.com/Documentation/ScriptReference/Random.Range.html

View Article
Browsing latest articles
Browse All 25 View Live




Latest Images