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_f9296d0cee4b | unity_docs | performance | In Unity's 'IL2CPP limitations', what is 'Reflection' and how does it work? | Unity supports reflection on AOT platforms. However, if the compiler can’t infer that the code is used via reflection, the code might not exist at runtime. For more information, refer to
Managed code stripping
.
An AOT platform can’t implement any of the methods in the
System.Reflection.Emit
namespace. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f8cfe77149f1 | unity_docs | editor | Show me a Unity C# example demonstrating `Callbacks.RunAfterClassAttribute`. | s a dependency graph and uses topological sorting to ensure that all dependencies are run in sequence based on their dependencies. If callbacks dependencies are not present in the project then the instruction will be ignored during the generation of the dependency graph.
Note:
Defining callback dependencies is current... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b992673a5fc | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchExpressionEvaluationHints`. | SearchExpressionEvaluationHints
enumeration
Description
Hints provided to the
SearchExpression
runtime to specify how a certain
SearchExpressionEvaluatorAttribute
should be executed.
Here is an example of an evaluator not supporting thread evaluation:
```csharp
[Description("Returns asset paths corresponding ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_92cbf1f03030 | unity_docs | scripting | What is `Analytics.AnalyticsSettings` in Unity? Explain its purpose and usage. | AnalyticsSettings
class in
UnityEditor.Analytics
Description
Editor API for the Unity Services editor feature. Normally Analytics is enabled from the Services window, but if writing your own editor extension, this API can be used.
Static Properties
Property
Description
configUrl
Set the Analytics config end po... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_03c24d9f5958 | unity_docs | scripting | What is `AddComponentMenu` in Unity? Explain its purpose and usage. | AddComponentMenu
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
The AddComponentMenu attribute allows you to place a script anywhere in the "Component" menu, instead of just the "Component->Scripts" menu.
You can use this to organize the Component menu better and improve the workflow ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_671c408f7ea7 | unity_docs | rendering | In Unity's 'Inherit Velocity module reference', what is 'Properties' and how does it work? | For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to
Vary Particle System properties over time
.
Property Function Mode
Specifies how the emitter velocity is applied to particles Current The emitter’s current velocity will be applied to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e7e80989bb44 | unity_docs | rendering | In Unity's 'Blend command in ShaderLab reference', what is 'Syntax' and how does it work? | Signature
Example syntax Function Blend <state>
Blend Off
Disables blending for the default render target. This is the default value.
Blend <render target> <state>
Blend 1 Off
As above, but for a given render target. (1)
Blend <source factor> <destination factor>
Blend One Zero
Enables blending for the default render t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_703750b42dd3 | unity_docs | editor | What is `PlayModeStateChange.ExitingPlayMode` in Unity? Explain its purpose and usage. | PlayModeStateChange.ExitingPlayMode
Description
Occurs when exiting play mode, before the Editor is in edit mode.
In this condition,
EditorApplication.isPlaying
is
true
and
EditorApplication.isPlayingOrWillChangePlaymode
is
false
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b58d3b43b0f | unity_docs | scripting | What is `Experimental.GraphView.Scope` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Scope
class in
UnityEditor.Experimental.GraphView
/
Inherits from:
Experimental.GraphView.GraphElement
Description
This class allows for nodes to be grouped into a common area, or Scope. This class includes methods that autom... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52722a81397d | unity_docs | editor | Show me a Unity C# example demonstrating `PluginImporter.SetIcon`. | managed plugin.
Each
MonoScript
imported by managed plugins can have an associated custom icon. This icon is used in the Scene view, the Inspector, and the Project window. To remove a
MonoScript
's associated custom icon, pass null to this method.
Additional resources:
MonoScript.GetClass
, Type.FullName,
PluginI... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d5fcf64b5306 | unity_docs | ui | What is `UIElements.RadioButton.checkmarkBackgroundUssClassName` in Unity? Explain its purpose and usage. | RadioButton.checkmarkBackgroundUssClassName
public static string
checkmarkBackgroundUssClassName
;
Description
USS class name of checkmark background in RadioButton elements.
Unity adds this USS class to the checkmark background sub-element of the
RadioButton
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6fe99b721196 | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.PropertyDatabase.TryLoad`. | PropertyDatabase.TryLoad
Declaration
public bool
TryLoad
(ref
Search.PropertyDatabaseRecordKey
recordKey
,
out object
value
);
Parameters
Parameter
Description
recordKey
A record key.
value
The property value.
Returns
bool
True if the record is found and is valid, false otherwise.
Description
Lo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6c9f2bb2f9d6 | unity_docs | math | What is `Mathf.IsPowerOfTwo` in Unity? Explain its purpose and usage. | Mathf.IsPowerOfTwo
Declaration
public static bool
IsPowerOfTwo
(int
value
);
Description
Returns true if the value is power of two.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// prints false
Debug.Log(Mathf.IsPowerOfTwo(7)); // prints true
Debug.Log(Mathf.IsPowerOfT... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6562908c86df | unity_docs | input | What are the parameters of `AI.NavMeshAgent.FindClosestEdge` in Unity? | Returns bool True if a nearest edge is found. Description Locate the closest NavMesh edge. The returned NavMeshHit object contains the position
and details of the nearest point on the nearest edge of the
Navmesh. Since an edge typically corresponds to a wall or
other large object, this could be used to make a character... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_18a0e30ac254 | unity_docs | animation | What is `Animations.AnimationStream.rootMotionRotation` in Unity? Explain its purpose and usage. | AnimationStream.rootMotionRotation
public
Quaternion
rootMotionRotation
;
Description
Gets the root motion rotation for the evaluated frame. (Read Only)
Additional resources:
Animator.applyRootMotion
, and
IAnimationJob.ProcessRootMotion
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_058c469eccab | unity_docs | editor | What is `PlayerSettings.Android.startInFullscreen` in Unity? Explain its purpose and usage. | PlayerSettings.Android.startInFullscreen
public static bool
startInFullscreen
;
Description
Start in fullscreen mode.
If not set, Android displays the navigation bar while your game loads.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class StartInFullscreenSample : MonoBehavi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1606b5cd34a7 | unity_docs | editor | What are the parameters of `Handles.DrawTexture3DSDF` in Unity? | Description Draws a 3D texture using Signed Distance Field rendering mode in 3D space. This visualization mode supports only non-directional Signed Distance Fields. Corridor SDF visualized using Google Turbo color ramp. ```csharp
using UnityEditor;
using UnityEngine;[ExecuteInEditMode]
public class Reference : MonoBeha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3de1587b988e | unity_docs | rendering | What is `Rendering.CullingResults.reflectionProbeIndexCount` in Unity? Explain its purpose and usage. | CullingResults.reflectionProbeIndexCount
public int
reflectionProbeIndexCount
;
Returns
int
The number of per-object reflection probe indices.
Description
Gets the number of per-object reflection probe indices.
Additional resources:
FillLightAndReflectionProbeIndices
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce7c9a558e74 | unity_docs | rendering | What is `CubemapArray` in Unity? Explain its purpose and usage. | CubemapArray
class in
UnityEngine
/
Inherits from:
Texture
/
Implemented in:
UnityEngine.CoreModule
Description
Class for handling Cubemap arrays.
Modern graphics APIs, such as D3D10.1 and later, OpenGL 4.0 and later, and Metal on macOS support cubemap arrays, which are arrays of cubemaps with same size and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6cbf3fd103c5 | unity_docs | ui | Explain 'Install a feature set from the Unity registry' in Unity. | Installing a
feature set
is like installing a package from the Unity registry, except that you look for feature sets under the Features expander, rather than the Packages expander.
Open the
Package Manager
window and select
Unity Registry
from the
navigation panel
.
Select the
Unity Registry context Select the feature ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_622d21d1fa1b | unity_docs | scripting | What is `UIElements.StyleList_1.ctor` in Unity? Explain its purpose and usage. | StyleList<T0> Constructor
Declaration
public
StyleList<T0>
(List<T>
v
);
Description
Creates from either a list or a
StyleKeyword
.
Declaration
public
StyleList<T0>
(
UIElements.StyleKeyword
keyword
);
Description
Creates from either a list or a
StyleKeyword
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8b370b1b0d1d | unity_docs | math | What are the parameters of `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemCpyStride` in Unity? | Description Copies data between memory blocks with specified strides, allowing skipped bytes in both source and destination. The MemCpyStride method is similar to UnsafeUtility.MemCpy , but it supports variable strides for both source and destination memory blocks. This functionality is particularly useful for dealing ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_17c7445dde5f | unity_docs | scripting | What is `PlayerSettings.resetResolutionOnWindowResize` in Unity? Explain its purpose and usage. | PlayerSettings.resetResolutionOnWindowResize
public static bool
resetResolutionOnWindowResize
;
Description
Indicates whether to reset the application's screen resolution when the native window size changes.
When enabled, if the native window size changes, Unity sets the application's screen resolution to matc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9cb83b0fc755 | unity_docs | rendering | In Unity's 'Reflective Vertex-Lit', what is 'Reflective Properties' and how does it work? | Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader will simulate reflective surfaces such as cars, metal objects etc. It requires an environment Cubemap which will define what exactly is reflected. The main texture’s alpha channel defines the strength of reflection on the object’s surf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bedd5e76b8e1 | unity_docs | scripting | What is `CrashReport` in Unity? Explain its purpose and usage. | CrashReport
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Holds data for a single application crash event and provides access to all gathered crash reports.
If compiled with appropriate settings, Unity will try to gather useful information, like location and thread stack traces, when... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_133c01ce33dc | unity_docs | rendering | What is `LineRenderer.shadowBias` in Unity? Explain its purpose and usage. | LineRenderer.shadowBias
public float
shadowBias
;
Description
Apply a shadow bias to prevent self-shadowing artifacts. The specified value is the proportion of the line width at each segment.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(LineRenderer))]
public class ExampleClas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4788dad4bda2 | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.GetLayerName` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.GetLayerName
Declaration
public string
GetLayerName
(int
layerIndex
);
Parameters
Parameter
Description
layerIndex
The layer index.
Returns
string
The layer name.
Description
Returns the layer name. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_272a3fb53055 | unity_docs | scripting | Show me a Unity C# example demonstrating `UIElements.ListView`. | the ListView's scroller element only scrolls vertically.
To enable horizontal scrolling when the displayed element is wider than the visible area, set the
horizontal-scrolling-enabled
property in UXML or the ListView.horizontalScrollingEnabled
to
true
.
For more information, refer to
ListView
.
The followi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a9f16b5edd6c | unity_docs | scripting | Show me a Unity C# example demonstrating `Transform.childCount`. | Transform.childCount
public int
childCount
;
Description
The number of children the parent Transform has.
Note:
The parent is not included in the count.
Note:
Inactive GameObjects get included in the count.
```csharp
using UnityEngine;public class ExampleClass : MonoBehaviour
{
// generate a group of conn... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a4fd17c94a87 | unity_docs | rendering | Explain 'Pass in ShaderLab reference' in Unity. | Explore the Pass block in ShaderLab to create a shader pass, and add a name, tags, and shader code blocks.
Page Description Pass block reference
Reference for the Pass block in ShaderLab.
Name directive reference
Reference for the Name directive in ShaderLab.
Pass tags reference
Reference for the Tags block in the Pass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0bc9cf3183af | unity_docs | rendering | What is `Texture.nonStreamingTextureCount` in Unity? Explain its purpose and usage. | Texture.nonStreamingTextureCount
public static ulong
nonStreamingTextureCount
;
Description
The number of non-streaming Textures in the scene. This includes instances of Texture2D and CubeMap Textures. This does not include any other Texture types, or 2D and CubeMap Textures that Unity creates internally. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5005955d3ece | unity_docs | editor | Give me an overview of the `InitializeOnLoadMethodAttribute` class in Unity. | InitializeOnLoadMethodAttribute
class in
UnityEditor
Description
Allow an editor class method to be initialized when Unity loads without action from the user.
```csharp
using UnityEngine;
using UnityEditor;class MyClass
{
[InitializeOnLoadMethod]
static void OnProjectLoadedInEditor()
{
Debug.Log("Project load... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ba15aee8292c | unity_docs | rendering | Explain 'Normal Shader Family' in Unity. | Note.
Unity 5 introduced the
Standard Shader
which replaces these
shaders
.
These shaders are the basic shaders in Unity. They are not specialized in any way and should be suitable for most opaque objects. They are not suitable if you want your object to be transparent, emitting light etc.
## Vertex Lit
Assets needed... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_46ee009782b7 | unity_docs | rendering | Explain 'Single-pass instanced rendering and custom shaders' in Unity. | URP, HDRP, ShaderGraph, Surface shaders , and built-in shaders already support single-pass stereo instanced rendering. However, shaders from the
Asset Store
, from other third parties, or those that you have written yourself might need to be updated.
For more information about supporting instanced rendering in your sha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2b372ae67b54 | unity_docs | performance | What is `Unity.Jobs.JobHandle.CheckFenceIsDependencyOrDidSyncFence` in Unity? Explain its purpose and usage. | JobHandle.CheckFenceIsDependencyOrDidSyncFence
Declaration
public static bool
CheckFenceIsDependencyOrDidSyncFence
(
Unity.Jobs.JobHandle
jobHandle
,
Unity.Jobs.JobHandle
dependsOn
);
Parameters
Parameter
Description
jobHandle
Job handle.
dependsOn
Job handle dependency.
Returns
bool
Return value.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4427805634f1 | github | scripting | Write a Unity C# script called JPG Recorder | ```csharp
/*
* NatCorder
* Copyright (c) 2020 Yusuf Olokoba.
*/
namespace NatSuite.Recorders {
using UnityEngine;
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Internal;
/// <summary>
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_3254e1172d5b | unity_docs | math | What are the parameters of `Quaternion.SetLookRotation` in Unity? | Description Creates a rotation with the specified forward and upwards directions. Modifies the current quaternion to have the specified forward and upwards directions. This method updates the existing quaternion in place, unlike Quaternion.LookRotation which returns a new quaternion.
If used to orient a Transform , the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5ad75cd77cd7 | unity_docs | editor | What is `Rendering.GraphicsSettings.defaultRenderPipeline` in Unity? Explain its purpose and usage. | GraphicsSettings.defaultRenderPipeline
public static
Rendering.RenderPipelineAsset
defaultRenderPipeline
;
Description
The
RenderPipelineAsset
that defines the default render pipeline.
If this value is
null
, the default render pipeline is the Built-in Render Pipeline. Otherwise, the default render pipelin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_44df6f4322f6 | unity_docs | editor | In Unity's 'File Access Profiler module reference', what is 'Module details pane toolbar' and how does it work? | When you select a frame in the File Access Profiler module, the module details pane displays detailed information about files that Unity accessed during the capture. Use the toolbar to access the following functionality:
Property Description View dropdown
Use the dropdown to change the view of the data:
File Summary
: ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_20c507c8339c | unity_docs | rendering | What is `MaterialPropertyBlock.GetTexture` in Unity? Explain its purpose and usage. | MaterialPropertyBlock.GetTexture
Declaration
public
Texture
GetTexture
(string
name
);
Declaration
public
Texture
GetTexture
(int
nameID
);
Parameters
Parameter
Description
nameID
The name ID of the property retrieved by
Shader.PropertyToID
.
name
The name of the property.
Description
Get a tex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_68454efdfad1 | unity_docs | networking | In Unity's 'Netcode for GameObjects', what is 'Compatible with Unity' and how does it work? | These package versions are available in Unity version 6000.0:
Documentation location:
State
Versions available:
com.unity.netcode.gameobjects@2.11 released 2.11.0
com.unity.netcode.gameobjects@2.10 released 2.10.0
com.unity.netcode.gameobjects@2.9 released 2.9.0, 2.9.1, 2.9.2
com.unity.netcode.gameobjects@2.8 released ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_be01e4b2c659 | unity_docs | rendering | In Unity's 'Shader Import Settings window reference', what is 'Shader graph properties' and how does it work? | The following properties are available only for
shader graphs
.
Property Description Open Shader Editor
Opens the
Shader Graph
window so you can edit the shader graph.
View Generated Shader
Opens your text editor with the ShaderLab shader code that Shader Graph generates.
Copy Shader
Copies the ShaderLab shader code th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_848a5e7ba5b2 | unity_docs | xr | What is `Physics2D.defaultPhysicsScene` in Unity? Explain its purpose and usage. | Physics2D.defaultPhysicsScene
public static
PhysicsScene2D
defaultPhysicsScene
;
Description
The
PhysicsScene2D
automatically created when Unity starts.
A default
PhysicsScene2D
is automatically created when Unity starts. It is used by any
Scene
that does not request a local 2D physics Scene. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5e18c642356a | unity_docs | scripting | Explain 'Color space and HDR in the Built-in Render Pipeline' in Unity. | Resources for applying high dynamic range (HDR) to increase the range of colour and luminosity values specific to the Built-in
Render Pipeline
.
Page Description HDR in the Built-in Render Pipeline
Understand how HDR works differently in the Built-in Render Pipeline. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5254d9318dce | unity_docs | input | What is `IMGUI.Controls.MultiColumnHeader.OnGUI` in Unity? Explain its purpose and usage. | MultiColumnHeader.OnGUI
Declaration
public void
OnGUI
(
Rect
rect
,
float
xScroll
);
Parameters
Parameter
Description
xScroll
Horizontal scroll offset.
rect
Rect where the MultiColumnHeader is drawn in.
Description
Render and handle input for the MultiColumnHeader at the given rect.
If the given
xScr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b4b3566c4632 | unity_docs | scripting | In Unity's 'Performing a search', what is 'Asynchronous search API' and how does it work? | You can use the asynchronous fetchItems API when a Search Provider takes a long time to compute its results, or relies on an asynchronous search engine such as WebRequests.
To use the asynchronous API, have the fetchItems function return an
IEnumerable<SearchItem>
. The
IEnumerable<SearchItem>
should be a function that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a0934b3dc1bc | unity_docs | scripting | Show me a Unity C# example demonstrating `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemSet`. | n.
Description
Sets a block of memory to a specified byte value for a defined size.
The
MemSet
method fills a specified block of memory with a given byte value. This operation is useful for initializing memory to a known state, such as setting a buffer to zero or another specific value. Properly initializing memor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0c9869e81d2c | unity_docs | scripting | Explain 'Script execution order' in Unity. | In addition to the
execution order of functions within scripts
, another important consideration for your application is the order in which Unity executes different script components. For example, if you have two scripts ,
EngineBehaviour and SteeringBehaviour
, you might want to ensure that EngineBehaviour always upda... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7beb6702bc1d | unity_docs | physics | Show me a Unity C# example demonstrating `Search.SearchViewFlags.OpenInTextMode`. | SearchViewFlags.OpenInTextMode
Description
This flag forces the picker to open in text mode.
When this flag is set, the picker will open in text mode. When it is not set, the picker will open in the last mode used.
```csharp
[SearchContext("t:material", "asset", SearchViewFlags.OpenInTextMode)]
public Material sel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f04a3aa06ac5 | unity_docs | editor | What is `AssetDatabase.RefreshSettings` in Unity? Explain its purpose and usage. | AssetDatabase.RefreshSettings
Declaration
public static void
RefreshSettings
();
Description
Apply pending Editor Settings changes to the Asset pipeline.
Immediately applies any changes to the
EditorSettings
properties for the cache server. If not called, then changes to these settings do not take effect unti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c4752a48249e | unity_docs | editor | What is `Search.SearchIndexer.AddProperty` in Unity? Explain its purpose and usage. | SearchIndexer.AddProperty
Declaration
public void
AddProperty
(string
key
,
string
value
,
int
documentIndex
,
bool
saveKeyword
,
bool
exact
);
Declaration
public void
AddProperty
(string
key
,
string
value
,
int
score
,
int
documentIndex
,
bool
saveKeyword
,
bool
exact
);
Declaration
public void
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_70f4448190cd | unity_docs | math | What is `ComputeShader.SetMatrixArray` in Unity? Explain its purpose and usage. | ComputeShader.SetMatrixArray
Declaration
public void
SetMatrixArray
(string
name
,
Matrix4x4[]
values
);
Declaration
public void
SetMatrixArray
(int
nameID
,
Matrix4x4[]
values
);
Parameters
Parameter
Description
name
Variable name in shader code.
nameID
Property name ID, use
Shader.PropertyToID
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b91a8f0d1fc1 | unity_docs | scripting | What is `Pool.HashSetPool_1` in Unity? Explain its purpose and usage. | HashSetPool<T0>
class in
UnityEngine.Pool
/
Inherits from:
Pool.CollectionPool_2
/
Implemented in:
UnityEngine.CoreModule
Description
A version of
CollectionPool<T0,T1>
for HashSets.
```csharp
using UnityEngine.Pool;public class Example
{
void GetPooled()
{
// Get a pooled instance
var instance = HashSe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7a1172633490 | unity_docs | scripting | Explain 'Troubleshooting occlusion culling' in Unity. | Solve common problems when using occlusion culling, such as incorrect culling and slow processing.
## Symptom
Baking fails with the
Failure in split phase
error.
## Cause
The initial step of the bake tries to subdivide the scene into computation tiles. The subdivision is based on the
Smallest Occluder
parameter and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b80d86c1b109 | unity_docs | scripting | In Unity's 'Accessibility for mobile applications', what is 'Screen reader support' and how does it work? | Android and iOS devices have built-in screen readers that describe what appears on the screen out loud. These screen readers are designed to help users who are blind or have low vision to navigate and interact with their mobile devices without needing to see the screen.
Platform
Screen reader Android TalkBack iOS Voice... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_15429412966f | unity_docs | scripting | What is `UIElements.UxmlDoubleAttributeDescription.TryGetValueFromBag` in Unity? Explain its purpose and usage. | UxmlDoubleAttributeDescription.TryGetValueFromBag
Declaration
public bool
TryGetValueFromBag
(
UIElements.IUxmlAttributes
bag
,
UIElements.CreationContext
cc
,
ref double
value
);
Parameters
Parameter
Description
bag
The bag of attributes.
cc
The context in which the values are retrieved.
value
The ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_92ea33e3cef9 | unity_docs | scripting | What is `ParticleSystem.CollisionModule.maxKillSpeed` in Unity? Explain its purpose and usage. | ParticleSystem.CollisionModule.maxKillSpeed
public float
maxKillSpeed
;
Description
Kill particles whose speed goes above this threshold, after a collision.
Additional resources:
ParticleSystem.collision
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_18aa7e740c5f | unity_docs | rendering | In Unity's 'Troubleshooting the Unity Editor', what is 'Failure to Start' and how does it work? | If Unity crashes when starting then firstly make sure that your computer meets the minimal
system requirements
. Also update to the latest graphic and sound drivers.
If you get disk write errors, check your user account restrictions. When in macOS, note the “root user” is not recommended and Unity hasn’t been tested in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_082c8929c33d | unity_docs | rendering | In Unity's 'UI Builder interface overview', what is 'Library' and how does it work? | The Library pane
is similar to the
Project window
in the Unity Editor. It lists available UI elements.
The Standard tab lists the standard built-in elements that Unity provides. These elements include standard styling that works for all supported Unity Editor and runtime themes.
You can change this view mode between ti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_af0fb78a7b93_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | class DependencyInjectorThe class is a utility class that injects reference to IWorldContext
Signature:
```csharp
public class DependencyInjector: MonoBehaviour, IDependencyInjector
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1513acb18972 | unity_docs | ui | What is `UIElements.RadioButtonGroup.ussClassName` in Unity? Explain its purpose and usage. | RadioButtonGroup.ussClassName
public static string
ussClassName
;
Description
USS class name for RadioButtonGroup elements.
Unity adds this USS class to every instance of the RadioButtonGroup element. Any styling applied to
this class affects every RadioButtonGroup located beside, or below the stylesheet i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_88b658ffee36 | unity_docs | rendering | Explain 'Normal Map texture Import Settings window reference' in Unity. | The
Normal map
texture type formats the texture asset so it’s suitable for real-time normal mapping. With this texture type, you can also set the
Texture Shape
.
Property Description Create From Grayscale
Indicates whether to create the normal map from a grayscale
heightmap
.
Bumpiness
Controls the amount of bumpiness.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_49dab7fd74b0 | unity_docs | scripting | What is `UIElements.ConverterGroups.TryConvert` in Unity? Explain its purpose and usage. | ConverterGroups.TryConvert
Declaration
public static bool
TryConvert
(ref TSource
source
,
out TDestination
destination
);
Parameters
Parameter
Description
source
The source value to convert.
destination
The converted destination value if the conversion succeeded, and the default value otherwise.
Returns... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_eefa07751050 | unity_docs | rendering | In Unity's 'Render pipeline feature comparison', what is 'Shadows' and how does it work? | Feature
Built-in Render Pipeline URP HDRP
Directional Light Shadows Yes Yes Yes Multiple Directional Light Shadows Yes No No Directional Light Cascade Shadows Yes 1, 2, or 4 cascades, control by percentage only.
Yes
1 to 4 cascades. Control by percentage, or switch to meters.
Settings are in URP asset.
Yes
1 to 4 casca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce23a547c2a2 | unity_docs | scripting | What is `KeyCode.C` in Unity? Explain its purpose and usage. | KeyCode.C
Description
'c' key.
```csharp
//Attach this to a GameObject
//This script tells when the C arrow key is pressed down and when it is released
using UnityEngine;public class Example : MonoBehaviour
{
void Update()
{
//Detect when the C arrow key is pressed down
if (Input.GetKeyDown(KeyCode.C))
Debug.L... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e986150ee03 | unity_docs | rendering | What is `CubemapArray.Apply` in Unity? Explain its purpose and usage. | CubemapArray.Apply
Declaration
public void
Apply
(bool
updateMipmaps
= true,
bool
makeNoLongerReadable
= false);
Parameters
Parameter
Description
updateMipmaps
When the value is
true
, Unity recalculates mipmap levels, using mipmap level 0 as the source. The default value is
true
.
makeNoLongerReadabl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1cc1a9432beb | unity_docs | scripting | What is `IMGUI.Controls.MultiColumnHeader` in Unity? Explain its purpose and usage. | MultiColumnHeader
class in
UnityEditor.IMGUI.Controls
Description
The MultiColumnHeader is a general purpose class that e.g can be used with the TreeView to create multi-column tree views and list views.
It supports resizing of columns widths by dragging and provides useful callbacks for reacting to user input.
N... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5160515734f | unity_docs | scripting | Show me a Unity C# example demonstrating `Android.AndroidApplication.currentContext`. | AndroidApplication.currentContext
public static
AndroidJavaObject
currentContext
;
Description
Indicates the Java instance of the current context.
For more information, refer to the Android developer documentation on
Context
.
Note:
This object is managed by Unity runtime, so do not call
AndroidJavaObject.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1bbce806474 | unity_docs | math | What is `TerrainData.GetInterpolatedNormal` in Unity? Explain its purpose and usage. | TerrainData.GetInterpolatedNormal
Declaration
public
Vector3
GetInterpolatedNormal
(float
x
,
float
y
);
Description
Get an interpolated normal at a given location.
The
x
and
y
values are normalized coordinates in the range 0..1. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cd07e40a53c0 | unity_docs | ui | What are the parameters of `GUILayout.HorizontalScrollbar` in Unity? | Returns float The modified value. This can be changed by the user by dragging the scrollbar, or clicking the arrows at the end. Description Make a horizontal scrollbar. A scrollbar control returns a float value that represents the position of the draggable "thumb" withtin the bar. You can use the value to adjust anothe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_28bd2e34467f | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.SplashScreen.logos`. | PlayerSettings.SplashScreen.logos
public static SplashScreenLogo[]
logos
;
Description
The collection of logos that is shown during the splash screen. Logos are drawn in ascending order, starting from index 0, followed by 1, etc etc.
```csharp
using UnityEngine;
using UnityEditor;public class ExampleScript
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_977a1016d4be | unity_docs | rendering | What is `Rendering.ShaderPropertyFlags.MainTexture` in Unity? Explain its purpose and usage. | ShaderPropertyFlags.MainTexture
Description
Signifies that value of this property contains the main texture of the Material.
This flag corresponds to the
[MainTexture]
ShaderLab Properties attribute
.
By default, Unity considers a texture with the property name name
"_MainTex"
to be the main texture. Use the
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9d41e263604 | unity_docs | rendering | What is `Rendering.VirtualTexturing.Resolver.ctor` in Unity? Explain its purpose and usage. | Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future.
Resolver Constructor
Declaration
public
Resolver
();
Description
Create a new VirtualTextureResolver object. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9ba88b8e179 | unity_docs | rendering | What is `Experimental.GlobalIllumination.SpotLight.falloff` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
SpotLight.falloff
public
Experimental.GlobalIllumination.FalloffType
falloff
;
Description
The falloff model to use for baking the spot light.
Additional resources:
FalloffType
.
NOTE: This only applies to the Progressive... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_96fb77c6cfd2 | unity_docs | performance | What is `Compilation.CompilationPipeline.codeOptimization` in Unity? Explain its purpose and usage. | CompilationPipeline.codeOptimization
public static
Compilation.CodeOptimization
codeOptimization
;
Description
Current
code optimization
mode.
Modifying this value causes a recompile and reload of all scripts. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_51dcbfa90c8c | unity_docs | rendering | In Unity's 'QNX Player settings reference', what is 'Resolution section' and how does it work? | This section lets you customize the screen mode and default size.
Property Description Use 32-bit Display Buffer
QNX only supports 32-bit color buffers.
Disable Depth and Stencil
This isn’t supported on the QNX platform.
Render Over Native UI
This isn’t supported on the QNX platform. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_76bad50b5702 | unity_docs | scripting | What is `UIElements.IStyle.whiteSpace` in Unity? Explain its purpose and usage. | IStyle.whiteSpace
public StyleEnum<WhiteSpace>
whiteSpace
;
Description
Word wrap over multiple lines if not enough space is available to draw the text of an element.
This property is inherited by default. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_23fc41379da4 | unity_docs | editor | What is `EditorGUILayout.TextField` in Unity? Explain its purpose and usage. | EditorGUILayout.TextField
Declaration
public static string
TextField
(string
text
,
params GUILayoutOption[]
options
);
Declaration
public static string
TextField
(string
text
,
GUIStyle
style
,
params GUILayoutOption[]
options
);
Declaration
public static string
TextField
(string
label
,
string
tex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e6b05c6e8c6 | unity_docs | scripting | What is `Unity.Properties.PropertyPath.AppendPart` in Unity? Explain its purpose and usage. | PropertyPath.AppendPart
Declaration
public static
Unity.Properties.PropertyPath
AppendPart
(ref
Unity.Properties.PropertyPath
path
,
ref
Unity.Properties.PropertyPathPart
part
);
Parameters
Parameter
Description
path
The <see cref="PropertyPath" />
part
The part to add.
Returns
PropertyPath
A ne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ffd75520e4ae | unity_docs | rendering | What is `LightTransport.IDeviceContext.CreateBuffer` in Unity? Explain its purpose and usage. | IDeviceContext.CreateBuffer
Declaration
public
LightTransport.BufferID
CreateBuffer
(ulong
count
,
ulong
stride
);
Parameters
Parameter
Description
count
Number of elements in the buffer.
stride
Size of each element in bytes.
Returns
BufferID
Unique identifier for the newly created buffer.
Descri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c18f4a31b5e8 | unity_docs | rendering | What is `Rendering.CommandBuffer.SetRayTracingAccelerationStructure` in Unity? Explain its purpose and usage. | CommandBuffer.SetRayTracingAccelerationStructure
Declaration
public void
SetRayTracingAccelerationStructure
(
Rendering.RayTracingShader
rayTracingShader
,
string
name
,
Rendering.RayTracingAccelerationStructure
rayTracingAccelerationStructure
);
Declaration
public void
SetRayTracingAccelerationStructure
(... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_302070ff9e78 | unity_docs | xr | In Unity's 'Set up your Apache server configuration for Web builds', what is 'Choose your Apache Web build method' and how does it work? | You can configure Web builds in Apache using one of the two methods:
Virtual host in
httpd.conf
.
Virtual host in.htaccess
.
The recommended best practice is to configure a virtual host in Apache’s
httpd.conf
, if you have access to that configuration. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bb27a96763c3 | unity_docs | input | Explain 'Enable optional features for Embedded Linux' in Unity. | You can enable the following optional features to improve the performance of your applications.
## Loading screen
When you start the Embedded Linux player, a separate loading screen appears (typically, within 200 ms on our reference systems) containing the 2D image configured in the
Player Settings
window. The initia... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29b92e8b9bf9 | unity_docs | rendering | What is `LightTransport.PostProcessing.IProbePostProcessor.ScaleSphericalHarmonicsL2` in Unity? Explain its purpose and usage. | IProbePostProcessor.ScaleSphericalHarmonicsL2
Declaration
public bool
ScaleSphericalHarmonicsL2
(
LightTransport.IDeviceContext
context
,
BufferSlice<SphericalHarmonicsL2>
shIn
,
BufferSlice<SphericalHarmonicsL2>
shOut
,
int
probeCount
,
float
scale
);
Parameters
Parameter
Description
context
Device con... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_840466890426 | unity_docs | scripting | What is `UIElements.BindingId.ctor` in Unity? Explain its purpose and usage. | BindingId Constructor
Declaration
public
BindingId
(string
path
);
Parameters
Parameter
Description
path
The path of the property.
Description
Instantiate a new binding property.
Declaration
public
BindingId
(ref
Unity.Properties.PropertyPath
path
);
Parameters
Parameter
Description
path
The... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_875acda604c1 | unity_docs | scripting | What is `KeyCode.F` in Unity? Explain its purpose and usage. | KeyCode.F
Description
'f' key.
```csharp
//Attach this to a GameObject
//This script tells when the F arrow key is pressed down and when it is released
using UnityEngine;public class Example : MonoBehaviour
{
void Update()
{
//Detect when the F arrow key is pressed down
if (Input.GetKeyDown(KeyCode.F))
{
Debu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9b79464810cf | unity_docs | rendering | In Unity's 'Theme Style Sheet (TSS)', what is 'Create a TSS' and how does it work? | You can create different TSS files for different themes and switch between them at runtime. Typically, you should use USS for styles. Consider TSS when you customize the look and feel for different platforms or devices, or when you use different fonts for different languages if your games or applications support multip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_66fb50f2b484 | unity_docs | scripting | What is `Rendering.RenderPipelineAsset.OnDisable` in Unity? Explain its purpose and usage. | RenderPipelineAsset.OnDisable
Declaration
protected void
OnDisable
();
Description
Default implementation of OnDisable for RenderPipelineAsset. See
ScriptableObject.OnDisable
Override this function to add your specific OnDisable code. You must call base.OnDisable() as well. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_966ad6fe5e4f | unity_docs | scripting | Show me a Unity C# example demonstrating `Unity.IO.LowLevel.Unsafe.AsyncReadManagerMetrics.GetCurrentSummaryMetrics`. | d operations since you started data collection or last cleared the metrics data.
The returned
AsyncReadManagerSummaryMetrics
object provides overall statistics about the collected data. Call
GetMetrics
to get the underlying metrics data used for the summary.
Set the
flags
parameter to clear all data after retur... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_03a56142d292 | unity_docs | ui | In Unity's 'Extending the device simulator', what is 'Creating a plugin' and how does it work? | To create a Device Simulator plugin, extend the DeviceSimulatorPlugin class.
To insert UI into the Device Simulator view, your plugin must:
Override the title property to return a non-empty string.
Override the OnCreateUI method to return a VisualElement that contains the UI.
If your plugin doesn’t meet these condition... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b69ff79936d5 | unity_docs | animation | What is `Animator.deltaPosition` in Unity? Explain its purpose and usage. | Animator.deltaPosition
public
Vector3
deltaPosition
;
Description
Gets the avatar delta position for the last evaluated frame.
Animator.applyRootMotion
must be enabled for deltaPosition to be calculated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9adf21371397 | unity_docs | math | Give me an overview of the `Matrix4x4` class in Unity. | Matrix4x4
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
A standard 4x4 transformation matrix.
A transformation matrix can perform arbitrary linear 3D transformations (i.e. translation, rotation, scale, shear etc.)
and perspective transformations using homogenous coordinates. You rar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_322ba87405ef | unity_docs | physics | What is `SliderJoint2D.limits` in Unity? Explain its purpose and usage. | SliderJoint2D.limits
public
JointTranslationLimits2D
limits
;
Description
Restrictions on how far the joint can slide in each direction along the line.
The line along which the joint can slide is specified by its angle (relative to the coordinate system) and optionally by endpoint limits along its length.
Add... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e296692b7006 | unity_docs | editor | What is `PrefabUtility.ApplyObjectOverride` in Unity? Explain its purpose and usage. | PrefabUtility.ApplyObjectOverride
Declaration
public static void
ApplyObjectOverride
(
Object
instanceComponentOrGameObject
,
string
assetPath
,
InteractionMode
action
);
Parameters
Parameter
Description
instanceComponentOrGameObject
The object on the Prefab instance to apply.
assetPath
The path of th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d56bce64a4ef | unity_docs | ui | What is `UIElements.BindingExtensions.BindProperty` in Unity? Explain its purpose and usage. | BindingExtensions.BindProperty
Declaration
public static
SerializedProperty
BindProperty
(
UIElements.IBindable
field
,
SerializedObject
obj
);
Parameters
Parameter
Description
field
VisualElement field editing a property.
obj
Root SerializedObject containing the bindable property.
Returns
Serializ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f12af8c54e0 | unity_docs | scripting | What is `AudioClip.UnloadAudioData` in Unity? Explain its purpose and usage. | AudioClip.UnloadAudioData
Declaration
public bool
UnloadAudioData
();
Returns
bool
Returns `true` if the audio data unloads successfully.
Description
Unloads the audio data associated with the clip. This works only for AudioClips that are based on actual sound file assets.
This is useful because when you... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ee320c3f8c8 | unity_docs | math | What is `ArticulationJacobian.rows` in Unity? Explain its purpose and usage. | ArticulationJacobian.rows
public int
rows
;
Description
Number of rows of the matrix is equal to the number of articulation bodies in hierarchy times 6: 3 rows of linear/positional DOF and 3 rows of angular/rotational DOF for each body. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4e8338e891f0 | unity_docs | rendering | Explain 'LOD and Enlighten Realtime Global Illumination' in Unity. | Objects with Receive Global Illumination
set to Lightmaps have a lighting solution with lightmaps for baked direct and
indirect lighting
, and lightmaps for Enlighten Realtime Global Illumination. For more information about
Receive Global Illumination
, see the
Mesh Renderer settings
and the script reference for
Receiv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_369bb4642d7e | unity_docs | rendering | What is `Rendering.BuiltinRenderTextureType.MotionVectors` in Unity? Explain its purpose and usage. | BuiltinRenderTextureType.MotionVectors
Description
Motion Vectors generated when the camera has motion vectors enabled.
Used by various post effects that require per pixel motion information.
Additional resources:
CommandBuffer
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_32e954c2fabf | unity_docs | scripting | What is `Rigidbody.GetPointVelocity` in Unity? Explain its purpose and usage. | Rigidbody.GetPointVelocity
Declaration
public
Vector3
GetPointVelocity
(
Vector3
worldPoint
);
Description
The velocity of the rigidbody at the point
worldPoint
in global space.
GetPointVelocity will take the angularVelocity of the rigidbody into account when calculating the velocity.
```csharp
using Un... | 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.