Omar Guendeli
  • Member for 4 years, 9 months
  • Last seen more than a week ago
Fast zoom in and out in Unity Editor
1 votes

Holding Right Mouse Button button and scrolling the scroll wheel will let you adjust the WASD speed.

View answer
My lighting stays the same when I go indoors?
1 votes

One solution is to setup light probes so your dynamic objects receive bounced light information from the static environment. As explained in the manual: Light Probes for moving objects.

View answer
Collisions and Colliders
Accepted answer
2 votes

You can configure the layer collision matrix in the Physics settings of your project so your gameobject in a particular layer interacts or not with other layers You can find it in Edit > Project ...

View answer
Updating object's property on Start is visible for a second when game loads
-2 votes

I was under the impression that anything that happens in the Start() method takes place before GameObjects are rendered. No, here is a link that breakdowns the unity events execution order And also, ...

View answer
How to Enable canvas with Event during a animation clip
1 votes

This is a conceptual problem, Animations are file assets in the project while GameObject is a reference to something in your active Scene(s). you cannot drag a Scene GameObject in an AnimationEvent ...

View answer
Background music not stopping while game is set to paused
0 votes

You can use AudioListener.pause to true to pause them. and also you can specify some sounds sources to ignore that by setting AudioSource.ignoreListenerPause to true. Useful when you want some ...

View answer
How to delete Unity Hybrid ECS Entities?
1 votes

Coming from an Entitas background here, i usually: Create a component called Destroy. at the end of the execution cycle i have a Cleanup System that reacts for entities that have the Destroy ...

View answer
How do i properly make a skybox in Unity?
Accepted answer
2 votes

My approach is to generate an Inverted Sphere and put an Equirectangular texture (2:1 ratio) on it, it will work by default. here is an editor script that will generate an inverted sphere for you: ...

View answer
Why is drawing good lines in Unity so hard?
Accepted answer
1 votes

GL.Lines are not gone, if using the Scriptable Render Pipeline you can use your GL methods in this event: RenderPipeline.beginCameraRender void Start(){ RenderPipeline.beginCameraRendering = ...

View answer
Pushing Rigidbody forward doesn't go straight
2 votes

Those calculations you made are taking into account a direction that is forward of the camera center. But you are instanciating the grenade in an arbitrary transform called ShootPoint. so how to ...

View answer
Why when using Linerenderer it's drawing a line also in scene view?
Accepted answer
2 votes

Debug.DrawLine() will only work in Editor mode when Gizmos are activated. this feature won't work in a build. The LineRenderer component is drawn on runtime, so it works in both editor playmode and ...

View answer
Trying to trigger dialogue when the space bar is clicked, and two objects are colliding
Accepted answer
1 votes

Here is your OnTriggerStay method public void OnTriggerStay2D(Collider2D collision) { if (Input.GetKey(KeyCode.Space)) { Dialogue dialogue = collision.GetComponent<...

View answer
UI Button Click Animation
Accepted answer
0 votes

In order to use animations as UI buttons transition, an Animator component should exist. you can generate it. in the generated animation controller, just drag and drop your animations into the state ...

View answer
How can I achieve a similar day/night cycle of the sky, but in a 2D game?
3 votes

For my small needs i only needed to shift the color of my sprites. through those two scripts. Cycler : singleton, will go through all the registered sprites and change their color using UnityEngine; ...

View answer
Unity: How many Raycasts per Sphere Collider?
2 votes

Not always a raycast. Unity3D's collision is based on PhysX and it support multiple types of geometry queries: raycasts test a ray against a geometry object. sweeps move one geometry object along a ...

View answer
Sync a file across multiple devices
Accepted answer
1 votes

Have you considered saving/loading data into/from XML (or Json) ? It can easily be read from a remote source as TextAsset and parsed. This Unify snippet is a good starting point to save/load your ...

View answer
Is it possible to have two trigger zones around the same GameObject in unity?
1 votes

I would have made this trigger a solid collider and edit the Layer Collision Matrix (found in Edit>Project Settings>Physics) to make it not interact with gameObject1, given a special layer. More info ...

View answer
How to get samsung gear vr controller rotation & position in unity
Accepted answer
0 votes

There are two ways of doing it: 1. Using OVRCameraRig: it comes bundled with OVRManager and also transform components, here you can just place your mesh object into the RHandAnchor or LHandAnchor (...

View answer
How to move a Line Renderer as its game object moves
1 votes

First of all make sure your LineRenderer component use World Position. then in your Update() method just assign points positions (this code works for 5.6.0): void Update(){ if (...

View answer
Why does my Unity/Android game get a small amount of lag when not being touched for some time?
1 votes

You can have a look at the Screen.sleepTimeout property and initialize it to: Screen.sleepTimeout = SleepTimeout.NeverSleep; Documentation link: https://docs.unity3d.com/ScriptReference/Screen-...

View answer
SteamVR_TrackedObjects disabled on dashboard
Accepted answer
1 votes

I first tried commenting those two methods that appear in SteamVR_ControllerManager.cs line 130 // Reparents to a new object and deactivates that object (this allows // us to call SetActive in ...

View answer
Unity3D: Lightmap bleeding in standalone build
Accepted answer
0 votes

Solved, The issue here was in Build Settings > Vertex Compression that was turned to "everything", unchecking the UV1 channel (the second channel used for lightmap UVs) solved this issue.

View answer
Unity3D to Android: CommandInvokationFailure: Unable to convert classes into dex formatc
1 votes

Maybe those two plugins are some same android .jar, and thus importing them created a duplicate in your Plugins/Android folder. Check if you have two android-support jars in that folder and delete ...

View answer
Unity - Best Random Movement Strategy?
0 votes

You can build a Navigation Mesh of your movable area and send your agents to arbitrary positions inside its bounds.

View answer
How to add highlights or descriptions to the Unity Editor interface
Accepted answer
0 votes

Your are asking about Unity Editor Scripting, yes there are a lot of ways to extend your inspector and even build tools inside the editor. as for highlights, you can use the tooltip attribute of ...

View answer
Unity 3d C# - Can’t move through the air while jumping
1 votes

It is because your horizontal movement is managed inside the controller.isGrounded block. to handle horizontal movements when jumping you should remove that block from there and for the sake of better ...

View answer
My money will only save for one game run
0 votes

At game launch, your money variable will always be 0. you should save the pref with the new value at the game end, and retrieve it in the game init part. int money; // it's surely initialized ...

View answer