How can I get the top right position of a dynamically sized Panel?
I have a Panel that's positioned in the center of my scene (horizontal and vertical). I insert Buttons at runtime into the Panel. To resize the Panel depending of its content I added a Vertical Layout...
View ArticleDynamically Loading asset path issues
Hi guys, I have a problem when trying to change a path to some sprites in unity. My code is: var spritePath : string = "Items\" + itemsList[i]; (ItemsList is a list using Unity generics and...
View ArticleNetworking: How to spawn dynamically created objects
Hi all, Starting my first foray into networking. Been programming a long time, but would like to create a multiplayer game. So far, I understand the concept of creating prefabs and registering them...
View ArticleRun-time generated AnimationClips leaking
I currently create AnimationClips dynamically while my game is running to move some pieces around. You can see what I mean here: [https://youtu.be/u1My9JX4K-c?t=8s][1] , when the pieces get grouped...
View Articleunity webgl, angular js directive,
So I am trying to use an angularjs directive to load a unity webgl game. I have it working but on reload it bombs out, my guess is that b/c I dynamically loaded 'UnityLoader.js' and then tried to...
View ArticleCan i fill a dropdown with data from a database or a Json file?
I need to dynamically fill a dropdown at unity, i can get the information from a database or a Json file(I just know how to fill a dropdown manually at the dropdown's component). Is there a way to do it?
View ArticleHow do i make a dropdown via script(not using the new UI)
Hello, i'm working on an app witch will hame a few dropdown menus, however, using the new UI i couldn't find a way to fill it dynamically. In order to fill it correctly i wanted o create the dropdown...
View ArticleDifferent soundfiles for different velocities - best approach?
Hi all, I have sounds of a kite, recorded at different velocities (slow, moderate, fast) and want to match those with my realtime velocity input. My plan was to attatch 3 audio sources to the object,...
View Articledynamic object constructions
I have a image of a straight line and i want to place a cuboid along the path of this line is it possible to achieve this? how can I do this?
View Articlecreate objects by script and fill them into array
hi all, quite new to c# and struggling to create an array objects, I can use later on in my code. right now I'm doing this: public Light light0; public Light light1; void Start() { lightArr = new...
View ArticleNGUI: Dynmaically change following elements postions on collapse/expand of...
Hi community, i've got a question about the new unity ui (introduced with unity 4.6). I'm trying to build a more complex ui window were some elements have additional options that can be folded out and...
View ArticleLoad font at runtime
Hi ! I'm making an app that must load it's font from a file situated in it's directory (at runtime) , so anyone can change the .ttf font file - , anyway , can this be made ? and if we can't , is...
View ArticleDynamically Loading Unity Content Without Publishing App Store Update
Hello, My client requires to load new Unity content dynamically, at runtime, without publishing an update to the app store. Is this possible? If so, is there sample code? Thanks.
View ArticleAndroid Game / New Cube > Pink
I made an android game with Unity 5. I placed somewhere a button that creates a new cube when I press it. When I play the game from my laptop the cube has yellow color ( it's ok ). When I run it from...
View ArticleScaling dynamic created buttons
Hi, I'm trying to create a dynamic menu in unity but having a problem where my buttons that i create don't scale correctly. I've put Vertical layout group to my panel but it doesn't trigger. Here's a...
View ArticleOne Texture2D from multiple others
Hi guys!, I've been struggling to find a proper way to create a new Texture2D based on multiple others. The Idea is that I dynamically load up a list of Textures2D form a certain folder (that's done)....
View ArticleProblems with dynamically adding and scrolling to Scrollview
Hi! Im trying to increase the capacity (space) in the content of my scrollview, so it can fit more elements than its default element capacity. Im doing the following code beneath, and everything is...
View ArticleIs it possible to use Dinamicaly generated characters instead of prefabs...
That's the question, here i have the code where i generate both, Networkmanager and the dinamicaly generated characters. Idealy, i want to have one of this dinamicaly generated characters, but i failed...
View ArticleDynamicly create 2D Wind Graphic effects
I would like to recreate a wind effect like [this](http://giphy.com/gifs/26uT3VaSHziTy1eDu) one. the lines would need to be dynamicly created by a script or be part of an particle emitter. Can anyone...
View ArticleAdding listeners buttons in for loop
Hello, I tried every solution on the web. I can't get this to work. I tried - Capturing variable locally - Externalizing the for loop into a different function - passing string, objects or int - not...
View Article