id stringlengths 15 22 | source stringclasses 2
values | category stringclasses 12
values | instruction stringlengths 22 180 | response stringlengths 100 46.1k | system stringclasses 5
values |
|---|---|---|---|---|---|
local_man_d5b9e5a3d533 | unity_docs | rendering | In Unity's 'Set up transparent videos in Unity', what is 'Change the transparency of pixels in your video (per-pixel alpha)' and how does it work? | You can’t control per-pixel transparency for imported video clips in the Unity Editor. Instead you need to edit the video’s transparency with an external tool then import it into Unity.
To use a video with per-pixel transparency in Unity:
Use an external video rendering or authoring application to create your transpare... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b60bd5330bd8 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.minifyDebug`. | PlayerSettings.Android.minifyDebug
public static bool
minifyDebug
;
Description
Enable to minify debug build.
Enable to minify your java code in debug (development) configuration. Use proguard configuration file to control the process.
Note:
Minification can sometimes remove needed code and produce non-workin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_be9bfa46cb66 | unity_docs | scripting | Give me an overview of the `PhysicsDebugWindow` class in Unity. | PhysicsDebugWindow
class in
UnityEditor
/
Inherits from:
EditorWindow
Description
Displays the Physics Debug Visualization options.
The Physics Debug Visualization is only displayed if this window is visible.
Additional resources:
PhysicsVisualizationSettings
.
Inherited Members
Static Properties Property Des... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a77a714fa31f | unity_docs | scripting | In Unity's 'Preset Manager', what is 'Assigning Presets via the Inspector window' and how does it work? | You can also add and remove Presets to use for default settings via the Inspector window.
To add a default Preset:
Select a Preset in the Project window.
In the Inspector window, click
Add to default
.
Unity adds your default Preset to the
Preset Manager
.
Open the
Preset Manager
to add filters to the Preset or reorder... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0a39828f2bde | unity_docs | scripting | What are the parameters of `Windows.WebCam.PhotoCaptureFrame.CopyRawImageDataIntoBuffer` in Unity? | Description Will copy the raw IMFMediaBuffer image data into a byte list. If you would like to do your own image processing on the byte data in an external plugin or on another thread, you may want to copy the raw IMFMediaBuffer data into your own byte list. For more information about the WinRT IMFMediaBuffer object, p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_56b55720242d | unity_docs | editor | What is `SerializedProperty.DeleteArrayElementAtIndex` in Unity? Explain its purpose and usage. | SerializedProperty.DeleteArrayElementAtIndex
Declaration
public void
DeleteArrayElementAtIndex
(int
index
);
Description
Delete the element at the specified index in the array.
Additional resources:
isArray
,
InsertArrayElementAtIndex
,
MoveArrayElement
,
DeleteCommand
.
```csharp
using System.Collections... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7dbcf1b3d4e5 | unity_docs | rendering | What is `Networking.DownloadedTextureParams.Default` in Unity? Explain its purpose and usage. | DownloadedTextureParams.Default
public static
Networking.DownloadedTextureParams
Default
;
Description
Returns parameters set to recommended values. It is recommended to use this for the initial values and modify only specific parameters that you need. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_208073f5a4dd | unity_docs | physics | What is `ContactPairPoint.impulse` in Unity? Explain its purpose and usage. | ContactPairPoint.impulse
public
Vector3
impulse
;
Description
The impulse applied to this contact pair to resolve the collision.
To work out the force applied you can divide the impulse by the last frame's simulation time step. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_123a0e58a9d6 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.ReadFromFile`. | PBXProject.ReadFromFile
Declaration
public void
ReadFromFile
(string
path
);
Parameters
Parameter
Description
path
Path of the file.
Description
Reads the project from a file identified by the given path.
Current contents of the project are discarded.
```csharp
using UnityEditor;
using System.IO;
using U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b837c59e9b94 | unity_docs | physics | What is `ArticulationBody.GetJointExternalForces` in Unity? Explain its purpose and usage. | ArticulationBody.GetJointExternalForces
Declaration
public int
GetJointExternalForces
(List<float>
forces
,
float
step
);
Parameters
Parameter
Description
forces
Supplied list of floats to store the counteracting external force data.
step
The timestep of the next physics simulation.
Returns
int
Total... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eeb97a922220 | unity_docs | scripting | What is `Search.SearchContextAttribute.flags` in Unity? Explain its purpose and usage. | SearchContextAttribute.flags
public
Search.SearchViewFlags
flags
;
Description
Search view flags used to open the Object Picker in various states.
The following example will open the Object Picker window using the compact list view and include packages results.
```csharp
[SearchContext("", "adb", SearchViewF... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b0cb0c52d50b | unity_docs | scripting | What is `ShortcutManagement.KeyCombination.action` in Unity? Explain its purpose and usage. | KeyCombination.action
public bool
action
;
Description
Is the
action
key modifier part of the key combination? The action key represents the Control key on Windows and Linux, and the Command key on macOS. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_22a427722d57 | unity_docs | physics | What is `ContactPoint2D.otherRigidbody` in Unity? Explain its purpose and usage. | ContactPoint2D.otherRigidbody
public
Rigidbody2D
otherRigidbody
;
Description
The other
Rigidbody2D
involved in the collision with the
rigidbody
.
This may be null if the
Collision2D.otherCollider
is not attached to a
Rigidbody2D
.
Additional resources:
Collider2D
and
Rigidbody2D
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5cfcc7837dab | unity_docs | scripting | What is `Rect.xMin` in Unity? Explain its purpose and usage. | Rect.xMin
public float
xMin
;
Description
The minimum X coordinate of the rectangle.
This value is the same as
x
, but setting it will resize the rectangle, changing
x
and
width
to preserve
xMax
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4c23dcb1db1c | unity_docs | editor | In Unity's 'Create a 2D texture array in a script', what is 'Example' and how does it work? | The following example creates an instance of the 2D texture array class, sets each slice to a different color, then saves the 2D texture array to your project as a serialized asset file.
```csharp
using UnityEditor;
using UnityEngine;
public class ExampleEditorScript : MonoBehaviour
{
[MenuItem("Examples/Create2DText... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dd2f89d67281 | unity_docs | rendering | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.startSizeZMultiplier`. | ParticleSystem.MainModule.startSizeZMultiplier
public float
startSizeZMultiplier
;
Description
A multiplier for
ParticleSystem.MainModule.startSizeZ
.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall size multiplier.
```csharp
using UnityEngine;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_950f92101dc2 | unity_docs | scripting | Show me a Unity C# example demonstrating `Vector2.Min`. | Vector2.Min
Declaration
public static
Vector2
Min
(
Vector2
lhs
,
Vector2
rhs
);
Description
Returns a vector that is made from the smallest components of two vectors.
Additional resources:
Max
function.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Vector2 a = n... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2001f9a60948 | unity_docs | audio | What is `Audio.AudioMixer.FindMatchingGroups` in Unity? Explain its purpose and usage. | AudioMixer.FindMatchingGroups
Declaration
public AudioMixerGroup[]
FindMatchingGroups
(string
subPath
);
Parameters
Parameter
Description
subPath
Path sub-strings to match with.
Returns
AudioMixerGroup[]
Groups in the mixer whose paths match the specified search path.
Description
Connected groups in ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_67d4e663186d | unity_docs | scripting | What are the parameters of `AssetBundle.LoadFromFileAsync` in Unity? | Returns AssetBundleCreateRequest Asynchronous load request for an AssetBundle. Use assetBundle property to get an AssetBundle once it is loaded. Description Asynchronously loads an AssetBundle from a file on disk. The function supports bundles of any compression type.
In case of LZMA compression, the data will be decom... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6ffd2f17ee1e | unity_docs | rendering | Explain 'HLSL pragma target command reference' in Unity. | Here is the list of shader models that Unity uses, and the combination of
#pragma require
values that each corresponds to.
Note:
Unity’s shader models are similar to DirectX shader models and OpenGL version requirements, but they do not correspond exactly. Read the descriptions carefully to ensure that you understand t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_951fd4d0eb81 | unity_docs | animation | Explain 'Key manipulation in Curves mode' in Unity. | Use Box Selection to select multiple keys while viewing the Animation window in Curves mode. Use Box Selection to select and manipulate many keys at once.
Perform the following actions to select multiple keys
Hold Shift and click to add individual keys to your selection.
Drag a rectangle with the mouse to select a grou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ab4dc6c454ba | unity_docs | math | What is `TerrainTools.BrushTransform` in Unity? Explain its purpose and usage. | BrushTransform
struct in
UnityEngine.TerrainTools
/
Implemented in:
UnityEngine.TerrainModule
Description
Represents a linear 2D transformation between brush UV space and a target XY space (typically this is a Terrain-local object space.)
The BrushTransform represents a rectangular brush, with scale, rotation, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_cc642064700c | github | scripting | Write a Unity C# script called Get Instance Proc Addr Exception | ```csharp
// SPDX-FileCopyrightText: 2024 Michael Nisbet <me@mikesky.dev>
// SPDX-License-Identifier: MIT
using System;
using System.Runtime.InteropServices;
using AOT;
using UnityEngine;
using UnityEngine.XR.OpenXR;
using UnityEngine.XR.OpenXR.Features;
using UnityEngine.XR.OpenXR.NativeTypes;
namespace OpenXR.Exten... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_39c706597cfa | unity_docs | scripting | Explain 'Introduction to publishing Asset Store packages' in Unity. | The
Asset Store
supports packages in the
asset package
(.unitypackage
) format, and in the
Unity Package Manager (UPM)
format.
Both package types have their advantages, as follows:
Asset packages
: Best for one-off imports or sharing assets without setting up a package registry and requires fast one-off iterations. It ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52636f65d546 | unity_docs | scripting | What is `UIElements.StylePropertyNameCollection` in Unity? Explain its purpose and usage. | StylePropertyNameCollection
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Collection of
StylePropertyName
.
Public Methods
Method
Description
Contains
Determines whether a StylePropertyNameCollection contains the specified element.
GetEnumerator
Return... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_965fa5dc80c2_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Apply forward force to instantiated prefab
Signature:
```csharp
public class LaunchProjectile : MonoBehaviour
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_1f2c1f5c2eac | unity_docs | performance | What is `Unity.Collections.LowLevel.Unsafe.NativeArrayUnsafeUtility.SetAtomicSafetyHandle` in Unity? Explain its purpose and usage. | NativeArrayUnsafeUtility.SetAtomicSafetyHandle
Declaration
public static void
SetAtomicSafetyHandle
(ref NativeArray<T>
array
,
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle
safety
);
Parameters
Parameter
Description
array
The NativeArray to set a new handle on.
safety
The new AtomicSafetyHandle ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5b16f8febf5e | unity_docs | rendering | Explain 'Reflective Parallax Specular' in Unity. | Note.
Unity 5 introduced the
Standard Shader
which replaces this
shader
.
One consideration for this shader is that the Base texture’s alpha channel will double as both the Reflection Map and the Specular Map.
## Reflective Properties
Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shade... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_38a1123a9b77 | unity_docs | ui | What is `UIElements.ScrollView.verticalPageSize` in Unity? Explain its purpose and usage. | ScrollView.verticalPageSize
public float
verticalPageSize
;
Description
This property controls the speed of the vertical scrolling when using a keyboard or the on-screen scrollbar buttons (arrows and handle), based on the size of the page.
The speed is calculated by multiplying the page size by the specifie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1edb275ba5a3 | unity_docs | scripting | What are the parameters of `SceneManagement.SceneManager.UnloadSceneAsync` in Unity? | Returns AsyncOperation Use the AsyncOperation to determine if the operation has completed. Description Destroys all GameObjects associated with the given Scene and removes the Scene from the SceneManager. The given Scene name can either be the full Scene path, the path
shown in the Build Settings window... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c361e16d5588 | unity_docs | scripting | What is `ReflectionProbe.ReflectionProbeEvent` in Unity? Explain its purpose and usage. | ReflectionProbeEvent
enumeration
Description
Types of events that occur when ReflectionProbe components are used in a Scene.
Additional resources:
ReflectionProbe
.
Properties
Property
Description
ReflectionProbeAdded
An event that occurs when a Reflection Probe component is added to a Scene or enabled in a ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2de96dbb9cac | unity_docs | physics | What is `AI.NavMeshAgent.velocity` in Unity? Explain its purpose and usage. | NavMeshAgent.velocity
public
Vector3
velocity
;
Description
Access the current velocity of the
NavMeshAgent
component, or set a velocity to control the agent manually.
Reading the variable will return the current velocity of the agent based on the crowd simulation.
Setting the variable will override the sim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d3c07dc659bb | unity_docs | math | What is `TerrainData.SetDetailLayer` in Unity? Explain its purpose and usage. | TerrainData.SetDetailLayer
Declaration
public void
SetDetailLayer
(int
xBase
,
int
yBase
,
int
layer
,
int[,]
details
);
Description
Sets the detail layer density map.
The Terrain system uses detail layer density maps. Each map is essentially a grayscale image
where each pixel value specifies the number of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd65466c436d | unity_docs | scripting | What is `ValidationLevel` in Unity? Explain its purpose and usage. | ValidationLevel
enumeration
Description
Enumeration specifying a validation level.
Additional resources:
Debug.IsValidationLevelEnabled
Properties
Property
Description
None
No validation.
Low
Fast validation.
Medium
Moderate validation.
High
Thorough but slow validation. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_92a2e006d882 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.GetImplicitAssetBundleVariantName`. | t belongs to.
If the asset has been explicitly assigned to an AssetBundle Variant, then that value is returned.
If the asset doesn't belong to an AssetBundle Variant, its parent folders are traversed until one that belongs to an AssetBundle Variant is found. If a folder that matches this condition is found, its AssetB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4e58d6609b73 | github | scripting | Write a Unity Editor script for Auto Runner | ```csharp
#region
using MagicLeap.SetupTool.Editor.Setup;
using MagicLeap.SetupTool.Editor.Utilities;
using UnityEditor;
using UnityEditor.PackageManager;
using UnityEngine;
#endregion
namespace MagicLeap.SetupTool.Editor
{
/// <summary>
/// This class controls when to show the Magic Leap setup window.
... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_969e2ef000be | unity_docs | performance | Explain 'Create and run a job' in Unity. | To create and successfully run a job, you must do the following:
Create a job: Implement the IJob interface.
Schedule the job: Call the Schedule method on the job.
Wait for the job to complete: It returns immediately if the job is already complete, and you can call the Complete method on the job when you want to access... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_94d27bec8ccd | unity_docs | scripting | What is `DefaultExecutionOrder.ctor` in Unity? Explain its purpose and usage. | DefaultExecutionOrder Constructor
Declaration
public
DefaultExecutionOrder
(int
order
);
Description
Sets the script execution order for a MonoBehaviour-derived class to the value of the supplied integer parameter. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6c22883ea34a | unity_docs | scripting | What is `Progress.GetUpdateDateTime` in Unity? Explain its purpose and usage. | Progress.GetUpdateDateTime
Declaration
public static long
GetUpdateDateTime
(int
id
);
Parameters
Parameter
Description
id
The progress indicator's unique ID.
Returns
long
The timestamp of the progress indicator's last update.
Description
Gets the time that the progress indicator last changed, or fin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_578b6dd63b92 | unity_docs | editor | What is `Editor.HasFrameBounds` in Unity? Explain its purpose and usage. | Editor.HasFrameBounds()
Description
Validates whether custom bounds can be calculated for this Editor.
Use this to validate if
Editor.OnGetFrameBounds
should be called for this window. The Scene view calls `HasFrameBounds` and `OnGetFrameBounds` when the Frame action is invoked. The Frame action can be called fro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_885cdc58671a | unity_docs | animation | In Unity's 'Importing a model with non-humanoid (generic) animations', what is 'Setting up the Rig' and how does it work? | From the
Rig tab of the Inspector window
, set the Avatar (animation) type to
Generic
. By default, the
Avatar Definition
property is set to
Create From This Model
and the
Root node
option is set to
None
.
In some cases, you can change the
Avatar Definition
option to
Copy From Other Avatar
to use an Avatar you already ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_511d2dc8b74a | unity_docs | rendering | What is `U2D.SpriteAtlasImporter.SetPlatformSettings` in Unity? Explain its purpose and usage. | SpriteAtlasImporter.SetPlatformSettings
Declaration
public void
SetPlatformSettings
(
TextureImporterPlatformSettings
src
);
Description
Sets platform specific settings.
If overridden, packing will use this setting for the target platform. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_28ce500e4987 | unity_docs | rendering | In Unity's 'New in Unity 2023.1', what is 'Adaptive Performance' and how does it work? | Added
Lifecycle controls and a general Android provider
.
Added an
Adaptive Performance Android Provider
that extends the Adaptive Performance package to Android Devices.
Added new IPerformanceModeStatus to retrieve performance mode and listen to performance mode changes. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e5ddd92d18c9 | github | scripting | Write a Unity C# physics script for Banana Bullet Authoring | ```csharp
using Unity.Entities;
using UnityEngine;
using Main.Enums;
namespace Main.ECS
{
[RequireComponent(typeof(ECSSphereColliderComponent))]
sealed unsafe class BananaBulletAuthoring : MonoBehaviour, IConvertGameObjectToEntity
{
[SerializeField] ECSSettings _settings = default;
[Serial... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3bc70221c389 | unity_docs | animation | What is `QueueMode` in Unity? Explain its purpose and usage. | QueueMode
enumeration
Description
Used by
Animation.Play
function.
Properties
Property
Description
CompleteOthers
Will start playing after all other animations have stopped playing.
PlayNow
Starts playing immediately. This can be used if you just want to quickly create a duplicate animation. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e6f0e86cb246 | unity_docs | scripting | What is `ArticulationBody.matchAnchors` in Unity? Explain its purpose and usage. | ArticulationBody.matchAnchors
public bool
matchAnchors
;
Description
Whether the parent anchor should be computed automatically or not.
If enabled, the parent anchor will be positioned to match the other anchor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52161ee0e236 | unity_docs | rendering | What is `Rendering.SortingGroup.UpdateAllSortingGroups` in Unity? Explain its purpose and usage. | SortingGroup.UpdateAllSortingGroups
Declaration
public static void
UpdateAllSortingGroups
();
Description
Updates all Sorting Group immediately.
This will update the sorting order for the Renderers under each active Sorting Group immediately, instead of waiting for the next LateUpdate to update the Sorting Grou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a2d2fa7ab287 | unity_docs | scripting | What is `Search.SearchResult.CompareTo` in Unity? Explain its purpose and usage. | SearchResult.CompareTo
Declaration
public int
CompareTo
(
Search.SearchResult
other
);
Parameters
Parameter
Description
other
Another SearchResult to compare.
Returns
int
Returns true if both SearchResults have the same index.
Description
Compares Search Results using their index values. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_53878afe1fc5 | unity_docs | rendering | Show me a Unity C# example demonstrating `LightingWindowTab`. | LightingWindowTab
class in
UnityEditor
Description
Base class to add custom tabs to the Lighting window.
See also
LightingWindowEnvironmentSection
.
```csharp
using UnityEditor;
using UnityEditor.Rendering;
using UnityEngine;
using UnityEngine.Rendering;class CustomLightingTab : LightingWindowTab
{
public over... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7216c59198f2 | unity_docs | rendering | What is `LightmapParameters.AssignToLightingSettings` in Unity? Explain its purpose and usage. | LightmapParameters.AssignToLightingSettings
Declaration
public void
AssignToLightingSettings
(
LightingSettings
lightingSettings
);
Description
Assignes itself to a
LightingSettings
instance or asset.
Additional resources:
LightmapParameters.SetLightmapParametersForLightingSettings
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c390eafe4999 | unity_docs | physics | What is `JointLimits.bounciness` in Unity? Explain its purpose and usage. | JointLimits.bounciness
public float
bounciness
;
Description
Determines the size of the bounce when the joint hits it's limit. Also known as restitution.
Additional resources:
bounceMinVelocity
.
The
size
of the new velocity after the bounce will be determined as:
newVelocity = currentVelocity * bounciness
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1a6dc612d278 | unity_docs | ui | Show me a Unity code example for 'Conditionally including assemblies'. | han a normal (
f
) or China (
c
) release. A patch release is always later than a normal or China release with the same revision number and an experimental release is later than any other release type. Note that experimental releases do not use an incremental number at the end.
The following example expression includes... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1e12e806ec27 | unity_docs | editor | What is `Unity.Jobs.LowLevel.Unsafe.JobHandleUnsafeUtility.CombineDependencies` in Unity? Explain its purpose and usage. | JobHandleUnsafeUtility.CombineDependencies
Declaration
public static
Unity.Jobs.JobHandle
CombineDependencies
(JobHandle*
jobs
,
int
count
);
Description
Combines multiple dependencies into a single one using an unsafe array of job handles.
Additional resources:
JobHandle.CombineDependencies
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d00da9b27dba | github | scripting | Write a Unity C# UI script for Text Mesh Spawner | ```csharp
using UnityEngine;
using System.Collections;
namespace TMPro.Examples
{
public class TextMeshSpawner : MonoBehaviour
{
public int SpawnType = 0;
public int NumberOfNPC = 12;
public Font TheFont;
private TextMeshProFloatingText floatingText_Script;
voi... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_ce6585909511 | unity_docs | scripting | What is `AssetImporters.ScriptedImporter` in Unity? Explain its purpose and usage. | ScriptedImporter
class in
UnityEditor.AssetImporters
/
Inherits from:
AssetImporter
Description
Abstract base class for custom Asset importers.
Scripted importers are scripts that are associated with specific file extensions. They are invoked by Unity's Asset pipeline to convert the contents of associated files... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bbc7a6e30f14 | unity_docs | rendering | What is `Rendering.RayTracingAABBsInstanceConfig.material` in Unity? Explain its purpose and usage. | RayTracingAABBsInstanceConfig.material
public
Material
material
;
Description
The
Material
the ray tracing instance uses.
This value is optional. If you use ray tracing shaders and don't set a Material, the GPU doesn't execute any code when rays hit an axis-aligned bounding box (AABB) associated with this i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_23c3a5518734 | github | scripting | Write a Unity C# script called Addressable Prefab Pool Component | ```csharp
#if HAVE_ADDRESSABLES
using Gilzoide.PrefabPool.Internal;
using UnityEngine;
namespace Gilzoide.PrefabPool
{
public class AddressablePrefabPoolComponent<T> : APrefabPoolComponent<T, AddressablePrefabPool<T>>
where T : Object
{
}
public class AddressablePrefabPoolComponent : Addressab... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_062d57ef1cbf | unity_docs | math | What is `Rendering.CommandBuffer.SetLateLatchProjectionMatrices` in Unity? Explain its purpose and usage. | CommandBuffer.SetLateLatchProjectionMatrices
Declaration
public void
SetLateLatchProjectionMatrices
(Matrix4x4[]
projectionMat
);
Parameters
Parameter
Description
projectionMat
Stereo projection matrices.
Description
Set the current stereo projection matrices for late latching. Stereo matrices is passed in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ccec494ca39 | unity_docs | scripting | What is `SerializedObject.CopyFromSerializedPropertyIfDifferent` in Unity? Explain its purpose and usage. | SerializedObject.CopyFromSerializedPropertyIfDifferent
Declaration
public bool
CopyFromSerializedPropertyIfDifferent
(
SerializedProperty
prop
);
Description
Copies a changed value from a SerializedProperty to the corresponding serialized property on the serialized object.
The value is only copied to the obje... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b151f41ee2e2 | unity_docs | scripting | What is `Android.AndroidAssetPackInfo.status` in Unity? Explain its purpose and usage. | AndroidAssetPackInfo.status
public
Android.AndroidAssetPackStatus
status
;
Description
The status of the Android asset pack that the device is downloading.
Read-only.
Additional resources:
AndroidAssetPackStatus
,
AndroidAssetPacks.DownloadAssetPackAsync
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_54a5bda0208a | unity_docs | rendering | Give me an overview of the `SpriteDrawMode` class in Unity. | SpriteDrawMode
enumeration
Description
SpriteRenderer
draw mode.
Enum defining the draw mode for
SpriteRenderer.drawMode
. This controls how to display the
Sprite
.
Properties
Property
Description
Simple
Displays the full sprite.
Sliced
The SpriteRenderer will render the sprite as a 9-slice image where the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_64b48cceaa5a | unity_docs | physics | What is `TerrainTools.PaintContext.ScatterHeightmap` in Unity? Explain its purpose and usage. | PaintContext.ScatterHeightmap
Declaration
public void
ScatterHeightmap
(string
editorUndoName
);
Parameters
Parameter
Description
editorUndoName
Unique name used for the undo stack.
Description
Applies an edited heightmap PaintContext by copying modifications back to the source Terrain tiles.
Once the ed... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e586d2b5bb29 | unity_docs | audio | Show me a Unity C# example demonstrating `AudioSource.volume`. | AudioSource.volume
public float
volume
;
Description
The volume of the audio source (0.0 to 1.0).
The AudioSource’s volume property controls the level of sound coming from an AudioClip. The highest volume level is 1 and the lowest is 0 where no sound is heard.
```csharp
using UnityEngine;public class Example ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a41f9f59d482 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetImporter.assetBundleVariant`. | m of the Inspector.
Its value is stored in the .meta file for the Asset, and inside the
AssetDatabase
.
This property is not used when AssetBundles are being built programmatically with the signature of
BuildPipeline.BuildAssetBundles
that accepts an array of
AssetBundleBuild
structures.
Additional reso... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_642a91840ba5 | unity_docs | scripting | What are the parameters of `GUI.TextArea` in Unity? | Returns string The edited string. Description Make a Multi-line text area where the user can edit a string. ```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
public string stringToEdit = "Hello World\nI've got 2 lines..."; void OnGUI()
{
// Make a multi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5795882ea4b0 | unity_docs | rendering | Show me a Unity C# example demonstrating `AssetImporters.AssetImportContext.DependsOnSourceAsset`. | that one asset depends on another (eg, Asset A depends on Assset B), it means if that Asset B is modified, not only will Asset B be reimported, but also Asset A will be reimported.
Note: This methods sets up a dependency on the Asset source file itself, not the import result (the artifact) of the Asset. If you want to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e191356d8327 | unity_docs | scripting | What is `Unity.Android.Gradle.BaseElement.RemoveElementDependencyById` in Unity? Explain its purpose and usage. | BaseElement.RemoveElementDependencyById
Declaration
public void
RemoveElementDependencyById
(uint
id
);
Parameters
Parameter
Description
id
ID of an element that will be removed.
Description
Remove an element dependency by ID. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6e331d3c923c | unity_docs | xr | In Unity's 'Scripting API for packages', what is 'Browsing the list of packages in a project' and how does it work? | This example demonstrates how to use the Client class to iterate over the packages in the project.
The
Client.List
method returns a ListRequest instance. Use the ListRequest instance to get the status of the List operation, any errors, or a Request response that contains the PackageCollection which you can iterate.
```... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_186fbe5ec26c | unity_docs | scripting | What is `Graphics.CreateAsyncGraphicsFence` in Unity? Explain its purpose and usage. | Graphics.CreateAsyncGraphicsFence
Declaration
public static
Rendering.GraphicsFence
CreateAsyncGraphicsFence
(
Rendering.SynchronisationStage
stage
= SynchronisationStage.PixelProcessing);
Declaration
public static
Rendering.GraphicsFence
CreateAsyncGraphicsFence
();
Parameters
Parameter
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c18d9772eebe | unity_docs | ui | Explain 'Allow or deny Vulkan API usage' in Unity. | By default, Unity prevents Android devices known to run Unity applications sub-optimally with Vulkan graphics API. However, your testing might reveal that some restricted devices actually run your application better with Vulkan API than with OpenGLES3 API. Alternatively, you might want to further restrict some devices ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_dd845dab3b4f | github | scripting | Write a Unity C# script called Sun Shafts | ```csharp
using System;
using UnityEngine;
namespace UnityStandardAssets.ImageEffects
{
[ExecuteInEditMode]
[RequireComponent (typeof(Camera))]
[AddComponentMenu ("Image Effects/Rendering/Sun Shafts")]
public class SunShafts : PostEffectsBase
{
public enum SunShaftsResolution
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_acba9000952f | unity_docs | networking | What is `Unity.Android.Gradle.Manifest.ScreenSize` in Unity? Explain its purpose and usage. | ScreenSize
enumeration
Description
Mirrors the
ScreenSize
enum.
For more information about the attribute, see Android's documentation:
ScreenSize attribute
Properties
Property
Description
Null
Attribute is not set and will not appear in the element.
Small
Mirrors android:screenSize="small".
Normal
Mirro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b825460ce41d | unity_docs | scripting | Show me a Unity C# example demonstrating `Rigidbody2D.SetRotation`. | Rigidbody2D.SetRotation
Declaration
public void
SetRotation
(float
angle
);
Parameters
Parameter
Description
angle
The rotation of the Rigidbody (in degrees).
Description
Sets the rotation of the
Rigidbody2D
to
angle
(given in degrees).
Additional resources:
Rigidbody2D.rotation
and
Rigidbody2D.Mov... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31b9877655a7 | unity_docs | scripting | What is `UIElements.StyleColor.ctor` in Unity? Explain its purpose and usage. | StyleColor Constructor
Declaration
public
StyleColor
(
Color
v
);
Description
Creates from either a
Color
or
StyleKeyword
.
Declaration
public
StyleColor
(
UIElements.StyleKeyword
keyword
);
Description
Creates from either a
Color
or
StyleKeyword
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ea6505671052 | unity_docs | scripting | What is `MenuItem.validate` in Unity? Explain its purpose and usage. | MenuItem.validate
public bool
validate
;
Description
Whether the method decorated by this instance of the menu item attribute is a validate function.
This field stores the value set by the
isValidateFunction
parameter passed to the constructor. The field is public only for the benefit of Unity systems. Initia... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_660b2fa6bfcf | unity_docs | scripting | What is `ObjectChangeEventStream.Builder.PushChangeGameObjectStructureEvent` in Unity? Explain its purpose and usage. | ObjectChangeEventStream.Builder.PushChangeGameObjectStructureEvent
Declaration
public void
PushChangeGameObjectStructureEvent
(ref
ChangeGameObjectStructureEventArgs
data
);
Parameters
Parameter
Description
data
The event data to add to the stream.
Description
Adds an
ChangeGameObjectStructureEventArgs
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e0f4bbaba0bb | github | scripting | Write a Unity C# MonoBehaviour script called Prefab Factorised Singleton | ```csharp
using SiegfriedWagner.Singletons.Attributes;
using UnityEngine;
namespace SiegfriedWagner.Singletons.Tests.Runtime
{
[InstantiatedFromPrefab("TestPrefab")]
public class PrefabFactorisedSingleton : SingletonMonoBehaviour<PrefabFactorisedSingleton>
{
[field: SerializeField]
public int SerializedField {... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5773be465ea5 | unity_docs | rendering | What are the parameters of `AssetImporters.AssetImportContext.DependsOnSourceAsset` in Unity? | Description Allows you to specify that an Asset depends directly on the source file of another Asset (as opposed to the import result of another asset). When you specify that one asset depends on another (eg, Asset A depends on Assset B), it means if that Asset B is modified, not only will Asset B be reimported, but al... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_991a8cb9ed27 | unity_docs | rendering | In Unity's 'Build assets into AssetBundles', what is 'AssetBundle build script' and how does it work? | To build AssetBundles, you must create a build script and place it a folder called Editor in the Assets folder.
The following script is an example of an AssetBundle build script. It adds a menu item at the bottom of the Assets menu called
Build AssetBundles
. When you select
Build AssetBundles the BuildAllAssetBundles
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c9a6a817c293 | unity_docs | scripting | What is `DragAndDrop.HierarchyDropHandler` in Unity? Explain its purpose and usage. | DragAndDrop.HierarchyDropHandler
Declaration
public delegate
DragAndDropVisualMode
HierarchyDropHandler
(int
dropTargetInstanceID
,
HierarchyDropFlags
dropMode
,
Transform
parentForDraggedObjects
,
bool
perform
);
Parameters
Parameter
Description
dropTargetInstanceID
ID of the Game Object in the Hie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cfd34e7f065f | unity_docs | editor | Show me a Unity C# example demonstrating `Android.AndroidProjectFiles.SetBuildGradleFile`. | The file path to place the
build.gradle
file at. This path is relative to the gradle project path.
buildGradle
The representation of module build.gradle file.
Description
Sets a new
build.gradle
file.
To use this method, you must also declare your new file in
AndroidProjectFilesModifier.Setup
using the
Andr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_68e095203601 | github | scripting | Write a Unity C# script called Smoothing | ```csharp
// Copyright (c) Mixed Reality Toolkit Contributors
// Licensed under the BSD 3-Clause
using UnityEngine;
namespace MixedReality.Toolkit
{
/// <summary>
/// Provides several utility functions for smoothing and lerping.
/// </summary>
public class Smoothing
{
/// <summary>
... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_33cf37e7f828 | unity_docs | physics | Give me an overview of the `CapsuleCollider` class in Unity. | CapsuleCollider
class in
UnityEngine
/
Inherits from:
Collider
/
Implemented in:
UnityEngine.PhysicsModule
Description
A capsule-shaped primitive collider.
Capsules are cylinders with a half-sphere at each end.
Additional resources:
BoxCollider
,
SphereCollider
,
PhysicsMaterial
,
Rigidbody
.
Properties... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5b96ec760e07_doc_4 | github | scripting | What does `StopCoroutine` do in this Unity script? Explain its purpose and signature. | Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour.Name of the function in code, including coroutines.
Signature:
```csharp
protected void StopCoroutine(IEnumerator routine)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
gh_c5af261bc7bf | github | scripting | Write a Unity C# script called Bloom Optimized | ```csharp
using System;
using UnityEngine;
namespace UnityStandardAssets.ImageEffects
{
[ExecuteInEditMode]
[RequireComponent (typeof(Camera))]
[AddComponentMenu ("Image Effects/Bloom and Glow/Bloom (Optimized)")]
public class BloomOptimized : PostEffectsBase
{
public enum Resol... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c97abbdf44af | unity_docs | animation | What is `ModelImporterClipAnimation.ConfigureClipFromMask` in Unity? Explain its purpose and usage. | ModelImporterClipAnimation.ConfigureClipFromMask
Declaration
public void
ConfigureClipFromMask
(
AvatarMask
mask
);
Parameters
Parameter
Description
mask
AvatarMask
from which the mask settings will be imported.
Description
Copy the mask settings from an
AvatarMask
to the clip configuration.
When writ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6796b209e1db | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.ClearLabels`. | AssetDatabase.ClearLabels
Declaration
public static void
ClearLabels
(
Object
obj
);
Parameters
Parameter
Description
obj
The asset object to remove labels from.
Description
Removes all labels attached to an asset.
```csharp
using UnityEngine;
using UnityEditor;
public class AssetDatabaseExamples : MonoB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0a63a664ae99 | unity_docs | scripting | What is `PrefabUtility.IsPartOfNonAssetPrefabInstance` in Unity? Explain its purpose and usage. | PrefabUtility.IsPartOfNonAssetPrefabInstance
Declaration
public static bool
IsPartOfNonAssetPrefabInstance
(
Object
componentOrGameObject
);
Parameters
Parameter
Description
componentOrGameObject
The object to check. Must be a component or GameObject.
Returns
bool
True if the object is part of a Prefab ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_75f01dfdc61d | unity_docs | rendering | In Unity's 'Single-pass instanced rendering and custom shaders', what is 'Update the main vertex shader function' and how does it work? | Add the following macros to the beginning of your main vert method (in order):
UNITY_SETUP_INSTANCE_ID()
UNITY_INITIALIZE_OUTPUT(v2f, o)
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO()
UNITY_SETUP_INSTANCE_ID()
calculates and sets the built-in unity_StereoEyeIndex and unity_InstanceID shader variables to the correct values bas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_510b634a7c19 | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.OnTriggerStay2D`. | n another object is within a trigger collider attached to this object (2D physics only).
Further information about the other collider is reported in the Collider2D parameter passed during the call.
Note:
Trigger events will be sent to disabled MonoBehaviours, to allow enabling Behaviours in response to collisions.
Ad... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_80fe2535f05e | unity_docs | editor | What is `Selection.activeTransform` in Unity? Explain its purpose and usage. | Selection.activeTransform
public static
Transform
activeTransform
;
Description
Returns the active transform. (The one shown in the inspector).
This never returns Prefabs or non-modifiable objects.
```csharp
using UnityEngine;
using UnityEditor;class Example : EditorWindow
{
class SelectionActiveTransform :... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c04da3df96fd | unity_docs | scripting | Show me a Unity C# example demonstrating `GUISkin.label`. | GUISkin.label
public
GUIStyle
label
;
Description
Style used by default for
GUI.Label
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the label style of the current GUISkin
GUIStyle style; void OnGUI()
{
GUI.skin.label = style;
GUILayout.Label("This is a l... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5afe43580eac | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUI.BoundsField`. | ontent
label
,
Bounds
value
);
Parameters
Parameter
Description
position
Rectangle on the screen to use for the field.
label
Optional label to display above the field.
value
The value to edit.
Returns
Bounds
The value entered by the user.
Description
Makes Center and Extents field for entering a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_487e07a0907b | unity_docs | editor | What is `SpeedTree.Importer.DiffuseProfileCallbackAttribute` in Unity? Explain its purpose and usage. | DiffuseProfileCallbackAttribute
class in
UnityEditor.SpeedTree.Importer
Description
This attribute is used as a callback to set SRP specific properties from the importer.
Properties
Property
Description
MethodVersion
The version of the method.
Constructors
Constructor
Description
DiffuseProfileCallbackA... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e08caee18fea | unity_docs | scripting | What is `UIElements.GroupBox.ussClassName` in Unity? Explain its purpose and usage. | GroupBox.ussClassName
public static string
ussClassName
;
Description
USS class name for GroupBox elements.
Unity adds this USS class to every instance of the GroupBox element. Any styling applied to
this class affects every GroupBox located beside, or below the stylesheet in the visual tree. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2d3a84c131dc | unity_docs | scripting | In Unity's 'Introduction to the Resources system', what is 'Using the Resources system' and how does it work? | The Resources system can be helpful in the following situations:
In smaller projects if the content meets the following criteria:
It’s needed throughout the project’s lifetime.
It’s not memory-intensive.
It doesn’t need patching, or doesn’t vary across platforms and devices.
It’s used for minimal bootstrapping.
Example... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_296ad32b4205 | unity_docs | animation | Explain 'The PlayableGraph' in Unity. | The PlayableGraph defines a set of playable outputs that are bound to a GameObject or
component
. The PlayableGraph also defines a set of playables and their relationships. Figure 1 provides an example.
The PlayableGraph is responsible for the life cycle of its playables and their outputs. Use the PlayableGraph to crea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a96df5fff0d5 | unity_docs | editor | What are the parameters of `AssetDatabase.CopyAssets` in Unity? | Returns bool Returns true if the copy operation is successful or false if part of the process fails. Description Duplicates assets in paths and stores them in newPaths . All paths are relative to the project folder, for example: "Assets paths hello.png". paths and newPaths must contain the same number of items. ```csha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f15f5714a2d0 | unity_docs | rendering | Explain 'Reduce rendering work on the CPU or GPU' in Unity. | This page contains some simple guidelines for optimzing rendering performance in your application.
## Before you begin: locate and understand the problem
Before you make any changes, you must profile your application to identify the cause of the problem. If you attempt to solve a performance problem before you unders... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f8bba6966eeb | unity_docs | audio | What is `GamepadSpeakerOutputType` in Unity? Explain its purpose and usage. | GamepadSpeakerOutputType
enumeration
Description
Gamepad audio output types.
This API is only for PlayStation 4 and PlayStation 5 platforms. Enclose this API with the UNITY_EDITOR define for platforms other than PlayStation 4 and PlayStation 5.
Properties
Property
Description
Speaker
Audio output is through th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.