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

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


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 Article

Dynamically draw line graph using array values (javascript preferred)

Hi all, I have stored an array of transform values for an object in a game. I would like to create a plotted graph of these transform values (x) over time (y), when the timer stops ( though not...

View Article

Loading Assets from server on as needed basis.

I want to build an inventory of 3D objects in my application My designers will drop 3D object assets into a folder on a server as part of our workflow. I don't want to add asset bundles to the workflow...

View Article

Unity 2d Dynamic UI text not rendering on Canvas

Hi I am trying to add a dynamic text to canvas but it is not appearing on screen. please help. below is my code. var text = this.gameObject.GetComponentInChildren (); text.text = "abc"; Text t =...

View Article


Unity gets hang and nothing work in it, even I have to close it from the task...

I'm generating an infinite dynamically path using prefab of simple cube and a player object which is an another cube is moving on that path. When the player object passes from a path that part of path...

View Article

How do I properly position dynamically loaded images and maintain aspect ratio ?

I'm working on a 2D project and I'm having a hard time figuring this out. Currently I load images through an xml file, all of which are located in the StreamingAssets folder. Images are loaded (with a...

View Article


Naming an Instance of a class

Good afternoon, I'm having trouble figuring out how to name an instance of a class automatically. What i mean in detail is i am trying to create a recipe book that a user can put in a name, ingredients...

View Article

Best approach to create visual details and add them on top of a skinned mesh...

Hey everyone! The last few days I struggled to find a good solution for a problem regarding placing a texture or a decal on top of a skinned mesh. The basic idea is to place scratches or bruises on the...

View Article


How to dynamically reveal another material/texture

![Example outcome][1] [1]: /storage/temp/131221-maze-fill-with-texture.png ---------- My idea is to basically have a circle/area around the player, and as they move through the level, reveal a...

View Article

How to dynamically place images/sprites

I'm making a 2D side-scroller that is set on a city street. Player is walking in front of many buildings, all different. I want to generate a random/unique city street each time, and already have a few...

View Article

How to dynamically set transform positions (for a Bezier curve)?

Hey everyone, I'm remaking a level from Mega Man 2 and I'm having trouble with this dog enemy. I have the dog which instantiates a certain number of fireballs every couple of seconds which seems to be...

View Article
Browsing all 152 articles
Browse latest View live


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