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_e20d7bd79556 | unity_docs | rendering | In Unity's 'Recommended Graphics settings to optimize your Web build', what is 'Lightmap Modes' and how does it work? | Use the Lightmap Modes
setting to change the shader variant stripping behavior for lightmap-related shaders. For examples of lightmap-related shader variants, refer to
Graphics
.
The recommended setting for each of these settings is
Automatic (default)
, which removes any shader variants that aren’t used in your build.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3310a4420bd6 | unity_docs | editor | In Unity's 'Contents of the Asset Database', what is 'Asset caching and dependencies' and how does it work? | The Asset Database keeps track of all the dependencies for each asset and caches artifacts. Artifacts are treated as cached data because Unity can always regenerate them from the source assets, using the import settings and
project settings
saved in your project.
An asset’s import dependencies include all the data that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d311a2cfa602 | unity_docs | scripting | What is `Tilemaps.Tilemap.Orientation` in Unity? Explain its purpose and usage. | Orientation
enumeration
Description
Determines the orientation of
Tile
s in the
Tilemap
.
Properties
Property
Description
XY
Orients Tiles in the XY plane.
XZ
Orients Tiles in the XZ plane.
YX
Orients Tiles in the YX plane.
YZ
Orients Tiles in the YZ plane.
ZX
Orients Tiles in the ZX plane.
ZY
Orients Ti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_222c2383b052 | unity_docs | scripting | Show me a Unity code example for 'Migrating from MovieTexture to VideoPlayer'. | If you have projects that use the legacy MovieTexture component to download and play movies, you can update them to use the newer VideoPlayer component.
To help you migrate from MovieTexture to VideoPlayer, this page provides examples of how to download and play back a movie using each component.
## MovieTexture
```c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2ca3420e69b0 | unity_docs | rendering | In Unity's 'Output a depth texture from a camera', what is 'DepthTextureMode.DepthNormals texture' and how does it work? | This builds a screen-sized 32 bit (8 bit/channel) texture, where view space normals are encoded into R&G channels, and depth is encoded in B&A channels. Normals are encoded using Stereographic projection, and depth is 16 bit value packed into two 8 bit channels.
UnityCG.cginc
include file
has a helper function DecodeDe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1f8914e67389 | unity_docs | physics | What is `Joint.massScale` in Unity? Explain its purpose and usage. | Joint.massScale
public float
massScale
;
Description
The scale to apply to the inverse mass and inertia tensor of the body prior to solving the constraints.
Scale mass and the inertia tensor to make the joints solver converge faster, thus resulting in less stretch of the limbs of a typical ragdoll. Most useful ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_0b973bbbe09a_doc_6 | github | scripting | What does `RemoveClippable` do in this Unity script? Explain its purpose and signature. | Remove an IClippable from being tracked by the mask.Remove the clippable object from this mask
Signature:
```csharp
public void RemoveClippable(IClippable clippable)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_336faf5e6dda | unity_docs | scripting | Show me a Unity C# example demonstrating `Vector3.Scale`. | Vector3.Scale
Declaration
public static
Vector3
Scale
(
Vector3
a
,
Vector3
b
);
Description
Multiplies two vectors component-wise.
Every component in the result is a component of
a
multiplied by the same component of
b
.
```csharp
// Calculate the two vectors generating a result.
// This will comput... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a5d75ff01d08 | unity_docs | performance | In Unity's 'IUnityMemoryManager API reference', what is 'Implementation example' and how does it work? | Below is an example implementation of the IUnityMemoryManager interface.
```csharp
#include "IUnityInterface.h"
#include "IUnityMemoryManager.h"
#include <cstdint>
static IUnityMemoryManager* s_MemoryManager = NULL;
static UnityAllocator* s_Alloc = NULL;
extern "C" void UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bb0d897a6029 | github | scripting | Write a Unity C# XR/VR script for Controller | ```csharp
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SpatialTracking;
using UnityEngine.XR;
namespace VrBlocks
{
public class Controller : MonoBehaviour
{
public Vector2 Primary2dAxis { get; private set; }
public ControllerButton TriggerButton { get; } = new Contro... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_45501add1c0c | unity_docs | scripting | In Unity's 'Search presets', what is 'Provider filters' and how does it work? | The Presets provider has additional filters in the
visual query builder
. This table lists the filters and their textual query equivalents.
Filter
Search token
Query example Description Excluded Propertry
preset: exclude:<"property">
preset: exclude:"m_LocalRotation"
Find presets with the specified property in their Ex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b588d3e7ed10 | unity_docs | rendering | Show me a Unity C# example demonstrating `Mesh.CombineMeshes`. | CombineInstance
structs. The Meshes must share the same lightmap texture.
For the combined Meshes to be in the same position as the parent Mesh occupies before the use of the method, save the parent Mesh's position and rotation then set these values to zero before you combine the Meshes. Once the combination is comple... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_74a4671d8f51 | unity_docs | scripting | What is `WSA.Application.advertisingIdentifier` in Unity? Explain its purpose and usage. | Application.advertisingIdentifier
public static string
advertisingIdentifier
;
Description
Advertising ID.
Windows::System::UserProfile::AdvertisingManager::AdvertisingId.
Note: If you get an empty string, check 'PC Settings -> Privacy -> Let apps use my advertising ID for experiences across apps (turning this... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9112e93021f8 | github | scripting | Write a Unity C# script called State Enabled Canvas | ```csharp
using UnityEngine;
#if UNITY_2019
using System;
using System.Collections;
using GI.UnityToolkit.Utilities;
using System.Collections.Generic;
using GI.UnityToolkit.State;
using System.Linq;
#if ODIN_INSPECTOR
using Sirenix.OdinInspector;
#else
using GI.UnityToolkit.Attributes;
#endif
#endif
namespace GI.Uni... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3eb1e0672941 | unity_docs | performance | What is `HandleUtility.getEntitiesForAuthoringObject` in Unity? Explain its purpose and usage. | HandleUtility.getEntitiesForAuthoringObject
Parameters
Parameter
Description
value
The Unity Object.
Description
The user-defined callback that Unity uses to retrieve the
DOTS Entity
IDs associated with a Unity Object. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c173553ed38d | unity_docs | scripting | What is `UIElements.UxmlObjectReferenceAttribute.ctor` in Unity? Explain its purpose and usage. | UxmlObjectReferenceAttribute Constructor
Declaration
public
UxmlObjectReferenceAttribute
();
Description
Declares that a field or property is associated with nested UXML objects.
Declaration
public
UxmlObjectReferenceAttribute
(string
uxmlName
);
Parameters
Parameter
Description
uxmlName
The name of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_955c10caebd6 | unity_docs | editor | What is `Experimental.GraphView.GraphViewChange` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphViewChange
struct in
UnityEditor.Experimental.GraphView
Description
Set of changes in the graph that can be intercepted.
Properties
Property
Description
edgesToCreate
Edges about to be created.
elementsToRemove
Elemen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fbe18c0b4159 | unity_docs | rendering | What is `CustomRenderTexture.initializationTexture` in Unity? Explain its purpose and usage. | CustomRenderTexture.initializationTexture
public
Texture
initializationTexture
;
Description
The Texture that Unity uses to initialize a Custom Render Texture, multiplied by the initialization color. Unity ignores this parameter if an initializationMaterial is set. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5319fad7b285 | unity_docs | scripting | What is `Editor.OnPreviewGUI` in Unity? Explain its purpose and usage. | Editor.OnPreviewGUI
Declaration
public void
OnPreviewGUI
(
Rect
r
,
GUIStyle
background
);
Parameters
Parameter
Description
r
The rectangle in which to draw the preview.
background
Background image.
Description
Creates a custom preview for the preview area of the Inspector, the headers of the primary... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ff5d524f25f2 | unity_docs | rendering | In Unity's 'Terrain Settings reference', what is 'Cast shadows' and how does it work? | Defines how the terrain casts shadows onto other objects. Shadow interactions with other objects rely on
Rendering.ShadowCastingMode
.
Property Description Off
The terrain doesn’t cast shadows.
On
The terrain casts one sided shadows.
Two Sided
The terrain casts a shadow from either side of a surface, ignoring backface ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9504c218acc7 | unity_docs | scripting | What is `UIElements.IRuntimePanel.selectableGameObject` in Unity? Explain its purpose and usage. | IRuntimePanel.selectableGameObject
public
GameObject
selectableGameObject
;
Description
A GameObject from the Scene that can be used by UnityEngine.EventSystems.EventSystem
to get and set focus to this panel. If null, panel focus will be handled independently of
Event System selection. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c47ac3c1e203 | unity_docs | rendering | Give me an overview of the `ParticleSystemMeshDistribution` class in Unity. | ParticleSystemMeshDistribution
enumeration
Description
Sets which method Unity uses to randomly assign Meshes to particles.
The
ParticleSystemRenderer
uses this to determine how often to randomly select each Mesh.
Properties
Property
Description
UniformRandom
Use a uniform random value to give each Mesh an e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f26f6a822037 | unity_docs | physics | Give me an overview of the `MeshColliderCookingOptions` class in Unity. | MeshColliderCookingOptions
enumeration
Description
Cooking options that are available with MeshCollider.
Properties
Property
Description
None
No optional cooking steps will be run.
CookForFasterSimulation
Toggle between cooking for faster simulation or faster cooking time.
EnableMeshCleaning
Toggle cleaning o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4195d1cfae50 | unity_docs | rendering | Give me an overview of the `CustomRenderTextureInitializationSource` class in Unity. | CustomRenderTextureInitializationSource
enumeration
Description
Specify the source of a Custom Render Texture initialization.
Additional resources:
CustomRenderTexture
.
Properties
Property
Description
TextureAndColor
Custom Render Texture is initialized by a Texture multiplied by a Color.
Material
Custom Re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_56d07ffbad82 | unity_docs | rendering | What is `MaterialEditor.GetDefaultPropertyHeight` in Unity? Explain its purpose and usage. | MaterialEditor.GetDefaultPropertyHeight
Declaration
public static float
GetDefaultPropertyHeight
(
MaterialProperty
prop
);
Description
Calculate height needed for the property, ignoring custom drawers.
This is similar to
GetPropertyHeight
, except it ignores any custom
MaterialPropertyDrawer
objects. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_609b6b1c14b1 | unity_docs | editor | Show me a Unity code example for 'Assembly metadata and compilation details'. | erties for your assemblies. Although not a requirement, it’s good practice to define these attributes in a separate file named
AssemblyInfo.cs
alongside your Assembly Defintion.
For example, the following assembly attributes specify several .NET assembly metadata values and the Unity-defined Preserve attribute, which a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_26370f0ec0bb | unity_docs | scripting | What is `Serialization.ManagedReferenceUtility.SetManagedReferenceIdForObject` in Unity? Explain its purpose and usage. | ManagedReferenceUtility.SetManagedReferenceIdForObject
Declaration
public static bool
SetManagedReferenceIdForObject
(
Object
obj
,
object
scriptObj
,
long
refId
);
Parameters
Parameter
Description
hostObj
The "host" object that supports
SerializeReference
. For example,
MonoBehaviour
or
ScriptableObj... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_84e63a65d302 | unity_docs | editor | What is `Tilemaps.Tilemap.EditorPreviewFloodFill` in Unity? Explain its purpose and usage. | Tilemap.EditorPreviewFloodFill
Declaration
public void
EditorPreviewFloodFill
(
Vector3Int
position
,
Tilemaps.TileBase
tile
);
Parameters
Parameter
Description
position
Start position of the flood fill on the
Tilemap
.
tile
TileBase
to place.
Description
Does an editor preview of a flood fill with... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_21c8ecac5d70 | unity_docs | editor | In Unity's 'Modify the Gradle project files for a Unity application', what is 'Export to Android Studio' and how does it work? | If you
export a Unity project for Android
, Unity generates Gradle project files and places them in the exported project. If you open the exported project in
Android Studio
, you can view the Gradle project files. This can be useful to verify modifications you made using Gradle templates or the Android Project Configur... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d5f9d370f872_doc_3 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Sets which orientation the forward direction of continuous movement is relative to.
Signature:
```csharp
public enum MoveForwardSource
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_ce2285f3c0ab | unity_docs | scripting | What is `Search.Providers.SceneQueryEngineFilterAttribute` in Unity? Explain its purpose and usage. | SceneQueryEngineFilterAttribute
class in
UnityEditor.Search.Providers
/
Inherits from:
Search.QueryEngineFilterAttribute
Description
Custom attribute is used to customize the search engine used by the scene search provider.
This sample shows to use the
SceneQueryEngineFilter
attribute to customize the search ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97da3f88222c | unity_docs | editor | What is `Experimental.GraphView.GraphElementScopeExtensions` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphElementScopeExtensions
class in
UnityEditor.Experimental.GraphView
Description
Set of extension methods useful for Scope.
Static Methods
Method
Description
GetContainingScope
Returns the scope containing the specified ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_efc76d1773d9 | unity_docs | rendering | Explain 'Render to a 2D texture array' in Unity. | To render to a 2D texture array, create a
render texture
and set the Dimension property to
2D Array
.
If you use the
Graphics.SetRenderTarget
API, set the depthSlice parameter to the slice you want to render to.
If the platform supports geometry shaders, use a geometry shader to render to individual slices, or set dept... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d4d1a974f25c | unity_docs | performance | What is `GraphicsBuffer.SetData` in Unity? Explain its purpose and usage. | GraphicsBuffer.SetData
Declaration
public void
SetData
(Array
data
);
Declaration
public void
SetData
(List<T>
data
);
Declaration
public void
SetData
(NativeArray<T>
data
);
Parameters
Parameter
Description
data
Array of values to fill the buffer.
Description
Set the buffer with values from an a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cad388418a40 | unity_docs | scripting | What is `Vector2.Lerp` in Unity? Explain its purpose and usage. | Vector2.Lerp
Declaration
public static
Vector2
Lerp
(
Vector2
a
,
Vector2
b
,
float
t
);
Description
Linearly interpolates between vectors
a
and
b
by
t
.
The parameter
t
is clamped to the range [0, 1].
When
t
= 0 returns
a
.
When
t
= 1 return
b
.
When
t
= 0.5 returns the midpoint of
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29cf93ca0823 | unity_docs | editor | Give me an overview of the `LineEndingsMode` class in Unity. | LineEndingsMode
enumeration
Description
Defines the type of line endings used when creating new C# files from within the editor.
Properties
Property
Description
OSNative
File endings are the default for the active platform. On Windows, this is a carriage return character followed by linefeed character (\r\n). O... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a55dc3bbd34 | unity_docs | scripting | What are the parameters of `Animator.SetIKRotationWeight` in Unity? | Description Sets the rotational weight of an IK goal (0 = rotation before IK, 1 = rotation at the IK goal). An IK goal is a target position and rotation for a specific body part. Unity can calculate how to move the part toward the target from the starting point (ie, the current position and rotation obtained from the a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_74939bdca842 | unity_docs | rendering | What is `Rendering.GraphicsTexture.active` in Unity? Explain its purpose and usage. | GraphicsTexture.active
public static
Rendering.GraphicsTexture
active
;
Description
Currently active graphics texture.
All rendering goes into the active GraphicsTexture.
If the active GraphicsTexture is
null
, everything renders in the main window. If the active render target is a
RenderTexture
,
Graphics... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_983cb9579222_doc_8 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Indicator that the instance is destroyed as it is the case on application quit.
Signature:
```csharp
private static bool _instanceDestroyed = false;
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f1576d05292b | unity_docs | rendering | Show me a Unity C# example demonstrating `AssetDatabase.GetAssetDependencyHash`. | ative path to the asset.
guid
GUID of the asset.
Returns
Hash128
Aggregate hash.
Description
Returns the hash of all the dependencies of an asset.
The hash aggregates the following: source asset path, source asset, meta file, target platform and importer version.
The change of this hash indicates that the im... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cfbc03ba4a10 | unity_docs | scripting | Show me a Unity C# example demonstrating `Color.white`. | Color.white
public static
Color
white
;
Description
Solid white. RGBA is (1, 1, 1, 1).
```csharp
//Attach this script to a GameObject with a Renderer (go to Create>3D Object and select one of the first 6 options to create a GameObject with a Renderer automatically attached).
//This script changes the Color of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d38cfcfe430b | unity_docs | rendering | What is `EditorStyles` in Unity? Explain its purpose and usage. | EditorStyles
class in
UnityEditor
Description
Common GUIStyles used for EditorGUI controls.
Static Properties
Property
Description
boldFont
Bold font.
boldLabel
Style for bold label.
centeredGreyMiniLabel
Style for label with small font which is centered and grey.
colorField
Style used for headings for Colo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_57fd456e3f25 | unity_docs | scripting | Explain 'Use Unity through web proxies' in Unity. | Some organizations use a web proxy, which is an intermediary server between users and the internet resource they’re requesting. Organizations use web proxies for several reasons, including security, privacy, and network efficiency.
If you are deploying Unity in an environment that requires internet access through a web... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_70ca7ee14752 | unity_docs | math | What is `Transform.InverseTransformDirections` in Unity? Explain its purpose and usage. | Transform.InverseTransformDirections
Declaration
public void
InverseTransformDirections
(Span<Vector3>
directions
);
Parameters
Parameter
Description
directions
The directions to be transformed, each is replaced by the transformed version.
Description
Transforms multiple directions from world space to loc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_707801a5d53a | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchIndexer.ctor`. | SearchIndexer Constructor
Declaration
public
SearchIndexer
();
Declaration
public
SearchIndexer
(string
name
);
Parameters
Parameter
Description
name
Name of the indexer.
Description
Creates a new default SearchIndexer.
```csharp
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
static ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7c59f1b91a24 | github | scripting | Write a Unity C# UI script for Non Native Key | ```csharp
// Copyright (c) Mixed Reality Toolkit Contributors
// Licensed under the BSD 3-Clause
using UnityEngine;
using UnityEngine.UI;
namespace MixedReality.Toolkit.UX.Experimental
{
/// <summary>
/// Abstract class representing a key in the non native keyboard
/// </summary>
/// <remarks>
///... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_f745f460fbf7 | unity_docs | rendering | Show me a Unity C# example demonstrating `Rendering.ScriptableRenderContext.DrawRenderers`. | unction creates commands to draw the specified geometry, and adds the commands to the internal command list of the
ScriptableRenderContext
. The
ScriptableRenderContext
executes all the commands in its internal list when
ScriptableRenderContext.Submit
is called.
This example demonstrates using a
CommandBuffer
to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e44e442bfc0 | unity_docs | scripting | What is `WSA.SecondaryTileData.backgroundColor` in Unity? Explain its purpose and usage. | SecondaryTileData.backgroundColor
public
Color32
backgroundColor
;
Description
Defines background color for secondary tile.
When assigned, sets backgroundColorSet to true.
Not used, when backgroundColorSet is false. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0fb573037b45 | unity_docs | scripting | What is `SceneManagement.UnloadSceneOptions.UnloadAllEmbeddedSceneObjects` in Unity? Explain its purpose and usage. | UnloadSceneOptions.UnloadAllEmbeddedSceneObjects
Description
Unloads all objects that are loaded from the scene's serialized file. Without this flag, only GameObject and Components within the scene's hierarchy are unloaded.
Note:
Objects that are dynamically created during the build process can be embedded in the s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a660f3400a74 | unity_docs | scripting | What is `UIElements.BaseVerticalCollectionView.fixedItemHeight` in Unity? Explain its purpose and usage. | BaseVerticalCollectionView.fixedItemHeight
public float
fixedItemHeight
;
Description
The height of a single item in the list, in pixels.
This property must be set when using the virtualizationMethod is set to
FixedHeight
, for the collection view to function.
If set when virtualizationMethod is
DynamicH... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_eab334dfa374 | unity_docs | scripting | Explain 'Constraint components introduction' in Unity. | A Constraint component links the position, rotation, or scale of a GameObject to another GameObject. A constrained GameObject moves, rotates, or scales like the GameObject it is linked to.
Unity supports the following types of Constraint components:
Aim
: Rotate the constrained GameObject to face the linked GameObject.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b68867892167 | unity_docs | math | What is `ShaderData.ConstantInfo` in Unity? Explain its purpose and usage. | ConstantInfo
struct in
UnityEditor
Description
Provides information about a shader constant (uniform) value.
Properties
Property
Description
ArraySize
The number of elements in this constant (Read Only). If this value is greater than 1, the constant is an array.
Columns
If the constant is a matrix or vector t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6dc95f197b88_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Class used to sync the transform of a target game object with this one.
Signature:
```csharp
public class TransformSync : MonoBehaviour
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_ae0dbbfc9edb | unity_docs | editor | Explain 'Gradle templates' in Unity. | Gradle templates configure how to build an Android application using
Gradle
. Each Gradle template represents a single Gradle project. Gradle projects can include, and depend on, other Gradle projects.
## Gradle template files
A Gradle template consists of the following files:
File Location Contains
baseProjectTempla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1778094d4d79 | unity_docs | scripting | What is `UIElements.RenderingLayerMaskField` in Unity? Explain its purpose and usage. | RenderingLayerMaskField
class in
UnityEditor.UIElements
/
Inherits from:
UIElements.BaseMaskField_1
Description
Drawer for
RenderingLayerMask
.
Static Properties
Property
Description
inputUssClassName
USS class name of input elements in elements of this type.
labelUssClassName
USS class name of labels in e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5f87c2def824 | unity_docs | scripting | What is `TerrainTools.NeighborTerrainsIndex` in Unity? Explain its purpose and usage. | NeighborTerrainsIndex
enumeration
Description
The index at which you should place the neighbor terrain tools in the Terrain Tools overlay.
Properties
Property
Description
CreateTerrain
The index at which you should place the Create Terrain neighbor terrain tool in the Terrain Tools overlay. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c30960b6e5a8 | unity_docs | math | What is `AndroidJNIHelper.DeleteJNIArgArray` in Unity? Explain its purpose and usage. | AndroidJNIHelper.DeleteJNIArgArray
Declaration
public static void
DeleteJNIArgArray
(object[]
args
,
jvalue[]
jniArgs
);
Parameters
Parameter
Description
args
The array of arguments used as a parameter to CreateJNIArgArray().
jniArgs
The array returned by CreateJNIArgArray().
Description
Deletes any loc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a1414ecdf859 | unity_docs | scripting | What is `BuildCompression.Uncompressed` in Unity? Explain its purpose and usage. | BuildCompression.Uncompressed
public static
BuildCompression
Uncompressed
;
Description
Uncompressed Asset Bundle.
Uncompressed Asset Bundles are large, but are the fastest to access once downloaded. Uncompressed bundles are 16-byte aligned.
This BuildCompression is only supported for building Asset Bundles a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_40f842eff9dc | unity_docs | physics | Give me an overview of the `HideInInspector` class in Unity. | HideInInspector
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Flags a variable to not appear in the Inspector.
By default, a serialized variable automatically appears in the Inspector, even if the variable is private.
A variable with this attribute can be serialized and not display ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_28523828a469 | unity_docs | physics | What is `PhysicsShape2D` in Unity? Explain its purpose and usage. | PhysicsShape2D
struct in
UnityEngine
/
Implemented in:
UnityEngine.Physics2DModule
Description
Represents an efficient low-level physics shape used by the physics engine.
A
Collider2D
is a high-level representation of physics geometry that produces low-level
PhysicsShape2D
geometry that the physics engine u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_02e8dd62f2b3_doc_2 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Gets the ordered dictionary list adaptor that is used to draw the 'new entry' field.
Signature:
```csharp
public static IOrderedDictionaryListAdaptor NewEntryListAdaptor
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_3b6afb7047d6 | unity_docs | physics | In Unity's 'Profiler window reference', what is 'More (⋮) menu settings' and how does it work? | The More menu contains the following settings:
Setting Description Color Blind Mode
Enable this setting to make the Profiler use higher contrast colors in its graphs. This enhances visibility for users with red-green color blindness (such as deuteranopia, protanopia, or tritanopia).
Show stats for “current” frame
By de... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_43e075a6bde6 | unity_docs | math | Show me a Unity C# example demonstrating `Pool.ListPool_1`. | ListPool<T0>
class in
UnityEngine.Pool
/
Inherits from:
Pool.CollectionPool_2
/
Implemented in:
UnityEngine.CoreModule
Description
A version of
CollectionPool<T0,T1>
for Lists.
```csharp
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Pool;// This example shows how both version of Get... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f91143952fed | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.VersionControlAttribute`. | 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_man_1832da509304 | unity_docs | input | Show me a Unity code example for 'FloatField'. | tions to ensure that the entered data meets certain requirements.
Note
: To align a FloatField with other fields in an Inspector window, simply apply the.unity-base-field__aligned
USS class to it. For more information, refer to
BaseField
.
## Create a FloatField
You can create a FloatField with UI Builder, UXML, and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_403c19b7dc93 | unity_docs | rendering | Explain 'Shader loading' in Unity. | Unity loads
compiled shaders
from your built application in the following way:
When Unity loads a scene or a
runtime resource
, it loads all the compiled shader variants for the scene or resource into CPU memory.
By default, Unity decompresses all the shader variants into another area of CPU memory. You can
control how... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_100a5b9a51cf | unity_docs | scripting | Show me a Unity C# example demonstrating `LightTransport.RadeonRaysContext.IsCompleted`. | Description
id
ID of the event to query.
Returns
bool
True if the asynchronous operation has completed.
Description
Returns true if the asynchronous operation completed.
This method returns immediately and does not wait for the operation to complete. Use Flush to force the device implementation to start proc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d8ebb093e0c0 | unity_docs | scripting | What is `ObjectChangeKind.ChangeRootOrder` in Unity? Explain its purpose and usage. | ObjectChangeKind.ChangeRootOrder
Description
A change of this type indicates that a GameObject placed at the scene root has been reordered in the hierarchy. This happens when
Undo.SetSiblingIndex
is called or when reordering such a GameObject in the hierarchy under the same scene. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_495f97cfa9e1 | unity_docs | scripting | What is `Projector.ignoreLayers` in Unity? Explain its purpose and usage. | Projector.ignoreLayers
public int
ignoreLayers
;
Description
Which object layers are ignored by the projector.
See
layer mask
.
By default this is zero - i.e. no layers are ignored. Each set bit
in
ignoreLayers
will make this layer not affected by the projector.
```csharp
using UnityEngine;public class Exa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7b4669f4763 | unity_docs | scripting | What is `SystemLanguage.Ukrainian` in Unity? Explain its purpose and usage. | SystemLanguage.Ukrainian
Description
Ukrainian.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Ukrainian language
if (Application.systemLanguage == SystemLanguage.Ukrainian)
{
//Outputs into console that the system ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5fa89378cce4 | unity_docs | scripting | What is `Search.ParsedQuery_2.GetNodeAtPosition` in Unity? Explain its purpose and usage. | ParsedQuery<T0,T1>.GetNodeAtPosition
Declaration
public
Search.IQueryNode
GetNodeAtPosition
(int
position
);
Parameters
Parameter
Description
position
The position of the query node in the text.
Returns
IQueryNode
An IQueryNode.
Description
Get the query node located at the specified index position... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_27163ffe70d1 | unity_docs | scripting | Show me a Unity code example for 'Code examples: Call Java/Kotlin code from C# scripts'. | oidJavaObject ,
AndroidJavaClass
,
AndroidJavaProxy
, and AndroidApplication that allow you to interact with Java/Kotlin code from C#
scripts
.
The following code examples demonstrate how to use these APIs.
## Example 1: Get the hash code for a Java string
The following code example creates an instance of
java.lang.S... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_beb4fd62896b | unity_docs | editor | Give me an overview of the `EditorWindowTitleAttribute` class in Unity. | EditorWindowTitleAttribute
class in
UnityEditor
Description
Use this class to set title text and icon for an Editor window.
Unity displays the text in the window's title bar. If the window is dockable, Unity displays the text and icon in the window's tab.
Icons must be .png files. The recommended size is 16x16 p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_06855b012fd8 | unity_docs | rendering | What is `Graphics.RenderMeshInstanced` in Unity? Explain its purpose and usage. | Graphics.RenderMeshInstanced
Declaration
public static void
RenderMeshInstanced
(ref
RenderParams
rparams
,
Mesh
mesh
,
int
submeshIndex
,
T[]
instanceData
,
int
instanceCount
= -1,
int
startInstance
= 0);
Declaration
public static void
RenderMeshInstanced
(ref
RenderParams
rparams
,
Mesh
mesh
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2329a7941cc1_doc_4 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The Game Object which represents the right hand for normal interaction purposes.
Signature:
```csharp
public GameObject rightBaseController
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_0c84df649c40 | unity_docs | scripting | Show me a Unity code example for 'Load SSH keys automatically on Windows (OpenSSH)'. | Name>\.ssh\config
exists.
Note
: In some applications, such as Git Bash,.ssh
is a hidden subdirectory.
Create
C:\Users\<YourUserName>\.ssh\config
if it doesn’t exist.
Add the following content to
C:\Users\<YourUserName>\.ssh\config
to set the key to load in the authentication agent and specify its use by the target ser... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_689ac404b24a | unity_docs | scripting | What is `AndroidAssetPackImporter` in Unity? Explain its purpose and usage. | AndroidAssetPackImporter
class in
UnityEditor
/
Inherits from:
AssetImporter
Description
Represents an Android asset pack directory in a project.
Static Methods
Method
Description
GetAllImporters
Gets all Android asset pack importers.
Inherited Members
Properties Property Description
assetBundleName
Get o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6deae338fb81 | unity_docs | xr | What is `Unity.IO.LowLevel.Unsafe.AsyncReadManagerSummaryMetrics.AverageTotalRequestTimeMicroseconds` in Unity? Explain its purpose and usage. | AsyncReadManagerSummaryMetrics.AverageTotalRequestTimeMicroseconds
public float
AverageTotalRequestTimeMicroseconds
;
Description
The mean time taken from request to completion, in microseconds, for completed read request metrics included in the summary calculation. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_dc36e5cc1fa9_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | A class with a field that can be used to drawan 'Add Entry' control below the entries of an actual in an editor interface (i.e. the inspector).
Signature:
```csharp
public abstract class EditableEntry : ScriptableObject
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_90f4ada86cff | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.UsesNativeLibrary` in Unity? Explain its purpose and usage. | UsesNativeLibrary
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseElement
Description
The C# definition of the
<uses-native-library>
Android Manifest element.
For more information about the element, see Android's documentation:
UsesNativeLibrary element
Properties... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_62bca995f2a2 | unity_docs | rendering | Explain 'Set up a scene for occlusion culling' in Unity. | This page describes how to set up your Scene for
occlusion culling
, bake your occlusion culling data, and visualize the results.
## Setting up your Scene
Before you begin, identify all of the GameObjects in your Scene that you would like to be Static Occluders (GameObjects that do not move, and that block the view o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5e5cb401cb79 | unity_docs | rendering | What is `ParticleSystemShapeMultiModeValue` in Unity? Explain its purpose and usage. | ParticleSystemShapeMultiModeValue
enumeration
Description
The mode used to generate new points in a shape.
Properties
Property
Description
Random
Generate points randomly. (Default)
Loop
Animate the emission point around the shape.
PingPong
Animate the emission point around the shape, alternating between cloc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c3873ca5e9ec | unity_docs | editor | What is `PlayModeStateChange.EnteredEditMode` in Unity? Explain its purpose and usage. | PlayModeStateChange.EnteredEditMode
Description
Occurs during the next update of the Editor application if it is in edit mode and was previously in play mode.
In this condition both
EditorApplication.isPlaying
and
EditorApplication.isPlayingOrWillChangePlaymode
are
false
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88a8b1a23aa8 | unity_docs | scripting | Show me a Unity C# example demonstrating `OcclusionArea.size`. | OcclusionArea.size
public
Vector3
size
;
Description
Size that the occlusion area will have.
```csharp
using UnityEngine;[RequireComponent(typeof(OcclusionArea))]
public class Example : MonoBehaviour
{
// Sets an Occlusion area of 10 units in x, 20 units in y and 30 units in z
void Start()
{
transform.Ge... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4968113dfd88 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUILayout.HorizontalScope`. | HorizontalScope
class in
UnityEditor
Description
Disposable helper class for managing
BeginHorizontal
/
EndHorizontal
.
This is an extension to
GUILayout.HorizontalScope
. It can be used for making compound controls
Horizontal Compound group.
```csharp
using UnityEngine;
using UnityEditor;// Create a Horizo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2df8ee190684 | unity_docs | input | What is `KeyCode` in Unity? Explain its purpose and usage. | KeyCode
enumeration
Description
Key codes returned by
Event.keyCode
. These map directly to a physical key on the keyboard. If "Use Physical Keys" is enabled in
Input Manager settings
, these map directly to a physical key on the keyboard. If "Use Physical Keys" is disabled these map to language dependent mapping... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1d834f9d461e | unity_docs | rendering | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.startRotation`. | ParticleSystem.MainModule.startRotation
public
ParticleSystem.MinMaxCurve
startRotation
;
Description
The initial rotation of particles when the Particle System first spawns them.
Note that you should specify the value in radians.
Additional resources:
MinMaxCurve
.
```csharp
using UnityEngine;
using Syste... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ab81497205d9 | unity_docs | scripting | In Unity's 'Deliver applications to the Mac App Store', what is 'Validation' and how does it work? | Before you build your application, enable the
Mac App Store Validation
property. To do this:
Open Project Settings (menu:
Edit
>
Project Settings
).
Go to
Player
>
Other Settings
>
Identification
.
Enable
Mac App Store Validation
.
Enabling the
Mac App Store Validation
option means that your application only runs when ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_028e32974ef8 | unity_docs | rendering | What is `Rendering.CommandBuffer.IssuePluginEventAndDataWithFlags` in Unity? Explain its purpose and usage. | CommandBuffer.IssuePluginEventAndDataWithFlags
Declaration
public void
IssuePluginEventAndDataWithFlags
(IntPtr
callback
,
int
eventID
,
Rendering.CustomMarkerCallbackFlags
flags
,
IntPtr
data
);
Parameters
Parameter
Description
callback
Native code callback to queue for Unity's renderer to invoke.
eve... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f22078d19a11 | unity_docs | math | What is `Mathf.SmoothDampAngle` in Unity? Explain its purpose and usage. | Mathf.SmoothDampAngle
Declaration
public static float
SmoothDampAngle
(float
current
,
float
target
,
ref float
currentVelocity
,
float
smoothTime
,
float
maxSpeed
= Mathf.Infinity,
float
deltaTime
= Time.deltaTime);
Parameters
Parameter
Description
current
The current position.
target
The target p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01569163968d | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.IQueryEngineFilter.RemoveMetaInfo`. | IQueryEngineFilter.RemoveMetaInfo
Declaration
public
Search.IQueryEngineFilter
RemoveMetaInfo
(string
key
);
Parameters
Parameter
Description
key
The key of the information.
Returns
IQueryEngineFilter
The current filter.
Description
Remove information on the filter.
You can use this function to re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_637b49a42b46 | unity_docs | performance | What is `Unity.Jobs.IJobForExtensions` in Unity? Explain its purpose and usage. | IJobForExtensions
class in
Unity.Jobs
/
Implemented in:
UnityEngine.CoreModule
Description
Contains extension methods for
IJobFor
job types.
Static Methods
Method
Description
EarlyJobInit
Gathers and caches reflection data for the internal job system's managed bindings.
Run
Performs the job's Execute meth... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89b8fa20cc7c | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R16_UNorm` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R16_UNorm
Description
A one-component, 16-bit unsigned normalized format that has a single 16-bit R component. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ceb29fd65825 | unity_docs | physics | What is `ParticleSystemCollisionQuality` in Unity? Explain its purpose and usage. | ParticleSystemCollisionQuality
enumeration
Description
Quality of world collisions. Medium and low quality are approximate and may leak particles.
Properties
Property
Description
High
The most accurate world collisions.
Medium
Approximate world collisions.
Low
Fastest and most approximate world collisions. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0dd49c1a9b1d | unity_docs | scripting | What is `Unity.Properties.IPropertyBag_1.TryCreateInstance` in Unity? Explain its purpose and usage. | IPropertyBag<T0>.TryCreateInstance
Declaration
public bool
TryCreateInstance
(out TContainer
instance
);
Parameters
Parameter
Description
instance
When this method returns, contains the created instance, if type construction succeeded; otherwise, the default value for <typeparamref name="TContainer" />.
Ret... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d585d54188c4_doc_5 | github | scripting | What does `GetFullPackageDataAsync` do in this Unity script? Explain its purpose and signature. | Retrieve data for all packages associated with the currently logged in account (identified by )
Signature:
```csharp
public static async Task<APIResult> GetFullPackageDataAsync(bool useCached)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_2d6fe12f1d8b | unity_docs | scripting | What is `UIElements.UxmlEnumeration` in Unity? Explain its purpose and usage. | UxmlEnumeration
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.UxmlTypeRestriction
/
Implemented in:
UnityEngine.UIElementsModule
Description
Restricts the value of an attribute to be taken from a list of values.
Properties
Property
Description
values
The list of values the attribute can ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_90a1f92b5c39 | unity_docs | scripting | What is `WSA.Application` in Unity? Explain its purpose and usage. | Application
class in
UnityEngine.WSA
/
Implemented in:
UnityEngine.CoreModule
Description
Provides essential methods related to Window Store application.
Static Properties
Property
Description
advertisingIdentifier
Advertising ID.
arguments
Arguments passed to application.
Static Methods
Method
Descripti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a0fbc3c84d88 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R32_SFloat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R32_SFloat
Description
A one-component, 32-bit signed floating-point format that has a single 32-bit R component. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_dcd025c62afb_doc_9 | github | scripting | What does `DrawDictionaryNewInput` do in this Unity script? Explain its purpose and signature. | Draws new input controls.
Signature:
```csharp
protected virtual void DrawDictionaryNewInput(Rect position)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.