Quantcast
Channel: Latest Questions by DaJuice
Browsing latest articles
Browse All 60 View Live

C#, Dynamically accessing properties with a String

Hi there, to make it short, I need to set and get the value of a property of a component using a string. I found this code which is, I believe, supposed to...

View Article



C#, some kind of coroutine that can pause?

Hi! I'd like to have some kind of tool to let me determine when an action will be triggered (in frames is the best way for me), there is the StartCoroutine that seems to work, but I can only use it...

View Article

Optimization: Central "update" system vs using Updates

I have searched on the internetz and found nothing about a system that would use a coroutine to update each frame, then in this coroutine, I'd run through a List of objects that contains all the...

View Article

C# making an optimized UI

Is it a good idea to make a UI that is made of textured sprites and is visible with a second superposed camera that only sees UI? Or maybe remove the system with 2 cameras and try to only use one...

View Article

Application.targetFrameRate... no effect at all

So I set Application.targetFrameRate to 20 (to test if it works), it does not set anything (in standalone or web player) but when I Debug.Log(Application.targetFrameRate), it returns 20. Why.

View Article


ExecuteInEditMode, Only parts of my code?

I'm trying to make a flash timeline exporter and I'd like my assets to automatically be placed once I attach the timeline XML to the component, right now I can make it come true with...

View Article

Controlled Random/ aiming at a number with imperfect precision?

Hello, this is no technical problem, but I was wondering how I could do, by example, make a function that when I call it, I enter a number and it will return a number around it, but it has more chances...

View Article

Transform and "native" components optimization

http://docs.unity3d.com/Documentation/ScriptReference/index.Performance_Optimization.html This page has several little simple hints on how to optimize, one that surprized me was the part where you...

View Article


Best way to have shadows in iOS?

I need to find a way to get those shadows working with minimal impact on performance, because this game is focused on mobile platforms. I thought I found a solution, first I'd use a second camera and...

View Article


C# do uninstantiated dictionaries affect memory?

I'm asking there because I can't seem to find an way to formulate my search so that google understands me. I'm having this class that would be the base of pretty much everything in my game, from...

View Article

Subfolder Windows, how to?

Hello! I've made a request a while back in the unity feedback forum: [link text][1] The global idea was to have several "Project" tabs that each have it's own root and name in order to sort and divide...

View Article

Two outputs, one camera?

Hello, I'm having a hard time figuring this one out, mainly because I have no knowledge on cameras. I'd like my camera to have an output on the screen (normal camera) as well as on a texture, this is...

View Article

The weight of textures is funny. why?

A 2048x2048 texture. In the editor they tell me the weight of my spritesheet: 16MB In the explorer they tell me the weight of my spritesheet: 2.92MB Why?

View Article


Stream from disc audio file, memory management?

I'm pretty sure that stream from disc is meant to be able to play musics while not having to allocate memory (or a little) for it, thus making loading faster and leaving more memory available, but when...

View Article

Stream from disc audio file, doesn't work on iPad1?

I haven't tried on many platforms, only iPad1 and the editor environment, but any audio that is stream from disc does not play on iPad1 and boosts the memory usage in the editor profiler. Anyone got an...

View Article


Textures/Atlases and memory management

I've been making a game for 5 months now, following what the profiler tells me, but I've been told that the unity profiler is kind of unaccurate, but I never thought it would be so much. I've just...

View Article

Proper and clean collisions for platformers?

My character jumps, he lands on the ground, he appears to be sunk into the ground for a frame, then he is placed where he should be, this gives a really cheap feel to the game, how to prevent that?...

View Article


Handheld.PlayFullScreenMovie not working... on some devices

So here is the problem: my line Handheld.PlayFullScreenMovie("new_jb_intro_1136.mov", Color.black, FullScreenMovieControlMode.Hidden); works just fine on iPad3 and on OUYA, but it does absolutely...

View Article

Combine meshes, Weld planes together

Hello! I need to combine meshes, but once I apply the texture, it must stay constant between meshes. So I'd like a way to easily merge quads meshes or draw a very complicated plane made of several...

View Article

Video: Not ready to play yet

Hi there, I have a problem with the mp4 videos / movietextures, it just won't play or display preview, telling me that it is "Not ready to play yet". Basically it is the same issue and question as this...

View Article
Browsing latest articles
Browse All 60 View Live




Latest Images