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_4f39a3ef4ff5 | unity_docs | rendering | In Unity's 'Lines and trails', what is 'Render pipeline information' and how does it work? | How you work with lines and trails depends on the
render pipeline
you use.
Feature name
Universal Render Pipeline (URP)
High Definition Render Pipeline (HDRP)
Built-in Render Pipeline
Line Renderer component Yes.
Yes.
Yes.
Trail Renderer component
Yes.
You can also use VFX Graph to create a custom trail effect.
Yes.
Yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f7226c393c9d | unity_docs | editor | What is `Device.SystemInfo.supportsIndirectDispatchRays` in Unity? Explain its purpose and usage. | SystemInfo.supportsIndirectDispatchRays
public static bool
supportsIndirectDispatchRays
;
Description
This property has the same functionality as
SystemInfo.supportsIndirectDispatchRays
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d66cb07e1dc | unity_docs | rendering | What is `Rendering.BuiltinShaderType` in Unity? Explain its purpose and usage. | BuiltinShaderType
enumeration
Description
Built-in shader types used by
GraphicsSettings
.
Additional resources:
GraphicsSettings.SetShaderMode
,
BuiltinShaderMode
,
Graphics Settings
.
Properties
Property
Description
DeferredShading
Shader used for deferred shading calculations.
DeferredReflections
Shade... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b90cfbf7cab6 | unity_docs | scripting | What is `Gizmos.color` in Unity? Explain its purpose and usage. | Gizmos.color
public static
Color
color
;
Description
Sets the
Color
of the gizmos that are drawn next.
You can apply any color to gizmos. You can make a gizmo transparent by setting the alpha component of
Color
to a value lower than 1. The following example shows how to create a red gizmo.
```csharp
usin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2e23d06d6d8 | unity_docs | scripting | What is `GUIStyle.fontStyle` in Unity? Explain its purpose and usage. | GUIStyle.fontStyle
public
FontStyle
fontStyle
;
Description
The font style to use (for dynamic fonts).
If this is set to a value other then normal, the font style set in the font importer is overriden with a custom style.
This is only supported for fonts set to use dynamic font rendering. Other fonts will al... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_df17cb7c70c1 | unity_docs | scripting | What is `SceneView.RemoveOverlayFromActiveView` in Unity? Explain its purpose and usage. | SceneView.RemoveOverlayFromActiveView
Declaration
public static void
RemoveOverlayFromActiveView
(T
overlay
);
Parameters
Parameter
Description
overlay
The
Overlay
to remove.
Description
Remove an
Overlay
from displaying in the last focused Scene View.
See also
SceneView.AddOverlayToActiveView
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_65b853bf5b2f | unity_docs | rendering | Show me a Unity code example for 'How Unity compiles branching shaders'. | es the shader code. The options are:
Dynamic branching: Unity keeps branching code in one compiled shader program.
Shader variants: Unity compiles a separate shader program called a shader variant for each branch. This is a form of static branching, and can help minimize your shader code.
## Dynamic branching
To use ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff99ae70970e | unity_docs | scripting | What is `AudioSettings.OnAudioConfigurationChanged` in Unity? Explain its purpose and usage. | AudioSettings.OnAudioConfigurationChanged
Parameters
Parameter
Description
value
This parameter is true if the user changes the audio output device during runtime.
Description
Unity calls this event whenever the global audio settings change.
The settings change when you use
AudioSettings.Reset
, but an exter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3671db379836 | unity_docs | scripting | Show me a Unity C# example demonstrating `Rigidbody.constraints`. | n and movement along all axes.
In some cases, you may want to constrain a
Rigidbody
to only move or rotate along some axes, for
example when developing 2D games. You can use the bitwise OR operator to combine multiple
constraints.
Note that position constraints are applied in World space, and rotation constraints are... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ddac4f7c2204 | unity_docs | physics | Show me a Unity C# example demonstrating `RaycastHit.colliderInstanceID`. | RaycastHit.colliderInstanceID
public int
colliderInstanceID
;
Description
Instance ID of the
Collider
that was hit.
Provides a reference to the collider that was hit in a way that is accessible from jobs.
For more information on creating jobs see
Create Jobs
.
```csharp
using Unity.Collections;
using Unity.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_946b7633a666 | unity_docs | scripting | Show me a Unity C# example demonstrating `Event.alt`. | Event.alt
public bool
alt
;
Description
Is Alt/Option key held down? (Read Only)
On Windows, this returns true if any Alt key is held down.
On Mac, this returns true if any Option key is held down.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Prints Option or Alt key was pressed dep... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fad811bff90b | unity_docs | scripting | What is `ParticleSystem.MainModule.duration` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.duration
public float
duration
;
Description
The duration of the Particle System in seconds.
You can only set this property when the Particle System is not playing.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleCl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b71bde7da485 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.RGBA_PVRTC_4Bpp_UNorm` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.RGBA_PVRTC_4Bpp_UNorm
Description
A four-component, PVRTC compressed format where each 64-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with the first 32 bits encoding al... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_579aad4b8096 | unity_docs | scripting | What is `AndroidJNI.SetStaticObjectField` in Unity? Explain its purpose and usage. | AndroidJNI.SetStaticObjectField
Declaration
public static void
SetStaticObjectField
(IntPtr
clazz
,
IntPtr
fieldID
,
IntPtr
val
);
Description
Sets the value of a static field in the specified object.
The value to set is a reference to either a
java.lang.Object
, or a subclass thereof.
Additional resources:... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_362ab199fb09_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | REST API client using UnityWebRequestHandles authentication and order fetching
Signature:
```csharp
public class ApiClient : MonoBehaviour
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_be0af78a8f3b | unity_docs | animation | What is `Animations.ScaleConstraint.GetSource` in Unity? Explain its purpose and usage. | ScaleConstraint.GetSource
Declaration
public
Animations.ConstraintSource
GetSource
(int
index
);
Parameters
Parameter
Description
index
The index of the source.
Returns
ConstraintSource
The source object and its weight.
Description
Gets a constraint source by index.
Throws ArgumentOutOfRangeExcept... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_79791bf92657 | unity_docs | scripting | What is `Experimental.GraphView.GraphViewChange.movedElements` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphViewChange.movedElements
public List<GraphElement>
movedElements
;
Description
Elements already moved. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d0449c811485 | github | scripting | Write a Unity C# script called I Widget | ```csharp
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Unity.VisualScripting
{
public interface IWidget : IDisposable
{
#region Model
ICanvas canvas { get; }
IEnumerable<IWidget> subWidgets { get; }
IGraphItem item { get; }
Metadata me... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3a72ef31772c | unity_docs | editor | What is `PrefabUtility.IsAddedGameObjectOverride` in Unity? Explain its purpose and usage. | PrefabUtility.IsAddedGameObjectOverride
Declaration
public static bool
IsAddedGameObjectOverride
(
GameObject
gameObject
);
Parameters
Parameter
Description
gameObject
The GameObject to check.
Returns
bool
True if the GameObject is an added GameObject.
Description
Returns true if the given GameObjec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a0880740f491 | unity_docs | rendering | What is `TextureImporterSettings.spriteTessellationDetail` in Unity? Explain its purpose and usage. | TextureImporterSettings.spriteTessellationDetail
public float
spriteTessellationDetail
;
Description
The tessellation detail to be used for generating the mesh for the associated sprite if the SpriteMode is set to
Single
. For Multiple sprites, use the SpriteEditor to specify the value per sprite.
Valid values ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_571fafb020d5 | unity_docs | scripting | Explain 'Keystore Manager window reference' in Unity. | This page describes the Keystore Manager window interface.
To open the Keystore Manager window, open
Android Publishing Settings
and select
Keystore Manager
.
You can use this interface to:
Create a new keystore
Add keys to a keystore
Load an existing keystore
## Keystore
The properties in this section of the interfa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1ad1d9651d2e | unity_docs | physics | In Unity's 'Link XML formatting reference', what is 'Supported XML attributes' and how does it work? | Attribute Description accessors
Apply to a
<property>
element to specify which of the property’s accessor methods to preserve.
feature
Exclude preservations for features that aren’t supported based on the settings for the current build. For more information and a usage example, refer to
Feature exclusions
.
fullname
Id... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57ca51c46655 | unity_docs | rendering | Show me a Unity C# example demonstrating `AssetDatabase.GetCachedIcon`. | AssetDatabase.GetCachedIcon
Declaration
public static
Texture
GetCachedIcon
(string
path
);
Parameters
Parameter
Description
path
Path to the asset.
Description
Retrieves an icon for the asset at the given asset path.
```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;publi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c5d6a7fb7966 | unity_docs | rendering | Show me a Unity code example for 'Example of a Surface Shader that supports GPU Instancing in the Built-In Render Pipeline'. | The following example demonstrates how to create an instanced Surface Shader with different color values for each instance.
```csharp
Shader "Custom/InstancedColorSurfaceShader"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ed683f65f394 | github | scripting | Write a Unity Editor script for Smart Reference Pre Build Processor | ```csharp
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEngine;
namespace SmartReference.Editor
{
public class SmartReferencePreBuildProcessor: IPreprocessBuildWithReport
{
public int callbackOrder => 0;
public void OnPreprocessBuild(BuildReport report) {
... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_4f10682ecfcb | unity_docs | scripting | Explain 'Create a custom asset pack' in Unity. | To create a custom asset pack, create a directory with a name that ends with.androidpack
. You can place this directory anywhere in your project’s Assets directory, or any subdirectory.
Important
: Unity doesn’t import assets from.androidpack
directories, so you can’t use assets in custom asset packs directly in Unity
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a29cbcd1e399 | unity_docs | physics | What is `UIElements.Clickable` in Unity? Explain its purpose and usage. | Clickable
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.PointerManipulator
/
Implemented in:
UnityEngine.UIElementsModule
Description
Manipulator that tracks Mouse events on an element and callbacks when the elements is clicked.
Properties
Property
Description
active
This property tracks... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_882a19e065ca | unity_docs | rendering | What is `GUI.color` in Unity? Explain its purpose and usage. | GUI.color
public static
Color
color
;
Description
Applies a global tint to the GUI. The tint affects backgrounds and text colors.
The tint is applied when Unity draws the content. It multiplies this property by the current color, and uses the resulting color to draw the content.
Note:
Because GUI.Color is a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2734c20b40fa | unity_docs | scripting | What is `MonoBehaviour.didStart` in Unity? Explain its purpose and usage. | MonoBehaviour.didStart
public bool
didStart
;
Description
Returns a boolean value which represents if Start was called.
```csharp
using UnityEngine;public class NewBehaviourScript : MonoBehaviour
{
void Awake()
{
// Awake gets called before Start, therefore will print 'false'.
Debug.Log(this.didStart);
} ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f62c0b7f35eb | unity_docs | performance | Explain 'Android thread configuration' in Unity. | Unity configures
thread affinity and thread priority
based on the CPU topology of the device. Unity’s default thread configuration works well for most projects, but in some situations, you might want to change the thread configuration (for example, if you want to optimize for specific devices, or if your application ai... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7e790fff67c3 | github | scripting | Write a Unity C# script called Player | ```csharp
using System;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(PlayerInputs))]
[RequireComponent(typeof(PlayerState))]
[RequireComponent(typeof(PlayerCamera))]
[RequireComponent(typeof(PlayerInteraction))]
[RequireComponent(typeof(PlayerInteraction))]
[RequireComponent(typeof(Pla... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_b2e0a00817ba | unity_docs | scripting | What is `Unity.Properties.PropertyPath.SubPath` in Unity? Explain its purpose and usage. | PropertyPath.SubPath
Declaration
public static
Unity.Properties.PropertyPath
SubPath
(ref
Unity.Properties.PropertyPath
path
,
int
startIndex
);
Parameters
Parameter
Description
path
The <see cref="PropertyPath" />
startIndex
The zero-based index where the sub path should start.
Returns
PropertyPath... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2f176570484a | unity_docs | rendering | What is `Texture2DArray.SetPixels` in Unity? Explain its purpose and usage. | Texture2DArray.SetPixels
Declaration
public void
SetPixels
(Color[]
colors
,
int
arrayElement
,
int
miplevel
);
Declaration
public void
SetPixels
(Color[]
colors
,
int
arrayElement
);
Parameters
Parameter
Description
colors
The array of pixel colours to use. This is a 2D image flattened to a 1D arra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31c481917910 | unity_docs | rendering | What is `AssetImporters.MaterialDescription.GetStringPropertyNames` in Unity? Explain its purpose and usage. | MaterialDescription.GetStringPropertyNames
Declaration
public void
GetStringPropertyNames
(List<string>
names
);
Parameters
Parameter
Description
names
The list of retrieved property names.
Description
Retrieves the property names of type string for this material. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_103347a59c12_doc_8 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Stores the used to enable or disable continuous turn locomotion.
Signature:
```csharp
public Toggle continuousTurnToggle
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4adace70ad5b_doc_3 | github | scripting | What does `InitInternal` do in this Unity script? Explain its purpose and signature. | Identical to , but non-virtual, so slightly faster.
Signature:
```csharp
internal void InitInternal(TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument)
`... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_b7e54b73e92c | unity_docs | editor | Explain 'Enable automatic proxy configuration' in Unity. | If your environment is compatible with Unity’s automatic proxy configuration feature, client computers must be configured to use it.
Review the solutions at
Using Unity through web proxies
to check if your environment supports Unity’s automatic proxy configuration feature.
Whether you enable Unity’s automatic proxy con... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_70198e8fe0dc | unity_docs | scripting | What is `CubemapFace` in Unity? Explain its purpose and usage. | CubemapFace
enumeration
Description
Cubemap
face.
Used by
Cubemap.GetPixel
,
Cubemap.SetPixel
, and Cubemap.CopyPixel.
Properties
Property
Description
Unknown
Cubemap face is unknown or unspecified.
PositiveX
Right facing side (+x).
NegativeX
Left facing side (-x).
PositiveY
Upwards facing side (+y).
Ne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82b0e4165dde | unity_docs | rendering | What is `ParticleSystemRenderer.alignment` in Unity? Explain its purpose and usage. | ParticleSystemRenderer.alignment
public
ParticleSystemRenderSpace
alignment
;
Description
Control the direction that particles face.
For many applications, it is beneficial for particles to always face the Camera. This property allows you to change whether particles in the system face the Camera or not.
Parti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_07d8ba5161f9 | github | scripting | Write a Unity C# ScriptableObject for Preloaded Scriptable Object | ```csharp
using UnityEngine;
using yaSingleton.Helpers;
namespace yaSingleton.Utility {
/// <inheritdoc />
/// <summary>
/// ScriptableObject that automagically adds itself to Unity's preloaded assets.
/// </summary>
public abstract class PreloadedScriptableObject : ScriptableObject {
#if UNITY_ED... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_862ae8909500 | unity_docs | rendering | In Unity's 'Build your application for Android', what is 'Configure the build' and how does it work? | Before you create a build, configure your project’s settings so that Unity builds the application with the runtime settings and build system properties you want. There are two sets of settings that configure a Unity build:
Player settings
: Configure runtime and build settings for the application.
Build settings
: Conf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_60a8a2963cd7 | unity_docs | scripting | What is `Unity.Android.Gradle.Block.ctor` in Unity? Explain its purpose and usage. | Block Constructor
Declaration
public
Block
(string
name
);
Declaration
public
Block
(string
name
,
string
value
);
Parameters
Parameter
Description
name
Block name.
value
Block raw string value.
Description
Element constructor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9eccba3a8c7f | unity_docs | rendering | What is `MaterialEditor.TexturePropertyMiniThumbnail` in Unity? Explain its purpose and usage. | MaterialEditor.TexturePropertyMiniThumbnail
Declaration
public
Texture
TexturePropertyMiniThumbnail
(
Rect
position
,
MaterialProperty
prop
,
string
label
,
string
tooltip
);
Parameters
Parameter
Description
position
Rect that this control should be rendered in.
label
Label for the field.
Returns
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_735adbdc1cd8 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MallocTracked` in Unity? Explain its purpose and usage. | UnsafeUtility.MallocTracked
Declaration
public static void*
MallocTracked
(long
size
,
int
alignment
,
Unity.Collections.Allocator
allocator
,
int
callstacksToSkip
);
Parameters
Parameter
Description
size
The size of the memory block to allocate, in bytes. Ensure the size is sufficient for the intended ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cce7e823cb02 | unity_docs | math | Show me a Unity C# example demonstrating `LowLevelPhysics.ImmediatePhysics.GenerateContacts`. | u intend to run a more complex simulation, you might want to implement broadphase filtering to find out how many pairs of objects will interact. The easiest and least performant option is to put all the possible pairs of bodies into a GenerateContacts function that exists in the scene. This example shows a basic setup ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73a26b5b26e6 | unity_docs | scripting | What is `Profiling.HierarchyFrameDataView.columnTotalPercent` in Unity? Explain its purpose and usage. | HierarchyFrameDataView.columnTotalPercent
public static int
columnTotalPercent
;
Description
The percentage of the CPU time Unity spends in a sample, including the time from child samples.
The percentage is calculated from the
columnTotalTime
value of the sample divided by the CPU frame time. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_80d65d47e518 | unity_docs | ui | In Unity's 'Position element with the layout engine', what is 'Use both Relative and Absolute' and how does it work? | Avoid to use Absolute position mode because it bypasses the built-in layout engine in UI Toolkit and can lead to high-maintenance UI where changing the overall layout requires manually updating individual elements. However,
Absolute
positioning is appropriate for specific use cases, such as overlays. It’s useful to ove... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e86ebf2b0978 | github | scripting | Write a Unity C# MonoBehaviour script called Pool Service | ```csharp
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Assertions;
using Object = UnityEngine.Object;
namespace Pool.Runtime
{
/// <summary>
/// The PoolService class manages and operates the object pools for both MonoBehaviour and non-MonoBehaviour based poolable objects.
/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_234fe3ebf6db | unity_docs | scripting | What is `Unity.IntegerTime.DiscreteTime.operator_gt` in Unity? Explain its purpose and usage. | DiscreteTime.operator >
public static bool
operator >
(
Unity.IntegerTime.DiscreteTime
lhs
,
Unity.IntegerTime.DiscreteTime
rhs
);
Description
Returns whether left-hand time value is greater than the right-hand one. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ca449be14029 | unity_docs | scripting | Explain 'Integrating Unity into Android applications' in Unity. | This page describes how to integrate the Unity Runtime Library into Android applications using the Unity as a Library feature.
You can use this feature to include Unity-powered features, such as 3D/2D Real-Time Rendering,
AR
Experience, 3D model interaction, or 2D mini-games, into your application. The Unity Runtime Li... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fe200347116c | unity_docs | rendering | Explain 'Texture maps' in Unity. | Approaches for adding detail to the surface of a model.
Page Description Normal maps
Techniques for adding surface detail such as bumps, grooves, and scratches that catch the light.
Height maps
Learn about shifting the areas of the visible surface texture, to achieve a surface-level occlusion effect.
Occlusion maps
Lea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dde0b005c260 | unity_docs | rendering | Explain 'Animation clips' in Unity. | Animation clips are one of the core elements of Unity’s animation system. Unity supports importing animation from external sources. You can create
animation clips
with the Animation window.
## Animation from external sources
You can import the following types of Animation clips from external sources:
Humanoid animati... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a5ddff3c934d | unity_docs | scripting | What is `LayerMask.LayerToName` in Unity? Explain its purpose and usage. | LayerMask.LayerToName
Declaration
public static string
LayerToName
(int
layer
);
Description
Given a layer number, returns the name of the layer as defined in either a Builtin or a User Layer in the
Tags and Layers manager
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1a03618003ac | unity_docs | scripting | What is `Unity.Android.Gradle.BaseProperty` in Unity? Explain its purpose and usage. | BaseProperty
class in
Unity.Android.Gradle
/
Inherits from:
Unity.Android.Gradle.BaseElement
Description
Abstract base class for all existing property elements.
Public Methods
Method
Description
Clear
Clears the content of this element.
GetName
Gets the name of the property.
Remove
Removes this property fr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68b652a145d8 | unity_docs | scripting | What is `RectInt.xMin` in Unity? Explain its purpose and usage. | RectInt.xMin
public int
xMin
;
Description
Shows the minimum X value of the
RectInt
.
Sets the minimum X value of the
RectInt
. If you enter a minimum value that is greater than the current maximum value, then the entered value becomes the new maximum value and the previous maximum value becomes the new minim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e72e1723747d | unity_docs | physics | What is `AreaEffector2D` in Unity? Explain its purpose and usage. | AreaEffector2D
class in
UnityEngine
/
Inherits from:
Effector2D
/
Implemented in:
UnityEngine.Physics2DModule
Description
Applies forces within an area.
When the source
Collider2D
is a trigger, the effector will apply forces whenever the target
Collider2D
overlaps the source. When the source
Collider
is... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1b86223fb94 | unity_docs | editor | What is `VersionControl.VersionControlAttribute` in Unity? Explain its purpose and usage. | VersionControlAttribute
class in
UnityEditor.VersionControl
Description
Allows you to mark a class as a version control system object.
This attribute enables Unity to detect custom VCS implementations. Your VCS object must also derive from
VersionControlObject
.
```csharp
using UnityEditor.VersionControl;[Versi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_658a84f2d75c | unity_docs | scripting | What is `ParticleSystem.NoiseModule.remapEnabled` in Unity? Explain its purpose and usage. | ParticleSystem.NoiseModule.remapEnabled
public bool
remapEnabled
;
Description
Enable remapping of the final noise values, allowing for noise values to be translated into different values.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6c13f19d9a71 | unity_docs | scripting | In Unity's 'Preset Manager', what is 'Assigning a Preset for default settings' and how does it work? | To specify a Preset to use for default settings in the Preset Manager:
If you don’t already have a Preset in your project to use for default settings,
create one
.
Open the Preset Manager by choosing
Edit > Project Settings
, and selecting the
Preset Manager
.
Select
Add Default Preset
and select a default type.
The Pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b6d3be155929 | unity_docs | math | What is `Tilemaps.Tilemap.SetEditorPreviewTransformMatrix` in Unity? Explain its purpose and usage. | Tilemap.SetEditorPreviewTransformMatrix
Declaration
public void
SetEditorPreviewTransformMatrix
(
Vector3Int
position
,
Matrix4x4
transform
);
Parameters
Parameter
Description
position
Position of the editor preview Tile on the
Tilemap
.
transform
The transform matrix.
Description
Sets the transform... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af68f859b30d | unity_docs | math | What is `AndroidJNIHelper.GetMethodID` in Unity? Explain its purpose and usage. | AndroidJNIHelper.GetMethodID
Declaration
public static IntPtr
GetMethodID
(IntPtr
javaClass
,
string
methodName
);
Declaration
public static IntPtr
GetMethodID
(IntPtr
javaClass
,
string
methodName
,
string
signature
);
Declaration
public static IntPtr
GetMethodID
(IntPtr
javaClass
,
string
methodName... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_787b6574238a | unity_docs | scripting | What are the parameters of `Pool.LinkedPool_1.Get` in Unity? | Returns PooledObject<T> A PooledObject that will return the instance back to the pool when its Dispose method is called. Description Returns a PooledObject that will automatically return the instance to the pool when it is disposed. ```csharp
using System.Text;
using UnityEngine;
using UnityEngine.Pool;public class Exa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c532fcfcc99c | unity_docs | physics | What is `Physics2D.reuseCollisionCallbacks` in Unity? Explain its purpose and usage. | Physics2D.reuseCollisionCallbacks
public static bool
reuseCollisionCallbacks
;
Description
Determines whether the garbage collector should reuse only a single instance of a Collision2D type for all collision callbacks.
When an
MonoBehaviour.OnCollisionEnter2D
,
MonoBehaviour.OnCollisionStay2D
or
MonoBehavio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ca4a48129e64 | unity_docs | scripting | What is `Vector3.operator_divide` in Unity? Explain its purpose and usage. | Vector3.operator /
public static
Vector3
operator /
(
Vector3
a
,
float
d
);
Description
Divides a vector by a number.
Divides each component of
a
by a number
d
.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void Example()
{
// make the vector twi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af70435eafcb | unity_docs | math | What is `Vector4.operator_Vector4` in Unity? Explain its purpose and usage. | Vector4.Vector3
Description
Converts a Vector4 to a
Vector3
.
An implicit conversion of a
Vector4
to a
Vector3
. The
Vector4.w
is discarded.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// Create and display a Vector4.
Vector4 vector4; vector4 = new Vector4(1.0f, 2.0f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c2852abd5b91_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The base class for a Passthrough Manager
Signature:
```csharp
public abstract class BasePassthroughManager : MonoBehaviour
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_c5a85741aac0 | unity_docs | scripting | What is `GL.QUADS` in Unity? Explain its purpose and usage. | GL.QUADS
public static int
QUADS
;
Description
Mode for
Begin
: draw quads.
Draws quads using each set of 4 vertices passed. If you pass 4 vertices, one quad is drawn, where each vertex becomes one corner of the quad. If you pass 8 vertices, 2 quads will be drawn.
To set up the screen for drawing in 2D, use
G... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f90334369473 | unity_docs | scripting | What is `Object.GetInstanceID` in Unity? Explain its purpose and usage. | Object.GetInstanceID
Declaration
public int
GetInstanceID
();
Returns
int
Returns the instance ID of the object.
Description
Gets the instance ID of the object.
The instance ID of an object acts like a handle to the in-memory instance. It is always unique, and never has the value 0.
Objects loaded from f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_12abab03df0f | unity_docs | scripting | What is `UIElements.CollectionViewController.SetView` in Unity? Explain its purpose and usage. | CollectionViewController.SetView
Declaration
public void
SetView
(
UIElements.BaseVerticalCollectionView
collectionView
);
Parameters
Parameter
Description
collectionView
The view for this controller. Must not be null.
Description
Sets the view for this controller. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d29608eb4067 | unity_docs | math | Show me a Unity C# example demonstrating `AI.NavMeshPath.corners`. | NavMeshPath.corners
public Vector3[]
corners
;
Description
Corner points of the path. (Read Only)
Also known as "waypoints", the corners define the places along a path where it changes direction (ie, the path consists of a number of straight-line moves between corners).
```csharp
using UnityEngine;
using Unity... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5075c80e2fb7 | unity_docs | scripting | What are the parameters of `Component.GetComponent` in Unity? | Returns Component A Component of the matching type , otherwise null if no Component is found. Description The non-generic version of this method. This version of GetComponent is not as efficient as the Generic version (above), so you should only use it if necessary. ```csharp
using UnityEngine;public class GetComponent... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a066571e753 | unity_docs | physics | What is `IMGUI.Controls.JointAngularLimitHandle.xRange` in Unity? Explain its purpose and usage. | JointAngularLimitHandle.xRange
public
Vector2
xRange
;
Description
Returns or specifies the range of valid values for angular motion about the x-axis. Defaults to [-180.0, 180.0].
The x-value is the lower limit of the range and the y-value is the upper limit of the range.
Additional resources:
xMin
,
xMax
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9437ed8e8c3c | unity_docs | editor | Explain 'Collect performance data introduction' in Unity. | Collect performance data related to your application with the Profiler.
To collect data, you must connect the Profiler to a data source. You also must enable any
Profiler modules
that you want to collect data for.
You can collect data with the Profiler from the following sources:
Profile your application in a Player on... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8078ca34e0b4 | unity_docs | math | What is `Bounds.ToString` in Unity? Explain its purpose and usage. | Bounds.ToString
Declaration
public string
ToString
();
Declaration
public string
ToString
(string
format
);
Declaration
public string
ToString
(string
format
,
IFormatProvider
formatProvider
);
Parameters
Parameter
Description
format
A numeric format string.
formatProvider
An object that specifie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b3faedd6bab1 | unity_docs | editor | What are the parameters of `EditorGUI.LabelField` in Unity? | Description Makes a label field. (Useful for showing read-only info.) Shows a label in an editor window with the seconds since the editor started. ```csharp
// Shows a label in the editor with the seconds since the editor startedusing UnityEditor;
using UnityEngine;
using System.Collections;//Select the dependencies of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_dda1393c85aa | github | scripting | Write a Unity C# script called Addressables Handle | ```csharp
#if SMARTREFERENCE_ADDRESSABLES_SUPPORT
using UnityEngine;
using UnityEngine.ResourceManagement.AsyncOperations;
namespace SmartReference.Runtime
{
public class AddressablesHandle : ISmartReferenceHandle
{
public AsyncOperationHandle<Object> op;
public bool IsValid => op.IsValid();
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f9ccb89b9ab2 | unity_docs | scripting | What are the parameters of `Video.VideoPlayer.started` in Unity? | Description The VideoPlayer emits this event when the video starts to play. After the VideoPlayer prepares the video and plays it, it emits this event. This event is useful if you want to play sounds, visual effects, timers or similar effects when the video starts. Additional resources: VideoPlayer.loopPointReached , E... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b73789f2d172 | unity_docs | xr | What is `StereoRenderingPath.MultiPass` in Unity? Explain its purpose and usage. | StereoRenderingPath.MultiPass
Description
Multiple pass VR rendering.
This is the reference stereo rendering path for VR.
The Scene graph is traversed twice, rendering one eye at a time.
Scene culling & shadow map rendering is shared between the eyes.
Additional resources:
PlayerSettings.stereoRenderingPath
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_50266865d674 | unity_docs | ui | In Unity's 'Download and import an asset package', what is 'Procedure' and how does it work? | Open the
Package Manager
window and select
My Assets
from the
navigation panel
.
Switch the context to
My Assets
The list panel displays any packages that you acquired from Asset Store using the Unity ID you’re logged in with.
If many asset packages appear in the
My Assets
list, you can
search for a specific package
by... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_17a2bb2d3255 | unity_docs | editor | Show me a Unity C# example demonstrating `MouseCursor.ResizeUpLeft`. | MouseCursor.ResizeUpLeft
Description
Resize up-Left for window edges.
```csharp
//Create a folder and name it “Editor” if this doesn’t already exist
//Put this script in the folder//This script creates a new menu (“Examples”) and a menu item (“Mouse Cursor”). Click on this option. This displays a small window that ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_58e26272afd5 | unity_docs | rendering | Give me an overview of the `VertexChannelCompressionFlags` class in Unity. | VertexChannelCompressionFlags
enumeration
Description
Use these enum flags to specify which elements of a vertex to compress.
Default settings: Position and TexCoord1 are uncompressed because high precision is usually desired. Everything else is compressed to save memory and conserve bandwidth.
Properties
Proper... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9a371853a8b1 | unity_docs | scripting | Explain 'How code stripping affects content' in Unity. | When you build a Player in Unity, the UnityLinker process runs to reduce the size of the assemblies by removing unused types. This process can strip the following:
Entire C# Unity objects such as MonoBehaviour and ScriptableObject instances. Unity can strip these from core Unity assemblies like
UnityEngine.dll and Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_845c4a32605c | unity_docs | scripting | Give me an overview of the `AndroidJavaObject` class in Unity. | AndroidJavaObject
class in
UnityEngine
/
Implemented in:
UnityEngine.AndroidJNIModule
Description
AndroidJavaObject is the Unity representation of a generic instance of java.lang.Object.
It can be used as type-less interface to an instance of any Java class.
Note
: this API can be used from custom thread, but ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cc7e4e2d4d18 | unity_docs | rendering | What is `Rendering.RenderTargetIdentifier` in Unity? Explain its purpose and usage. | RenderTargetIdentifier
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Identifies a
RenderTexture
for a
CommandBuffer
.
Render textures can be identified in a number of ways, for example a
RenderTexture
object, or one of built-in render textures (
BuiltinRenderTextureTy... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_db1d0edc2498 | unity_docs | editor | Show me a Unity C# example demonstrating `Help.HasHelpForObject`. | Help.HasHelpForObject
Declaration
public static bool
HasHelpForObject
(
Object
obj
);
Description
Is there a help page for this object?
Additional resources:
Help.ShowHelpForObject
,
Help.GetHelpURLForObject
.
Editor Window that lets you load docs for any Selected GameObject.
```csharp
using UnityEngine;
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f01dd7b9d01a | unity_docs | rendering | Explain 'Simulating real-world cameras with Physical Cameras' in Unity. | Resources and techniques for using a Physical Camera component, which has the same camera settings as most 3D modeling applications.
Page Description Physical Cameras
Understand how a Physical Camera component simulates real-word cameras, including settings such as focal length and sensor size.
Widen the view with Lens... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af7fc2dc65bf | unity_docs | scripting | What is `UIElements.VisualTreeAsset` in Unity? Explain its purpose and usage. | VisualTreeAsset
class in
UnityEngine.UIElements
/
Inherits from:
ScriptableObject
/
Implemented in:
UnityEngine.UIElementsModule
Description
An instance of this class holds a tree of
VisualElementAsset's
, created from a UXML file. Each node in the file corresponds to a
VisualElementAsset
. You can clone a ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e90716a4f1e0 | unity_docs | xr | What is `AssetDatabase.GlobalArtifactDependencyVersion` in Unity? Explain its purpose and usage. | AssetDatabase.GlobalArtifactDependencyVersion
public static uint
GlobalArtifactDependencyVersion
;
Description
Changes during Refresh if anything has changed that can invalidate any artifact.
If this version doesn't change then all artifacts are still valid that were requested during this version. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f08cefebf14a | unity_docs | rendering | What are the parameters of `ImageConversion.EncodeToPNG` in Unity? | Description Encodes this texture into PNG format. This function returns a byte array which is the PNG file data. You can store the encoded data as a file or send it over the network without further processing. This function does not work on any compressed format. Texture.isReadable must be true . The encoded PNG data w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9fa5a55bd063 | unity_docs | scripting | What is `SpeedTreeImporter.enableHueByDefault` in Unity? Explain its purpose and usage. | SpeedTreeImporter.enableHueByDefault
public bool
enableHueByDefault
;
Description
Gets and sets a boolean to enable hue variation effect on the imported SpeedTree model.
Hue variation varies the color of the model based on its world position, resulting in a more natural forest look. Use this variable to toggle... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_94c216cb2541_doc_13 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The questions that need to be answered to complete the quiz.If `questionOrdering` is set to `Ordered`, the questions are displayed in the order of the array.
Signature:
```csharp
public ButtonQuizQuestion[] questions = new ButtonQuizQuestion[0];
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_cc5438e023cb | unity_docs | scripting | What is `Experimental.GraphView.EdgeDragHelper_1.resetPositionOnPan` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
EdgeDragHelper<T0>.resetPositionOnPan
public bool
resetPositionOnPan
;
Description
True if it should reset position on pan if nothing is connected. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13279a633bd5 | unity_docs | scripting | Show me a Unity C# example demonstrating `WebCamTexture`. | information, refer to
Request runtime permissions
documentation.
On iOS and WebGL, you can request camera permission at runtime using
Application.RequestUserAuthorization
.
Note
: On Android and iOS platforms, Unity doesn't support multiple WebCamTextures simultaneously.
The following code example demonstrates how t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d52c8ee5b567 | unity_docs | scripting | What is `UIElements.StyleFontDefinition.ctor` in Unity? Explain its purpose and usage. | StyleFontDefinition Constructor
Declaration
public
StyleFontDefinition
(
UIElements.FontDefinition
f
);
Description
Creates from either a
FontDefinition
or a
StyleKeyword
.
Declaration
public
StyleFontDefinition
(
TextCore.Text.FontAsset
f
);
Description
Creates from either a
FontDefinition
or... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c59ee8799e3b | unity_docs | scripting | What is `Accessibility.AccessibilityHierarchy.ContainsNode` in Unity? Explain its purpose and usage. | AccessibilityHierarchy.ContainsNode
Declaration
public bool
ContainsNode
(
Accessibility.AccessibilityNode
node
);
Parameters
Parameter
Description
node
The node to search for in the hierarchy.
Returns
bool
Whether the node exists in this hierarchy.
Description
Returns whether a given node exists i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_01ddc386f392 | unity_docs | ui | Show me a Unity code example for 'Bind to a list with ListView'. | ample creates in this
GitHub repository
.
## Create an object with a list
Create a GameSwitch object and a serialized object that has a list of GameSwitch objects as a property.
Create a Unity project with any template.
In your
Project window
, create a folder named
bind-to-list
to store all your files.
Create a C# s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2329a7941cc1_doc_15 | github | scripting | What does `ClearAll` do in this Unity script? Explain its purpose and signature. | Exits from all states that are in the list, basically a reset.
Signature:
```csharp
public void ClearAll()
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_f5e6fb5faaa4 | unity_docs | rendering | What is `Rendering.ShaderKeyword` in Unity? Explain its purpose and usage. | ShaderKeyword
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Represents an identifier for a specific code path in a shader.
Unity now provides the
LocalKeyword
and
GlobalKeyword
APIs which are more performant than ShaderKeyword. It is best practice to use these APIs ins... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_25eadfd67933 | unity_docs | scripting | What is `UIElements.DragEnterEvent` in Unity? Explain its purpose and usage. | DragEnterEvent
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.DragAndDropEventBase_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
Use the DragEnterEvent class to manage events that occur when dragging enters an element or one of its descendants. The DragEnterEvent does not trickle d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_513258f74c32 | unity_docs | audio | What is `AudioConfiguration.speakerMode` in Unity? Explain its purpose and usage. | AudioConfiguration.speakerMode
public
AudioSpeakerMode
speakerMode
;
Description
The current speaker mode used by the audio output device.
For an example of how to use this property, refer to
AudioSettings.Reset
. | 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.