Quantcast
Channel: Unity Forum

What is the most efficient and practical method for rendering lots of grass in mobile game?

$
0
0
There's a RPG with lots of grass,I mean a very huge number,like prairie.
Pay attention to mobile platform,high-end phone at less,so it should work with opengl es 3.1,metal and vulkan.Therefore,some technology like geometry shader is not considering for the reason of unsupported in metal.
I want to try GPU Instancing,I mean toggling on the Enable GPU Instancing in material inspector,when I put 1000 grass on-screen,there will be 1000 gameobjects.I don't know if it is the best solution.
Any...

What is the most efficient and practical method for rendering lots of grass in mobile game?

Error: Cannot create FMOD::Sound instance for clip "" (FMOD error: Error loading file. ), again

Maestro Stream Player stopped playing audio

$
0
0
Hello. I've been using the Maestro Midi Player Tool Kit asset's stream player to play midi notes when keys are pressed on the keyboard, but all of a sudden, calling the event to play notes no longer makes a sound.

The example scene still works as expected, nothing is muted in the game window, scripts or player settings, and I've tries restarting the project and my computer.

The code is very simple - it just takes listens for key presses and plays the assigned notes:

Code (CSharp):
  1.  
  2. using...
Maestro Stream Player stopped playing audio

InvalidOperationException during event processing of Dynamic update; resetting event buffer

$
0
0
Hello,
I'm having trouble with the Unity input system.
In the editor, everything works great. However, on the android device I'm getting exceptions when I click on the button:
Code (CSharp):
  1. 2022.02.04 15:01:18.115 21115 21931 Error Unity InvalidOperationException: Event 'id=218191 type=
  2. 2022.02.04 15:01:18.115 21115 21931 Error Unity   at UnityEngine.InputSystem.LowLevel.InputEvent.GetNextInMemoryChecked (UnityEngine.InputSystem.LowLevel.InputEvent* currentPtr,...
InvalidOperationException during event processing of Dynamic update; resetting event buffer

Local override manifest.json?

$
0
0
Hi,
in our team all members use manifest.json in the "Packages" folder. This contains Github links to our private packages for a project.
However, I don't want to use the Github version of the packages, but the one I have locally, since I work on the packages in parallel. So I am looking for a way to override the github links to local directories without entering the local paths in my manifest.json. Because otherwise I always have to be careful when committing to git not to commit the...

Local override manifest.json?

Why can't I access certain scripts from other scripts?

$
0
0
I am working with the FPS Microgame and I can't access scripts I created from within the FPS Microgame Scripts.

I created this script:

Code (CSharp):
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Unity.FPS.Game;
  5.  
  6.     public abstract class XPTranslation : ScriptableObject
  7.     {
  8.         public int CurrentXP { get; protected set; } = 0;
  9.         public int CurrentLevel { get; protected set; } = 1;
  10.         public int XPRequiredForNextLevel =>...
Why can't I access certain scripts from other scripts?

Game Development on Macbook

$
0
0
Hey, I was wondering if Unity runs fine on the 13" MacBook Pro 2012
If not can u suggest a better MacBook that will run Unity just fine pls
Thanks in advance

Failed to present D3D11 swapchain due to device reset/removed. List of Solutions

$
0
0
For reference, the bug report is IN-41214.

So this unrecoverable error can happen for many but essentially your graphic card resets because it's been busy for too long. In my case, if I didn't click ok fast enough I would get a BSOD VIDEO_TDR_FAILURE. I'm listing all the fixes I've found and tried, hoping that it helps you find a fix faster. if you find a fix that's not on the list, please comment on the thread. Remember to include links.

In my case, Unity was using my integrated GPU...

Failed to present D3D11 swapchain due to device reset/removed. List of Solutions

Azure[Sky] - Dynamic Skybox

$
0
0
Azure[Sky] Dynamic Skybox
View attachment 316786
Asset Store Link:
http://u3d.as/fPD

Azure[Sky] Dynamic Skybox is a complete and robust sky system that will raise your project to another level. This system is being improved since 2015 always considering the feedback and needs of the users and for this reason, the plugin has become the tool with the...

Azure[Sky] - Dynamic Skybox

Quadcopter Waypoint Flight & Obstacle Avoidance (Machine Learning)

Light ray visibility distance

$
0
0
Hello, I am looking for a setting that would allow me to see my rays of light from further away.

When I approach my light source, I see the ray but it disappears as soon as I move away from it and is therefore not visible on my camera view. Is there a setting to enable or modify?

I'm using Unity 3D HDRP on version 2023.1.1f1

Thanks !

View attachment 1405665 View attachment 1405671

Init(args) - The practical DI framework

Warning Upgrade Gradle Version for API 33

$
0
0
As Google is not accepting apps with smaller version then API 33, when we build with Unity 2022.3.10f1 LTS it shows a warning about considering updating Gralde version, but this Unity Editor LTS use 7.1.2 as default.

We recommend using a newer Android Gradle plugin to use compileSdk = 33
This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has...


Warning Upgrade Gradle Version for API 33

Error related to Levelplay Update:2 files found with path 'META-INF/kotlinx_coroutines_core.version'

$
0
0
Hello, I use unity levelplay for displaying my ads, I had created a unity game that used Ironsource and Unity Ads adapters and build and published it, no problem at first. Then however, I wanted to upgrade to the new version of the ironsource and unity ads adapters and on top integrate the google ad adapter, in hopes of increasing my ad revenue. In order to upgrade to the newer versions , I deleted my entire Ironsource folder (under "Assets/Ironsource") and then installed the adapters via...

Error related to Levelplay Update:2 files found with path 'META-INF/kotlinx_coroutines_core.version'

OpenGL Deprecation and Removal for macOS and Windows


UnityPlayerForActivityOrService instantiated via Service?

$
0
0
UnityPlayerForActivityOrService implies it can be used from a service, as UnityPlayer was capable in the past. However, there are several calls in UnityPlayerForActivityOrService that assume that passed context is bound to Activity, such as,

Code (CSharp):
  1.     public static boolean isInMultiWindowMode(Activity var0) {
  2.         return PlatformSupport.NOUGAT_SUPPORT ? var0.isInMultiWindowMode() : false;
  3.     }
Which fails if the...

UnityPlayerForActivityOrService instantiated via Service?

Multiplayer Tools Missing in Window tab

Green privacy indicator give false feedback when muted (Vivox)

$
0
0
Hello,

We have a problem in our anrdoid game. We're using vivox. When we join a channel, the green light that indicate to the user the mic is used by the application is turn on even if the mic is mutted. It should be turned off because we're not using the mic. I tested by leaving the channel and the light turn off. Is there a way to stay in the channel without the green light activated when our mic is mutted because it's indicate that we use the mic when it's not.

Is there a known issue?...

Green privacy indicator give false feedback when muted (Vivox)

2D precise collidable ring object

$
0
0
Hey guys I am quite new to unity but understand coding pretty well. For the past week I have tried many ways of creating a ring that I will list below along with issues found. I am trying to achive a colidable object that is precise as a circle object in terms of collisions.

- Drawing the ring object in photoshop. Issues: Pixelated, plus collisions are messed up.

- Vector graphics. Issues: difficult to scale/change and interact with.

- Using Csharp script to create a ring object using...

2D precise collidable ring object

TagField won't repaint when the value of its bound SerializedProperty changed

$
0
0
TagField won't repaint when the value of its bound SerializedProperty changed.
Unity version: 2022.3.10f1.
View attachment 1405674

Code:
Code (CSharp):
  1. using System;
  2. using System.Diagnostics;
  3. using UnityEditor;
  4. using UnityEditor.UIElements;
  5. using UnityEngine;
  6. using UnityEngine.UIElements;
  7.  
  8. [Conditional("UNITY_EDITOR")]
  9. [AttributeUsage(AttributeTargets.Field)]
  10. public class TagPopupAttribute : PropertyAttribute { }
  11.  
  12. [CustomPropertyDrawer(typeof(TagPopupAttribute))]
  13. internal class...
TagField won't repaint when the value of its bound SerializedProperty changed

Vivox in Ios mode has error

$
0
0
Hello, whenever I run unity on the editor (IOS platform ) I encounter this error and when I build the project for Xcode 14 and build the project on the Ios simulator, I encounter the second error log.
Vivox version: "com.unity.services.vivox": "15.1.180000-pre.1"
Unity Version: 2021.3.11 f1 LTS

Code (CSharp):
  1. EntryPointNotFoundException: SWIGRegisterExceptionCallbacks_VivoxCoreInstance assembly:<unknown assembly> type:<unknown type> member:(null)...
Vivox in Ios mode has error

How to randomize Y position of spawned gameObject?

$
0
0
I'm creating a flappy bird clone as a learning exercise (I'm brand new to game dev/ unity) and I've nearly finished on my own, I just need to set it so the new pipes that spawn have a randomised position on the Y axis, how would I go about this? Attached a screenshots of the code that makes the pipes move, code that spawns the pipes and a screenshot in game showing them all on the same Y axis.
Thanks :) View attachment 1405632 View attachment 1405638 View attachment 1405635

Spam is really getting ridiculous now

$
0
0
Spam is getting really ridiculous lately:
View attachment 1405269

Ive said this before in other places on the forum but whatever "measures" are in place are just absolutely shockingly bad compared to every other forum I frequent.

Whenever suggestions are made people say "that would do more harm than good" or other excuses, but at this point surely anything is better than this?

This is the 3rd time today Ive seen the entire first page littered with stuff like this.

EDIT: literally 5...

Spam is really getting ridiculous now

`EyeGaze:/EyeGaze` device not added to system

Timeline animation offset is broken.

$
0
0
I have a unit and want to move it around while having an animation played, animation does not have a root motion.

I tried absolutelly all the possible combination off :

1. Root Motion On / Off on character
2. Apply transform offset / Scene Offset / Auto
3. Blend animation clips with Two different Clip offset | override track that moves the character
4. Even if no root motion : Clip import with Root set as root node | Root to None with no bake | Root None with all bake.

They absolutelly...

Timeline animation offset is broken.

No Unity Plus - what now??

$
0
0
Super confused by the mess created with Unity Plus ending. I got some cryptic emails saying:
  1. Unity Plus for our organization has expired (fair enough - we didn't see value in 5X increase in price to Pro)
  2. Our seats would be converted to Personal licenses (ok)
  3. Our Unity Teams Advanced Promotion has been cancelled.
  4. We had used 80% of 1GB of cloud storage.... and we should purchase some more from links that go to invalid Unity pages... NOT HELFUL...

No Unity Plus - what now??

Null reference of UnityEngine Type cause GC Alloc

$
0
0
Why null reference in script , instantiate will cause gc alloc ?


I writen a test script that instantiated a prefab 10 times.
The prefab has 10 fields, all of them are transform reference.
If these 10 transforms reference are null, will cause 80 K gc alloc.
I try to replace Transform with GameObject, Animator or other UnityEngine type, gc alloc size still is 80k.
If these 10 transforms referece are not null, gc alloc only 2-3 Kb.
I also try to replace UnityEngine type with custom class, gc...

Null reference of UnityEngine Type cause GC Alloc

UNetTransport don't work

$
0
0
Hello everyone,

i've recently joined a cooperative game mode developpement. I'm in charge of making a prototype of an asymetrical vr game (similar to CtrlShift) with an external monitor with differents controls.

I'm stuck with this error :

error CS0246: The type or namespace name 'UNetTransport' could not be found (are you missing a using directive or an assembly reference?)

That's where the code are underline :...

UNetTransport don't work

Bakery - GPU Lightmapper (v1.96) + RTPreview [RELEASED]


How to make game crash on death in Unity?

$
0
0
Im making a game where i want when the character dies, the game crashes.




Latest Images