Quantcast
Channel: Latest Questions by Wrymnn
Browsing all 131 articles
Browse latest View live
↧

uNet - need method that is called before OnStartClient()

Hi, I need to call method to generate level before any **OnStartClient()** is called for on players (even Host). But not sure why **OnStartSever()** is not called first, but host`s **OnStartClient()**...

View Article


Change the easy script for better performance

Hi, I have 200+ objects and I call this script in update function. This decreases my performance a lot. Is there a way how to write it better? I am in 2D. void rotateObject(Vector3 rotationTarget, int...

View Article


2D Spaceship like movement without Rigidbody2D

How would you go about making 2D top down spaceship movement WITHOUT rigidbody2D? You may ask, why not to use it? Well my answer is, because when I have a lot of objects with rigidbody2D (200+), the...

View Article

Max size of scene map

Hi there, I have 2D galaxy generated with 50+ systems. But some systems reach even 100 000 units in coordinates. (So 100 000 Unity units (in Transform) from middle(0,0,0)). Is it good? Or should I...

View Article

Profiler Overhead 90%. What?

What is Overhead? How comes it takes entire 90% (5ms) from the profiler? Is there way how to reduce this horrible number? Will gladly give additional information if needed. I am targeting for PC so no...

View Article


Parenting - performance Question

Is it good for performance to have under one objects parented other 100 objects and under them other 1000 objects? So one parent can have 10000+ objects in it. Will it have impact on performance?

View Article

Two dimensional HashSet/List

I need to have 20 groups in my game. Let's say each group can contain up to 10 gameObjets. But ofc I don't want to do: HashSet group01 = new HashSet(); (HashSet is the same as List) HashSet group02 =...

View Article

Rotate rigidbody2D towards target

I have A lot of gameobjects on scene I need to rotate. They are AI spaceships. However this: Vector3 targetVector = targetPosition - myTransform.position; float angle = Mathf.Atan2(targetVector.y,...

View Article


2D Glow/Bloom effect

Hi there, Is there a way how to do similar glow/bloom effect around Planet to this in Unity3D Free? ![alt text][1] I know I can manually draw it in AI or Photoshop, but that is the last resort, since I...

View Article


Change code at runtime

Does unity have some kind of debug tool? Or when I run the game, change some code, and the game will continue with changes I made WITHOUT resetting all variables and breaking the game. I know it has to...

View Article

Cannot reference object itself

This is kinda strange thing, or I just forget something. I spawn object B from object A. And I make object A parent of object B right after its Instantiation. - Now the problem is, when I try to access...

View Article

Updating code at runtime, without loosing all initialized variables

Hi there I know it is possible to update code at runtime in Unity3d. I run the game, change the code, save the script and the game updates itself. **- However my question is: Is there is option or way...

View Article

Checking area via code or detection collider

What do you think is better for performance? - Thousands of objects checking for enemies around via code? - Or thousands of objects checking for nearby enemies with its attached, say Circle collider?...

View Article


Visual Studio - Unity problems

I use Visual Studio 2013 Express for Desktops as my IDE. I set it in Unity preferences as my IDE instead of monodevelop. - However, when I upgraded to Unity 5, when I double click on any script, it...

View Article

GUI 4.6 won`t show on camera

No matter what I do, add button, Image, text, UI will NOT show on camera/screen. It did the first time, but camera was taking only lower left corner of main UI canvas. Like retarded..... I have set...

View Article


Android build - black screen for some devices

I have a problem where I get only black-screen after start up on android(4.4.2) for android build. I test it on Asus MEMO pad K013, here I get black screen. Then I run the same build on my Samsung...

View Article

Cannot reset animation

Hi, I have two states, the animation I want to play, and any state. When the animation should not play, there are 2 transitions controlled by one bool to go from NoState to animation, and from...

View Article


How to get this 2D glow effect?

Hi, how could I achieve similar orange glow effect to this? ![https://lh3.googleusercontent.com/-qAKOZbVFmI8/UtEooVJCUTI/AAAAAAAAA8I/WiZ7xi1PR9E/s1600/AsteroidBelts.png][1] I mean glow that is around...

View Article

Instantiate prefab in editor

Hi, I need to create/instantiate prefab in editor. I know you can use [ExecuteInEditMode] and then just Instantiate(), but that will create copy of the prefab. So when I change the prefab, this object...

View Article

How to use array in cg shader

I want to use array in my shader. I know how to pass value: shaderMat.SetFloat("_Sample0", 150); In my shader, I have declared: uniform float _Sample[2]; But when I try to access the values as...

View Article
Browsing all 131 articles
Browse latest View live


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