Quantcast
Channel: Questions in topic: "dynamically"
Browsing latest articles
Browse All 152 View Live
↧

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

How does terrain work in subnautica

Subnautica made on unity, but apparently uses its own terrain. It is not built on a height map, because it may have "ceilings" and different caves. And it can be dynamically changed in the game. How...

View Article

How to determine shader center?

I'm really confused due to created outline shader. The problem is that i dynamically generate meshes and pivot is outside of a shape. When i increase outline width, my outline moves in the opposite...

View Article

Player Objects get through dynamicaly generated map?

Hello. I followed tutorial, cloned github rebo. My player is being spawned, but when I walk through the map, there are places where my player falls through map... how to fix it?

View Article


Dynamically added UI text is not displaying

The UI text that I've added is not rendering on my screen, and I cannot figure out why. I followed the exact same steps as I'm using to dynamically add a UI image. In the scene at run time, the...

View Article


how to read data of a page like list of images and other data related to it...

I have A json file that contain a menu data to create a scrollable menu. how to read it and create scrollable menu dynamically.

View Article

How can I load 3d models(.obj, .fbx) dynamically in to unity scene after...

Hi, My goal is to import 3D models(.obj) files dynamically from external folders after building it to WebGL. All my 3D model files are present in External folder on my desktop. I want to load all the...

View Article

How can i start an animation from the position a previous animation was...

I have an animation that moves from point A to point B and back. When the Animation gets interrupted i want to call another animation that starts at the exact point where the first animation stopped...

View Article


Dynamically have Game Objects "fade out" the higher their y-level

I'm still a bit new to unity and shaders so I apologize if this question is a bit obvious. I'm trying to set up some sort of shader that dynamically fades objects out once they're higher than an...

View Article

A way to generate walls dynamically

I have a game where you can build your own place and stuff, you can make a custom layout of the place and all, the thing is, i can't figure out how to dynamically create the walls, i tried with...

View Article

How to get vector3 grid position for object dynamically

Hi, I want to create a simple algorithm for placing cubes with grid positioning. I know it's easy with pre calculated positions and spawn cubes around it with triple loops but what I want to achieve is...

View Article

Dynamically load json data to a game: What are the best practices?

Hi Everybody, I'm working on an a quiz type game which currently includes lots of data from excel files, which I manually transfer to json file, and load to the game. I found several code packages for...

View Article



Dynamically generated isometric tiles not displaying in the Android builds.

I'm working on a mobile game where I want to create the isometric tiles dynamically. It works just fine in the editor but when I create an APK and run it in my phone, the tiles are not displayed. 1....

View Article
Browsing latest articles
Browse All 152 View Live


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