All Questions
Tagged with unity-game-engine unityscript
1,512
questions
0
votes
0
answers
13
views
Forward and Backward movement Visual Scripting not working together
I have an issue while working with visual scripts, I'm learning it and new to it so when I created the forward and backward movement in the visual scripts it is working separately but not together as ...
1
vote
2
answers
42
views
Camera Won't Shake When Enemy Attacked
I want my camera shake when isDamaging = true at EnemyDamage script but It wont happent
I dont even get why theres a problem with that stuff it doesnt make sense its looking like %100 true
when I ...
0
votes
1
answer
26
views
How do I make a different interval for the appearance of balls?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpawnManagerX : MonoBehaviour
{
public GameObject[] ballPrefabs;
private float spawnLimitXLeft = -...
0
votes
1
answer
45
views
Why is the player not moving with a moving platform in unity?
If I am running the game in build mode, and when I jump onto the platform, the player moves along with it. But whenever the player dies and goes inactive, resets position and goes active again, it ...
-2
votes
0
answers
26
views
How to destroy a tile gradually unity
Im working on an AR enless runner game by locking the runner's position and let the tile moving backward
https://www.youtube.com/watch?v=hMczM8i9qDQ
Im expecting to fade out the part of tile that has ...
0
votes
0
answers
30
views
Play Games Platform works development build but don't works release built
encountered an error in a game I've been working on for a long time, and unfortunately the solutions I searched on "Google" didn't work or I couldn't manage it.
about the problem;
The game ...
1
vote
0
answers
19
views
unity android swipe controller script is correct but not working
first of all, sorry my english. I made a game in the style of endless run and the character can swipe left and right and jump in the game. The game works fine in the editor, but when I run it on ...
0
votes
1
answer
39
views
What is the correct syntax to use LINQ SUM in UnityScript
Hello I'm trying to figure out the correct syntax for getting the sum from a class list using LINQ in unityscript
var totalCount: int;
class munsters {
var beast: String;
var min: int = 1;
var max:...
-2
votes
1
answer
281
views
MissingMethodException : UnityEngine.GameObject.setActive [closed]
I have added the below script to the NPC. on clicking on to the NPC the MessageBox (Panel in Canvas) should appear. But the MessageBox.setActive() part is not working. Below is the code.
import ...
2
votes
1
answer
2k
views
Why is it SO Hard to Just Mute a Sound in Unity?
I have spent all day looking for a solution to this problem, and I simply can't find one. Using JavaScript in Unity 3D, I have a script where I want to play a sound when the player's velocity on the X ...
0
votes
1
answer
79
views
Unity Javascript transform object not able to go in
var Distance;
var Target = transform;
var lookAtDistance = 25.0;
var attackRange = 15.0;
var moveSpeed = 5.0;
var Damping = 6.0;
function Update ()
{
Distance = Vector3.Distance(Target.position, ...
0
votes
1
answer
959
views
Unity How to turn off a gameObject's Mesh Collider when a collison on another object is done?
On my unity project I have encountered a problem I want to collide with an object then I want to turn on the mesh collider of an other gameObject this is my code now...
#pragma strict
private var ...
0
votes
0
answers
37
views
Unity3D: How would I go by saving a list/ array of strings/ objects/ prefabs? [duplicate]
For my game in Unity 2017.2, I am trying to save the prefabs that I just bought in the games store (not IAP) and load them to a garage type scene.
I was first thinking I could get the name of the ...
0
votes
1
answer
722
views
Teleporting Character From Edge to Edge of the Screen
I am trying to Teleport a character from a Edge of the screen to the contrary edge I'm using this:
var pos: Vector3 = Camera.main.WorldToViewportPoint(transform.position);
if (pos.x < 0.0) ...
1
vote
2
answers
9k
views
How can I switch between shaders in real time?
The problem is that I have two shaders. If I change between the shaders while the game is running it will not take effect. Only if I start the game with a current shader it will use the shader but not ...