Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >

Questions tagged [unityscript]

STOP: this is probably not the tag you want. UnityScript is a deprecated language. For new questions about scripting in Unity, you probably want the tags "Unity" and "C#". Only use this tag for questions about legacy code written in UnityScript, the old JavaScript-like scripting language available until Unity version 2017.2.

Filter by
Sorted by
Tagged with
0 votes
1 answer
423 views

I'm working in Unity and trying to visualize the forward direction of a GameObject. I came across two approaches: Using transform.forward: ...
Abhinay Singh Negi's user avatar
-1 votes
1 answer
78 views

I was writing the character controller for my player character, but Unity said that there was no mono behavior script in the file I'd written the file right and I included the mono behavior ...
INDO_GEMENG's user avatar
0 votes
0 answers
487 views

I’m trying to develop a game in my Chromebook OS. I can’t find any programming languages I can write in my Chromebook terminal. My terminal won’t take any new programming characters because every time ...
Coding cat's user avatar
0 votes
0 answers
178 views

I want to work with a prefab as local and global variable? something like that. So my question is how to change a prefab scale without affecting the original prefab.
khalid mokhliss's user avatar
0 votes
0 answers
59 views

i want to create a game like angry birds but in orthographic mode 3D . i want to give the player the ability to Jump to the Red and Blue Platform (see the picture below) with the Click, Drag and ...
zied's user avatar
  • 1
0 votes
1 answer
269 views

In my project, I have a ship that moves and increases it's movement speed with respect to time and how long the acceleration button is being pushed(just like the way a real life car works), now as ...
Gozmetaiemax's user avatar
0 votes
1 answer
288 views

I have a method which selects an Image from device. I need to show this image to users. The codes below works fine, does what I need. ...
Ebleme's user avatar
  • 13
0 votes
0 answers
212 views

I want a raycast direction not relative to the rotation, but what happens is that the raycast points to one place as if it was a transform.forward Why is the happening help ...
Dan-mechanics's user avatar
0 votes
1 answer
855 views

So I have a prefab which is an item drop and a timer attached to the main camera. When the player collides with the item, I need the item to destroy then add time to the timer. The itemdrop handling ...
fynmnx's user avatar
  • 103
0 votes
1 answer
2k views

How do I raycast from a UI object? I have tried Ray ray; Camera cam; Transform obj; //UI object ray = cam.ViewportPointToRay(obj.position); AND ...
Gozmetaiemax's user avatar
0 votes
1 answer
408 views

I'm working in Unity3d 2019.2.0f1 and I'm trying to make a chasing bot that follows a certain GameObject with the "Player" tag. I'm not yet attempting a field of ...
Dan-mechanics's user avatar
0 votes
3 answers
2k views

I want to use the same variable for five different child classes. It is basically a boolean that is true when a player purchases an item(represented by a child class) and false when the player is yet ...
Gozmetaiemax's user avatar
0 votes
0 answers
42 views

I'm creating a shooter game and I'm trying to update the current count of enemies on screen. When the laser hits an enemy, it is supposed to subtract 1 from the "spawnedEnemies" and then destroy the ...
Michael Hampshire's user avatar
0 votes
2 answers
2k views

I have a child where I want the rotation to work like (parentRot, parentRot, 0). So first I set its ...
Green_qaue's user avatar
  • 1,933
0 votes
0 answers
21 views

I am stuck several days because of this problem, which I am almost on the verge of giving up. (Using Unity Engine 2019.3a by the way). The TextButtonName.text can't read what TextButton is throwing to ...
LechongManok's user avatar
1 vote
1 answer
1k views

I'm trying to get a simple cannon to rotate to point at the mouse, but I only want it to follow the mouse for 180 degrees and then stop following the mouse, and pick up again when the player re-enters ...
Ultra Gamer's user avatar
1 vote
1 answer
417 views

i am trying to practice on loading data from json files my problem is about when i try to load the sprite path from the json file to load the image icon from the floder that contain it, i manged to do ...
Times's user avatar
  • 11
0 votes
1 answer
150 views

the problem is that if I connect a command the array GetJoystickNames increases an index but if you disconnect it does not reduce the index and continues counting as if it were connected
jose moya's user avatar
0 votes
0 answers
59 views

I have my snowboard character which I am trying to fix the movement for. At the moment, The player is using transform.forward on the rigidbody to move forward. If my player turns around and faces up ...
Knuckles209cp's user avatar
0 votes
0 answers
60 views

I have a code that keeps a gameObject between scenes, the theme is that this gameObjecte has as a child a button, which I can change the linerenderer color, besides changing the image of the button ...
Nicolas Flores Muñoz's user avatar
0 votes
0 answers
41 views

I want the flashlight to look same while looking up and down as when looking straight. Normal Position for Hand and flashlight: Looking up and down, position is completely off: More images for ...
Sup Boy's user avatar
3 votes
1 answer
1k views

How should I decode escaped URL by unity in Swift? I am developing a game with Unity3d. Something MMORPG. With server implemented by me in Swift under ...
Shial's user avatar
  • 141
1 vote
0 answers
55 views

We are developing a scene that will involve heavily interacting with a "touch screen monitor" in the scene.. Because the workflow of the touch screen will need to be dynamic we are creating a REST API ...
R Down's user avatar
  • 111
0 votes
0 answers
81 views

How can i change my movement for mobile i think left and right gonna work but i don't know what should i do for jump ...
duhaonur's user avatar
0 votes
0 answers
20 views

I have a tile and tile has enemies spawn positions, and spawner script in it. Everything works fine when tile is spawned, my ray hits the collider in tile and enemies get spawned, but my spawn script ...
duhaonur's user avatar
0 votes
1 answer
868 views

As you can see in the attached image below and the code, I have added a class that implements the interface ICameraControl attached to a ...
tatmanblue's user avatar
1 vote
0 answers
69 views

First of all a little premise: I'm following this tutorial on YouTube for procedural 2d cave generation in unity using cellular automata and I'm extending it in order to make caves in all three ...
Haraden's user avatar
  • 63
0 votes
0 answers
725 views

I want to erase the image for mouse pointer in unity. My pointer should be as a eraser. What is I do create the eraser? My sprite is always change because it provide from the server. Please help me.
Yasith Saminthaka's user avatar
0 votes
1 answer
525 views

I have used pythagoras to give the bullet a velocity in the bullet class. Velocity is applied when Instantiated(); ...
Lonchenzo's user avatar
1 vote
0 answers
65 views

I'm trying to implement a network proximity checker using my own functions in Unity, using LLAPI. How can I implemnet a network proximity checker, with similar functionalities than the ones in the ...
Federico Caccia's user avatar
2 votes
0 answers
401 views

The Project I'm working actually on a Endless Map Generator (with chunks, height-map noise, threading system, etc..) This is actually what "dev data display" look like: The Goal Now I want to create ...
Arthur's user avatar
  • 193
1 vote
1 answer
3k views

I have an array of gameobjects (some questions) if player hit some triggers a question from the array is displayed randomly, I want to avoid duplication of displaying questions. ...
Sh.Adel's user avatar
  • 191
0 votes
1 answer
461 views

I am having a trouble with OnTriggerEnter with a lot of objects. I have a NavMeshAgent moving randomly throught the scene, then I have a sphere collider inside a children to detect nearby objects. If ...
Jordi Huertas's user avatar
0 votes
1 answer
2k views

I need to send a 2d array to a job system but execute function of IJobParallelFor just accepts one dimension. This is the example: ...
virtouso's user avatar
  • 2,680
2 votes
1 answer
4k views

I just started using the Unity Job System. It has a lot of limitations. You have to use NativeArray with it and NativeArray doesn't allow many types, notably GameObject's. It says there is a bug that ...
virtouso's user avatar
  • 2,680
0 votes
1 answer
919 views

What are the difference between Renderer.sharedMaterial and Renderer.sharedMaterials in Unity?
Abhinay Singh Negi's user avatar
1 vote
1 answer
599 views

I know circle formula and know how to draw it. but I want put 4 points on it with equal distance from each other. how can I do that? I work with unity.
virtouso's user avatar
  • 2,680
0 votes
1 answer
49 views

i made a customization character system that it has a seperate image UI for every part f body like eyes, hat, ears and... now i want to make a unified texture out of it to be able to save it as an ...
virtouso's user avatar
  • 2,680
0 votes
1 answer
664 views

I am trying to create multiple selections for some items on my UI. To perform multiple selections of items I want a user to hold left control button. But then I add ...
Random generalist's user avatar
1 vote
1 answer
3k views

This is the code I am using but it's not working. It drags other object on collision: ...
King Kong's user avatar
1 vote
0 answers
141 views

Following my previous question, I'm building a project, my monitor refresh rate is 60Hz, and in my project I have set my vSync value into 2 so I can get 30fps. ...
raisa_'s user avatar
  • 167
-1 votes
2 answers
652 views

I'am working on bowling ball game and I want to detect how many bowling pins has been knocked down by ball? What is the solution for this problem?
Abhinay Singh Negi's user avatar
0 votes
0 answers
97 views

I have a standard camera in my scene. With standard I mean the camera you get when you click right mouse > Camera, with no modification except for the transform position and rotation. Then I attached ...
JoulinRouge's user avatar
3 votes
1 answer
15k views

In Unity, we can set the vSync value as "No sync" = 0, "Every V Blank" (60 fps) = 1 and "Every Second V Blank" (30 fps) = 2. But in the Unity Quality Setting documentation , it's written the vSync ...
raisa_'s user avatar
  • 167
1 vote
1 answer
2k views

I am working on Bowling Ball game for android. And I want the Bowling Ball to feel like a Bowling ball in the real world. I've already tweaked the Rigidbody values and PhysicsMaterial but it's giving ...
Abhinay Singh Negi's user avatar
0 votes
1 answer
821 views

I have this data As you can see there's a 2nd board there. Now what i want is something like this PSEUDO CODE ...
TheGinxx009's user avatar
0 votes
2 answers
286 views

I want to lock the framerate of my scene to 30fps, then I learned from this post that fps info in Editor Stat isn't reliable, that's why my fps is still around 100. This is my script for setting the ...
raisa_'s user avatar
  • 167
1 vote
1 answer
3k views

My code to detect left mouse click is not working Input.GetMouseButtonDown(0) and Input.GetMouseButtonUp(0). But same code for Input.GetMouseButton(0) is working. Code: ...
Abhinay Singh Negi's user avatar
0 votes
2 answers
1k views

I am developing a game that saves its state in a text file. I am writing that file in Application.persistentDataPath but my issue is that the game progress file is ...
Faisal Imran's user avatar
0 votes
0 answers
179 views

I'm trying to switch between weapons but when I want to display another screen "some example" in client I don't see any change! This screenshot shows what I mean. [1] : https://i.sstatic.net/fCoBf....
Anas Te's user avatar
  • 21

1
2 3 4 5
7