Quantcast
Channel: Questions in topic: "dynamically"
Browsing all 152 articles
Browse latest View live
↧

create 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 Article


NGUI: 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 Article


Load 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 Article

Dynamically 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 Article

Android 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 Article


Scaling 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 Article

One 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 Article

Problems 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 Article


Is 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 Article


Dynamicly 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 Article

Adding 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

How to create a cube in 2d view and scale it based on a point/anchor? Than...

I want to create a cube/wall in 2d view and change its scale from one side based on a pivot or anchor, after that see the cube in 3d view. Here is a youtube link/example of what I want to achieve:...

View Article

Best way to create dynamic text objects with Canvas?

Hi all! I am building a 2D game where I need to dynamically create different kinds of text objects based on what user does and what the gameobjects do in the game. Text objects present points which...

View Article


How to attach monobehaviours loaded from assetbundles to gameobjects, Do I...

For now I am able to load scripts from .bytes files which was converted into textAssets and make it run using reflection but I am writing code to attach scripts by finding GameObjects. How can I make...

View Article

Best way of using animator bools in a script

Hey, sorry if the title is strange, i kinda don't know exactly what to type in as a title. Anyway, i am intrigued. I am working on a mobile game, and i am doing my best to keep everything as smooth and...

View Article


Call method with dynamic name

Hello, I have many methods. void loadRun(){ } void loadJump(){ } I need load this via other method like this: void setAnimation(string n){ n(); } setAnimation("loadRun"); how I can release this on c#?

View Article

get folder path dynamically

Hey there, is there any way to get the correct path of a folder, also if the user moves it to another place? I don't want to save into the `Application.persistentDataPath` . Thanks.

View Article


Find a variable using a string

I want to be able to use a generated string to identify which GameObject the supplied prefab is assigned to in a method. The GameObjects are labelled Prefab1, Prefab2, Prefab3, etc. I have a couple...

View Article

Make a walking path system like in "Black and White 2"

Hello, so I was wondering if someone could lead me in the right direction to make a pathway system like in "Black and White 2" Here is a [link to a video with the pathway being made][1]. Please go to...

View Article

Dynamic Textures (Two) For a Single 3D Model/Material

I'm fairly new to Unity but I'm trying to make a 3D card game where the user can swap the theme of cards. So the back and face of the cards will need to have dynamic textures. I pretty much understand...

View Article
Browsing all 152 articles
Browse latest View live


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