Quantcast
Browsing all 152 articles
Browse latest View live

How to turn Read/Write on a texture to on dynamically in code?

I want to be able to turn read/write on dynamically in code is there a way to do this?

View Article


problem in changing the throwing angle of a ball,dynamically..!

Hi, I did a game i.e throwing a ball into a target. For the current situation I wrote code like this. [RequireComponent (typeof(Animation))] public class Player : MonoBehaviour { public Vector3...

View Article


Building a NavMesh at Runtime

Hi, I'm procedurally generating a "city" mesh, at runtime, and I'd like to build a NavMesh also at runtime, after the ground mesh generation. Is that possible? Thanks in advance.

View Article

how to add models dynamically at runtime in unity web output?

I am new to unity. I want to know how to add models to my building from a folder at runtime. Please Help. Thanks Advance

View Article

how to make primitive dynamically in game

I want to make a create type of mode for my game and i want the player to hit "c" and drop out a primitive on the ground for him to stack and build walls and stuff. Even better would be a remade model...

View Article


Add a child GameObject to a tk2d sprite dynamically

Hello everyone, I have a 2D character with "Idle" animation, (3-4 frames) and I am using tk2d. When I hit my character, I need to add a scarf/injury (png) to the hit point. I am able to Instantiate at...

View Article

Create mesh/collider dynamically

Here's brief sketch of my idea. - [http://www.youtube.com/watch?v=1gekW0egUwY][1] With two levers, make various shapes.. I'm making some puzzle game and this would be so-called Core Mechanics.. I'm so...

View Article

Unity Meshes for C# generated objects

Hi I was wondering if anyone could help me with a problem I've got involving generating 3D text using C# script included in the class definition textM.name = inTarget.Name;...

View Article


Can you use "GetComponent" dynamically?

I'm using: public GameObject target; private ValueField valueField; void Awake (){ valueField = target.GetComponent(); } void OnMouseDown () { valueField.addValue(value); } It works great. I can set...

View Article


How to assign a gameObject to prefab (in-game via code)?

Hi , I wondered if anyone knew how to assign a gameObject to a prefab via code in-game. What I'm doing at the moment is letting the user make a car in one scene(garage) and I want to transfer the car...

View Article

How to Load and Play an .ogv movie in MovieTexture

Hi, I want the user to be able to choose an .ogv file from their hard drive and then play it in a MovieTexture on the GUI. So far I've got working: Being able to get the path of an .ogv file: string...

View Article

Navmesh dynamic creation and linking?

I'm exploring some options for path finding, and i was hoping to be able to use the navmesh system in unity. When I have a pre-defined navmesh, my setup works fine (Single paths with links at...

View Article

Is there any way I can delete the part of a GameObject that is inside another?

So I have 2 GameObject being placed by the player. Sometimes they intersect. I need to delete the area that is being intersected. Here is an example of what I'm talking about: ![alt text][1] [1]:...

View Article


Create new sorting layer for sprite in code

I have created a functionality in our 2D project where prefab gameobjects are spawned through code. These gameobjects all appear at about the same spot. The spawned gameobjects consist of several...

View Article

Instantiate flexible amount of objects to prevent frame rate drop

I have a simple scene that instantiates 100 gameobjects one by one. When my laptop is plugged in, the frame rate is fine, but if I'm running on the battery, the frame rate drops considerably midway...

View Article


Dynamically created texture is off in BFE...

Hey guys, I've got a script that takes a sprite, creates a new texture to dynamically create "shadows" of the original texture by changing any non-0 alpha pixels to a "shadow" color. However, for some...

View Article

How do I change a texture for the cube object using the unity script.

Hi, Thank you for reading this post. I'm a beginner for the unity and the unity script. I have some questions for the unity script. [Question No1] When I want to change a texture on the surface of the...

View Article


Allowing users to create customizable characters

Hello I'm relatively new to game design and scripting but fluent in c# so for me the real problem in my game is finding the correct documentation for unity and photon networking we're making a...

View Article

How to set prefab images from script?

I have an inventory panel with a grid layout. I instantiate slots in it. Slot is just an image. I made a prefab called Slot. I am adding the slots to the grid via script. How can I set the image in a...

View Article

how to add models dynamically at runtime in unity web output?

I am new to unity. I want to know how to add models to my building from a folder at runtime. Please Help. Thanks Advance

View Article
Browsing all 152 articles
Browse latest View live


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