Quantcast
Channel: Unity Forum
Viewing all 1461300 articles
Browse latest View live

No checkbox for activating/disabling gameObject in the inspector?

$
0
0
This is not for a component, but for the instance of the gameObject in the hierarchy. When I select it and go to the inspector, there is no way to deactivate it.

http://imgur.com/a/j77cp

compared to the docs:

https://docs.unity3d.com/uploads/Main/GameObjectLightExample.png
https://docs.unity3d.com/uploads/Main/GOActiveBox.png

The only way to get the box to show up is to select *two* gameObject instances at the same time. But then I have to deactivate a...

No checkbox for activating/disabling gameObject in the inspector?

Buoyancy script

$
0
0
Just Archimedes' law:



Requires a collider and rigidbody components.

P.S.
I've updated the script:
1) The old one didn't take into account object rotation and consequently produced wrong results sometimes.
2) The new one draws nice gizmos

P.P.S.
Version 2.1

1. I decided to not calculate density from volume, because volume "calculation" itself is quite inaccurate. It's easer to specify the correct density manually.
2. Now it works with concave...

Buoyancy script

[WIP] Vegetation Studio

$
0
0
Vegetation Studio Features
We are happy to introduce Vegetation Studio, coming to Unity Asset Store this fall.

Vegetation Studio is a vegetation placement and rendering system designed to replace the standard tree and detail system in the Unity terrain component. Vegetation is spawned on the terrain based on a flexible set of rules, and controlled with both texture and polygon masks.

Use your existing trees (SpeedTree, Tree Creator etc.), rocks and grass textures....

[WIP] Vegetation Studio

Are there nice and neat way of structuring .instance codes?

$
0
0
So if game project become bigger, script's number become more, code line become longer.

And to access to other script, Somescript.Instance.somevarOrFunction method is well used.
Isn't it? Are there more neat and nicer way?

Problem is, if project bigger and complicated, there become many .Instance codes appeared.

This can hurt readability of code. Any solutions?

[WIP][Released] Dynamic Water Physics - Realistic. Fast. Universal.

Turbo Platform Switch - Essential tool for Unity developers

ZzZzZ UVPaint ( skinned mesh Decal+Texturing System) ZzZz

Do you create a 'Game' script with everything in?

$
0
0
Normally, when making simple small games I create a 'Game' script that handles everything.

On my larger projects, I tend to create a lot of small scripts, but lately I've been thinking I should add them all to 1 'Game' script as I'm now starting to struggle to find where things are in my scripts.

So I'm just wondering what you guys do?

HelpAttribute - allows you to use HelpBox in the Unity inspector window

$
0
0
Hey guys, my first post I think.

Not sure if this has been done before or if it's built in to Unity (if not, it should be), did some searching and nothing turned up...

I rolled a simple PropertyDrawer and PropertyAttribute script which allows you to use the HelpBox you see in various places inside the Unity IDE, to decorate your inspector properties. Using a [HelpAttribute] you can set the text content and icon image to show help text \and usage information or instructions above any...

HelpAttribute - allows you to use HelpBox in the Unity inspector window

Var assigned; Value not used

$
0
0
I'm trying to write a C# script and I keep getting an annoying warning that I assigned a var but never use it, but I do use it. Still the error persists.

Code (CSharp):
  1.    
  2.         //In update  
  3.         int testVar = 0;
  4.         testVar = 0; //Stupid error that it is never used
  5.  
[​IMG]

*EDIT: Meanwhile this clears the error, is this how you script in C#? Is this normal?
Code (CSharp):
  1.        int...
Var assigned; Value not used

Bad Word Filter - Solution against profanity/obscenity

$
0
0
Bad Word Filter (BWF)

The "Bad Word Filter" (aka profanity or obscenity filter) is exactly what the title suggests: a tool to filter swearwords and other "bad sentences".

There are multiple uses for the "Bad Word Filter" in your game, but the three most obvious would be user names (e.g. for high-scores), in a chat within the game and character names.

If you don't want some...

Bad Word Filter - Solution against profanity/obscenity

Radio - MP3 and OGG-streaming solution

$
0
0
Radio

Have you ever wanted to implement radio stations but don't want (or can't) pay an horrendous amount of money?
Whenever you like to provide good sound from famous artists for your games or apps, tune in on one of the uncountable Internet MP3 and OGG radio stations available for free.

Thanks to this asset, it is now possible for all Unity...

Radio - MP3 and OGG-streaming solution

Graphics.DrawMeshInstancedIndirect and frustum culling

$
0
0
Hi, have been testing some forest rendering with DrawMeshInstancedIndirect with good result, but need to do frustum culling to make it perform as good as possible with shadows.

I take it you could use a compute shader to calculate the visible objects. Not that familiar with how to go about that though. Anyone have an example of working with result buffers from compute shaders or if you have done frustum culling that would be really appreciated.

Cheers

DirectX 11 Grass Shader

$
0
0
DirectX 11 Grass Shader

An affordable ($20) way of getting great grass to your project.



Short feature overview:
High performance:
Scaleable from low to high end! (DirectX 11 is required)

Easy to use:
Get great results with just a few clicks.

Highly customizable:
From underwater scenes to alien landscapes. Useable for every art style.

Dynamic reaction:
Reacts dynamically...

DirectX 11 Grass Shader

True Random

$
0
0
True Random

Why use True Random?

“True Random” can generate random numbers for you or your game. They are “truly random”, because they are generated with atmospheric noise, which supersedes the pseudo-random number algorithms typically use in computer programs.

People use True Random for holding drawings, lotteries and sweepstakes, to drive online games, for scientific applications and for...

True Random

RT-Voice - Run-time text-to-speech solution

$
0
0
RT-Voice

Have you ever wanted to make a game for people with visual impairment or who have difficulties reading? Do you have lazy players who don't like to read too much? Or do you even want to test your game's voice dialogues without having to pay a voice actor yet? With RT-Voice this is very easily done – it's a major time saver!

RT-Voice uses...

RT-Voice - Run-time text-to-speech solution

Unity 5.6 - Build Time is way too long

$
0
0
Hey everyone,

usually, it took about 1-2 minutes to build the usual scenes in my project (3 scenes, ~1.5GB final build size, hardware: I7 CPU@3.40 GHz, 8GB RAM). Now, after upgrading to Unity 5.6, it takes about 20 minutes. Most of the build time is taken by globalgamemanagers.assets (~14 min) and resources.assets (~6 min). Something seems to be pretty wrong here. Unfortunately, I have absolutely no idea what's causing this explosion of build time.

Is someone...

Unity 5.6 - Build Time is way too long

Equilibrium VR - flying template project for google cardboard

Looking advices for create a large environment for mmorpg sandbox games

$
0
0
Hi,

I'm working / prototyping a mmorpg and i can't find a proper modular level design pipeline (workflow) for create a large, scalable and performance environment.

Like Black desert online :

Unity terrain tool? other external program?

Any advice?



Regards.-

Android Project - Multiple dex files define Lcom/android/vending/billing/BuildConfig

$
0
0
I have been trying to export an Google Android Project from Unity so I can integrate an external library with Gradle.

I am using :
- Unity 5.4 Beta 18 OSX
- Android Studio 2.1.1

I had first attempted to use Unity 5.3.4 & 5.3.5 but it was crashing on launch in what appeared to be an issue with the Unity IAP export when building a Google Android Project. A bit of research lead me to believe that the issue was resolved in the latest 5.4 Beta, however now I am getting a Multiple define error...

Android Project - Multiple dex files define Lcom/android/vending/billing/BuildConfig
Viewing all 1461300 articles
Browse latest View live




Latest Images