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_sr_4a33e0c195e6 | unity_docs | editor | Give me an overview of the `ConsoleWindowUtility` class in Unity. | ConsoleWindowUtility
class in
UnityEditor
Description
Console Window Utility class.
Static Methods
Method
Description
GetConsoleLogCounts
Retrieve the current counts of messages in the Console Window.
Events
Event
Description
consoleLogsChanged
Unity raises this event when logs are added or cleared in the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2039047c203d | unity_docs | math | Show me a Unity C# example demonstrating `Matrix4x4.Rotate`. | Matrix4x4.Rotate
Declaration
public static
Matrix4x4
Rotate
(
Quaternion
q
);
Description
Creates a rotation matrix.
```csharp
// Translate, rotate and scale a mesh. Try varying
// the parameters in the inspector while running
// to see the effect they have.using UnityEngine;
using System.Collections;publ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_627e5fcaa064 | github | scripting | Write a Unity C# MonoBehaviour script called Mouse Look | ```csharp
using UnityEngine;
public class MouseLook : MonoBehaviour
{
[SerializeField] float sensitivity = 2f;
float rotationX = 0f;
float rotationY = 0f;
void Update()
{
rotationX += Input.GetAxis("Mouse X") * sensitivity;
rotationY -= Input.GetAxis("Mouse Y") * sensitivity;
... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_7245491479ab | unity_docs | editor | What is `iOS.Xcode.XcScheme` in Unity? Explain its purpose and usage. | XcScheme
class in
UnityEditor.iOS.Xcode
Description
Represents an Xcode scheme (xcscheme file).
```
#if UNITY_IOS
string schemePath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/xcshareddata/xcschemes/Unity-iPhone.xcscheme";var xcscheme = new XcScheme();
xcscheme.ReadFromFile(schemePath);xcscheme.SetMetalValida... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a96f96873b94 | unity_docs | xr | Explain 'Unity Accelerator downloads' in Unity. | Welcome to the Unity Accelerator downloads page. Here you can find the latest release and previous versions, along with their release notes and installers for all supported platforms.
## Current version —v1.5.137
Release date:
March 10, 2026 Platform Installer Windows unity-accelerator-v1.5.137+g4eddaf6a-windows-x64-... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_60c9c465b218 | unity_docs | xr | What is `RenderTexture.vrUsage` in Unity? Explain its purpose and usage. | RenderTexture.vrUsage
public
VRTextureUsage
vrUsage
;
Description
If this RenderTexture is a VR eye texture used in stereoscopic rendering, this property decides what special rendering occurs, if any. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6b9f7cc00475 | unity_docs | rendering | What is `Rendering.LocalKeyword.isValid` in Unity? Explain its purpose and usage. | LocalKeyword.isValid
public bool
isValid
;
Description
Specifies whether this local shader keyword is valid (Read Only).
A local shader keyword is invalid if:
It doesn't exist in the
local keyword space
of the shader or compute shader you pass into the constructor.
If Unity can't find it when you call
Loca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dff6989042d1 | unity_docs | rendering | Explain 'Configuring Flare elements' in Unity. | Learn how Unity manages elements on a Flare asset, and compare texture layout options.
A Flare consists of multiple Elements , arranged along a line. The line is calculated by comparing the position of the GameObject containing the Lens Flare to the center of the screen. The line extends beyond the containing GameObjec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f3ba025bfff | unity_docs | rendering | What is `TextureImporterNPOTScale` in Unity? Explain its purpose and usage. | TextureImporterNPOTScale
enumeration
Description
Scaling mode for non power of two textures in
TextureImporter
.
Additional resources:
TextureImporter.npotScale
.
Properties
Property
Description
None
Keep non power of two textures as is.
ToNearest
Scale to nearest power of two.
ToLarger
Scale to larger pow... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a9813aac4c7f | unity_docs | physics | In Unity's 'Create and apply a custom Physics Material', what is 'Set a custom Physics Material asset as the project default' and how does it work? | You can use a custom Physics Material asset to replace the project-wide default settings. Unity applies the project-wide default settings to any collider that does not have an assigned Physics Material asset.
To change the default Physics Material values:
Create a Physics Material asset and configure it to the default ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bfda1b79f02c | unity_docs | rendering | What is `DefaultLightingExplorerExtension.GetEmissives` in Unity? Explain its purpose and usage. | DefaultLightingExplorerExtension.GetEmissives
Declaration
protected Object[]
GetEmissives
();
Returns
Object[]
Objects with an Emissive material.
Description
Returns objects with an Emissive material. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_891ef6d7c665 | unity_docs | rendering | What is `Texture2DArray.ignoreMipmapLimit` in Unity? Explain its purpose and usage. | Texture2DArray.ignoreMipmapLimit
public bool
ignoreMipmapLimit
;
Description
This property causes a texture to ignore all texture mipmap limit settings.
When this property is
true
, Unity always uploads the texture to the GPU at full resolution, disregarding the active quality setting's global texture mipmap ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_16a3260a3c3a | unity_docs | rendering | What is `AssetImporters.LightDescription.TryGetProperty` in Unity? Explain its purpose and usage. | LightDescription.TryGetProperty
Declaration
public bool
TryGetProperty
(string
propertyName
,
out float
value
);
Declaration
public bool
TryGetProperty
(string
propertyName
,
out
Vector4
value
);
Declaration
public bool
TryGetProperty
(string
propertyName
,
out string
value
);
Declaration
public b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8ab545d2d13 | unity_docs | rendering | What are the parameters of `Build.IPreprocessShaders.OnProcessShader` in Unity? | Description Implement this interface to receive a callback before a shader snippet is compiled. When you build your application, Unity compiles each shader source file into multiple shader variants . Unity creates variants for some or all of the possible combinations of keywords you define in the shader source file. Yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_02c3d37efb8c | unity_docs | xr | Give me an overview of the `FrameTiming` class in Unity. | FrameTiming
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Struct containing high level CPU and GPU frame timings and accompanying relevant data.
Use the FrameTiming struct to get access to the duration of CPU and GPU activities, their start time and other important performance infor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3aa579879202 | unity_docs | scripting | What are the parameters of `Assertions.Assert.AreEqual` in Unity? | Description Assert that the values are equal. Show message when the expected and actual are not equal. If no comparer is specified, EqualityComparer<T>.Default is used. ```csharp
using UnityEngine;
using UnityEngine.Assertions;public class AssertionExampleClass : MonoBehaviour
{
void Update()
{
// Make ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9bc50712dec4 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.LimitVelocityOverLifetimeModule.drag`. | ParticleSystem.LimitVelocityOverLifetimeModule.drag
public
ParticleSystem.MinMaxCurve
drag
;
Description
Controls the amount of drag that this modules applies to the particle velocities.
Additional resources:
ParticleSystem.LimitVelocityOverLifetimeModule.multiplyDragByParticleSize
,
ParticleSystem.LimitVe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1a29c32c328a | unity_docs | rendering | What is `Camera.clearFlags` in Unity? Explain its purpose and usage. | Camera.clearFlags
public
CameraClearFlags
clearFlags
;
Description
How the camera clears the background.
Can be
CameraClearFlags.Skybox
,
CameraClearFlags.SolidColor
,
CameraClearFlags.Depth
or
CameraClearFlags.Nothing
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_56a81c49d600 | unity_docs | ui | In Unity's 'Migrate from uGUI to UI Toolkit', what is 'GameObject components vs visual elements' and how does it work? | UI Toolkit refers to UI elements as controls or visual elements. Examples of UI elements are:
Controls Buttons Text labels
uGUI builds the UI hierarchy from GameObjects. Adding new UI elements requires adding new GameObjects to the hierarchy. The individual controls are implemented as MonoBehaviour components.
In UI To... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7ba9a8a2ba0 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.SetLabels`. | AssetDatabase.SetLabels
Declaration
public static void
SetLabels
(
Object
obj
,
string[]
labels
);
Parameters
Parameter
Description
obj
The asset object.
labels
An array of labels.
Description
Replaces the list of labels on an asset.
```csharp
using UnityEngine;
using UnityEditor;public class AssetDat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_07aae556f6ed | unity_docs | rendering | Show me a Unity C# example demonstrating `Texture2D.SetPixels`. | 2_SIGNED
RGB24
RGB24_SIGNED
RGB48
RGB48_SIGNED
RGB565
RGB9e5Float
RGBA32
RGBA32_SIGNED
RGBA4444
RGBA64
RGBA64_SIGNED
RGBAFloat
RGBAHalf
RGFloat
RGHalf
RHalf
For all other formats,
SetPixels
fails. Unity throws an exception when
SetPixels
fails.
Additional resources:
GetPixels
,
SetPixels32
,
Set... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c85cfb16f839 | github | scripting | Write a Unity C# UI script for Tabs And Navigation Example | ```csharp
using shadcnui.GUIComponents.Core.Base;
using shadcnui.GUIComponents.Core.Styling;
using shadcnui.GUIComponents.Layout;
using UnityEngine;
namespace shadcnui_examples.Examples
{
public class TabsAndNavigationExample : MonoBehaviour
{
private GUIHelper gui;
private Rect windowRect = ne... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_e50f16a0a62d | unity_docs | ui | In Unity's 'GUI Skin (IMGUI System)', what is 'Properties' and how does it work? | All of the properties within a GUI Skin are an individual
GUIStyle
. Please read the GUIStyle page for more information about how to use Styles.
Property:
Function:
Font
The global Font to use for every Control in the GUI Box The Style to use for all Boxes Button The Style to use for all Buttons Toggle The Style to use... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a243e9a4f7ca | unity_docs | performance | Show me a Unity C# example demonstrating `Unity.Collections.LowLevel.Unsafe.UnsafeUtility`. | eme caution to avoid memory leaks, access violations, or data corruption. The
UnsafeUtility
class is intended for scenarios where performance is critical, and the overhead of managed memory safety is prohibitive.
Common use cases include interaction with native code, performance-critical sections in custom collection... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_510500238d7a | unity_docs | rendering | What is `LightProbeProxyVolume.sizeCustom` in Unity? Explain its purpose and usage. | LightProbeProxyVolume.sizeCustom
public
Vector3
sizeCustom
;
Description
The size of the bounding box in which the 3D grid of interpolated Light Probes is generated.
This is used when the
boundingBoxMode
property is set to
Custom
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8c43afcc7f53_doc_2 | github | scripting | What does `StopTimeMeasurement` do in this Unity script? Explain its purpose and signature. | Stops and resets the stopwatch, returns the final time measurement in seconds.Wether to restart or not.The duration until the timer was stopped in seconds.
Signature:
```csharp
public float StopTimeMeasurement(bool _restart = false)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_ce922cb7d8be | unity_docs | rendering | Show me a Unity C# example demonstrating `Mesh.GetBlendShapeBufferRange`. | of blend shape vertex data for a given blend shape.
When you call
Mesh.GetBlendShapeBuffer
with
BlendShapeBufferLayout.PerShape
, Unity returns a
GraphicsBuffer
that contains blend shape vertex data, ordered by blend shape.
When you call this function, Unity returns a
BlendShapeBufferRange
for the given blend s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ace135e4d9a0 | unity_docs | scripting | Explain 'Introducing iOS' in Unity. | iOS
is the operating system that powers a variety of Apple’s mobile devices. Unity includes native support for the iOS platform which means you can use Unity and its tools to create and deliver 2D and 3D applications for iOS.
Before you begin to develop an iOS application in Unity, familiarize yourself with the key con... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62df91074f2e | unity_docs | animation | What is `Experimental.Animations.AnimationPlayableOutputExtensions` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
AnimationPlayableOutputExtensions
class in
UnityEngine.Experimental.Animations
/
Implemented in:
UnityEngine.AnimationModule
Description
Static class providing experimental extension methods for
AnimationPlayableOutput
.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_006ad2534ffd | unity_docs | scripting | What is `AvatarMask.SetTransformPath` in Unity? Explain its purpose and usage. | AvatarMask.SetTransformPath
Declaration
public void
SetTransformPath
(int
index
,
string
path
);
Parameters
Parameter
Description
index
The index of the transform.
path
The path of the transform.
Description
Sets the path of the transform at the given index. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ac5df58155a | unity_docs | scripting | What is `U2D.Light2DBase` in Unity? Explain its purpose and usage. | Light2DBase
class in
UnityEngine.U2D
/
Inherits from:
MonoBehaviour
/
Implemented in:
UnityEngine.CoreModule
Description
Provides a base class for 2D lights.
Inherited Members
Properties Property Description
enabled
Enabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabled
Checks whet... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c15a17014b50 | unity_docs | rendering | What is `TextureImporterSettings.normalMapFilter` in Unity? Explain its purpose and usage. | TextureImporterSettings.normalMapFilter
public
TextureImporterNormalFilter
normalMapFilter
;
Description
Normal map filtering mode.
Additional resources:
TextureImporterNormalFilter
,
convertToNormalMap
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89cfabeafff1 | unity_docs | rendering | What is `Renderer.lightmapScaleOffset` in Unity? Explain its purpose and usage. | Renderer.lightmapScaleOffset
public
Vector4
lightmapScaleOffset
;
Description
The UV scale & offset used for a lightmap.
A lightmap is a texture atlas and multiple Renderers can use different portions of the same lightmap.
The vector's x and y refer to UV scale, while z and w refer to UV offset.
Note: this pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f9235b90c01 | unity_docs | editor | Show me a Unity C# example demonstrating `Editor.finishedDefaultHeaderGUI`. | ditional items in the header for the
Editor
passed to the event handler method.
The following example script displays an asset's GUID as a copyable label in the header, if the inspected object is a persistent asset and not a Scene object. Copy this example script into a file called EditorHeaderGUID.cs and put it in a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_529f22d18347 | unity_docs | scripting | Show me a Unity C# example demonstrating `KeyCode.E`. | KeyCode.E
Description
'e' key.
```csharp
//Attach this to a GameObject
//This script tells when the E arrow key is pressed down and when it is released
using UnityEngine;public class Example : MonoBehaviour
{
void Update()
{
//Detect when the E arrow key is pressed down
if (Input.GetKeyDown(KeyCode.E))
Debug.L... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_beab633dfbc6 | unity_docs | editor | Give me an overview of the `EditorSkin` class in Unity. | EditorSkin
enumeration
Description
Enum that selects which skin to return from EditorGUIUtility.GetBuiltinSkin.
Properties
Property
Description
Game
The skin used for game views.
Inspector
The skin used for inspectors.
Scene
The skin used for Scene views. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d6dbc32bee95 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormatUtility.IsDepthFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.IsDepthFormat
Declaration
public static bool
IsDepthFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Description
Returns true if the format is a depth format. Returns false otherwise. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_255868ae972a | unity_docs | math | What is `Mathf.ClosestPowerOfTwo` in Unity? Explain its purpose and usage. | Mathf.ClosestPowerOfTwo
Declaration
public static int
ClosestPowerOfTwo
(int
value
);
Description
Returns the closest power of two value.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// prints 8
Debug.Log(Mathf.ClosestPowerOfTwo(7)); // prints 16
Debug.Log(Mathf.Close... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f890935689e | unity_docs | editor | What is `PlayerSettings.defaultScreenHeight` in Unity? Explain its purpose and usage. | PlayerSettings.defaultScreenHeight
public static int
defaultScreenHeight
;
Description
Default vertical dimension of stand-alone player window.
Custom player settings.
```csharp
using UnityEngine;
using UnityEditor;
// Simple Script that saves and loads custom
// Stand-alone/Web player screen settings among
/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_217c96deb876 | unity_docs | physics | What is `BoxCollider2D.edgeRadius` in Unity? Explain its purpose and usage. | BoxCollider2D.edgeRadius
public float
edgeRadius
;
Description
Controls the radius of all edges created by the collider.
The edge radius controls a radius extending around all edges of the box. When an edge has zero radius it is effectively infinitely thin. When an edge has a radius greater than zero, each edge... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d30310a62d8 | unity_docs | scripting | What is `PlayerSettings.GetStaticBatchingForPlatform` in Unity? Explain its purpose and usage. | PlayerSettings.GetStaticBatchingForPlatform
Declaration
public static bool
GetStaticBatchingForPlatform
(
BuildTarget
platform
);
Parameters
Parameter
Description
platform
BuildTarget to check if static batching is enabled for.
Returns
bool
Is static batching enabled for the platform.
Description
R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8786b86742c | unity_docs | scripting | Show me a Unity C# example demonstrating `MonoBehaviour.OnChildRectTransformDimensionsChange`. | he parent
RectTransform
when the dimensions of an immediate child RectTransform change.
Use it in UI hierarchies where layouts need to respond dynamically to size changes.
Important:
This message is only sent if the parent
RectTransform.sendChildDimensionsChange
property is set to
true
. If this property is
fals... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fe5225d4fa72 | unity_docs | scripting | Give me an overview of the `HumanPartDof` class in Unity. | HumanPartDof
enumeration
Description
Enumeration of all the parts in a human.
A human part is a region defining a set of muscles in a human, to get a specific muscle, it has to be used with another DoF enumerations.
Additional resources:
BodyDof
,
HeadDof
,
LegDof
,
ArmDof
, and
FingerDof
.
Properties
Prope... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3ffffed10a1 | unity_docs | scripting | What is `U2D.SpriteAtlasAsset.SetMasterAtlas` in Unity? Explain its purpose and usage. | SpriteAtlasAsset.SetMasterAtlas
Declaration
public void
SetMasterAtlas
(
U2D.SpriteAtlas
atlas
);
Description
Sets an Atlas to be the Master Atlas.
This method sets a valid Master Atlas to this Atlas but does not automatically turn it into a Variant Sprite Atlas. Use
SpriteAtlasExtensions.SetIsVariant
to tu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e65eda3db434 | unity_docs | physics | In Unity's 'Importing a model with humanoid animations', what is 'Set up the Avatar' and how does it work? | From the
Rig tab of the Inspector window
, set the
Animation Type to Humanoid
. By default, the
Avatar Definition
property is set to
Create From This Model
. If you keep this option, Unity attempts to map the set of bones defined in the file to a Humanoid Avatar.
In some cases, you can change this option to
Copy From O... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5ffc0021509c | unity_docs | scripting | What is `Transform.up` in Unity? Explain its purpose and usage. | Transform.up
public
Vector3
up
;
Description
The green axis of the transform in world space.
Manipulate a GameObject’s position on the Y axis (green axis) of the transform in world space. Unlike
Vector3.up
,
Transform.up
moves the GameObject while also considering its rotation.
When a GameObject is rotate... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_03ab864d6b07 | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.SearchExpressionContext.Break`. | SearchExpressionContext.Break
Declaration
public void
Break
();
Description
Break the evaluation of a
SearchExpression
meaning items won't be yielded anymore.
```csharp
[SearchExpressionEvaluator(SearchExpressionType.Iterable | SearchExpressionType.Variadic)]
[SearchExpressionEvaluatorSignatureOverload(Search... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e34a7faefa74 | unity_docs | math | What is `AndroidJNI.CallVoidMethod` in Unity? Explain its purpose and usage. | AndroidJNI.CallVoidMethod
Declaration
public static void
CallVoidMethod
(IntPtr
obj
,
IntPtr
methodID
,
jvalue[]
args
);
Description
Calls a Java instance method defined by
methodID
, optionally passing an array of arguments (
args
) to the method.
Additional resources:
Java Native Interface Specification ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_38db32ea3d08 | unity_docs | rendering | What is `SceneViewCameraWindow.additionalSettingsGui` in Unity? Explain its purpose and usage. | SceneViewCameraWindow.additionalSettingsGui
Parameters
Parameter
Description
value
The
SceneView
that opened the
SceneViewCameraWindow
window.
Description
Subscribe to this event to receive a callback when the
SceneViewCameraWindow.OnGUI
function is called.
```csharp
using UnityEditor;
using UnityEngine;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a95646168dc6 | unity_docs | editor | Show me a Unity C# example demonstrating `SceneManagement.EditorSceneManager.sceneManagerSetupRestored`. | EditorSceneManager.sceneManagerSetupRestored
Description
This can be useful to get notified when the SceneManager's scenes are replaced with a set of new scenes from calls to
RestoreSceneManagerSetup
.
Use the
scenes
argument to check what scenes has just been opened.
Additional resources:
SceneManagerSetupResto... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9649d52d540e | unity_docs | physics | Give me an overview of the `JointBreakAction2D` class in Unity. | JointBreakAction2D
enumeration
Description
Options for selecting which action to take when a
Joint2D
breaks.
Additional resources:
Joint2D.breakAction
,
Joint2D.breakForce
or
Joint2D.breakTorque
.
Properties
Property
Description
Ignore
When the Joint2D breaks, no action will be taken and Joint2D.OnJointB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_244fe8a57270 | unity_docs | rendering | Give me an overview of the `CreateAssetObjectEventArgs` class in Unity. | CreateAssetObjectEventArgs
struct in
UnityEditor
Description
A change of this type indicates that an asset object has been created. This happens for example when
Undo.RegisterCreatedObjectUndo
is used with an instance of an asset (e.g.
Texture
). Note that this only covers creation of asset objects in memory an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bb9b2f91d9f7 | unity_docs | physics | Show me a Unity code example for 'Command line arguments for UWP'. | You can launch Unity Players from the command line and pass in arguments to change how the Player executes. Universal Windows Platform (UWP) apps don’t accept command line arguments by default, so you have to pass them to an AppCallbacks constructor in
App.xaml.cpp or App.cpp
to specify them.
This code example demonstr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_14f8d06d685a | unity_docs | editor | What is `IMGUI.Controls.PrimitiveBoundsHandle.midpointHandleSizeFunction` in Unity? Explain its purpose and usage. | PrimitiveBoundsHandle.midpointHandleSizeFunction
public
Handles.SizeFunction
midpointHandleSizeFunction
;
Description
The
SizeFunction
to specify how large the midpoint control handles should be.
Defaults to
DefaultMidpointHandleSizeFunction
for new instances of
PrimitiveBoundsHandle
. The midpoint handl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7ca1f235e0ca | unity_docs | editor | Show me a Unity code example for 'IMGUI (Immediate Mode GUI)'. | IMGUI (Immediate Mode GUI) is an entirely separate feature to Unity’s main GameObject-based UI System. IMGUI is a code-driven GUI system, and is mainly intended as a tool for programmers. It is driven by calls to the OnGUI function on any script which implements it. For example, this code:
```csharp
void OnGUI() {
if ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1cb1747972c1 | unity_docs | networking | What is `Networking.UploadHandlerFile.ctor` in Unity? Explain its purpose and usage. | UploadHandlerFile Constructor
Declaration
public
UploadHandlerFile
(string
filePath
);
Parameters
Parameter
Description
filePath
A file containing data to send.
Description
Create a new upload handler to send data from the given file to the server. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_392500dc3ec4 | unity_docs | rendering | Explain 'Use built-in shader functions in the Built-In Render Pipeline' in Unity. | Unity has a number of built-in utility functions in UnityCG.cginc designed to make writing shaders simpler and easier.
## Transform positions
Function:
Description:
float4 UnityObjectToClipPos(float3 pos)
Transforms a point from object space to the
camera
’s clip space in homogeneous coordinates. This is the equivale... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_67d0c204d15c | unity_docs | rendering | What is `ModelImporter.SearchAndRemapMaterials` in Unity? Explain its purpose and usage. | ModelImporter.SearchAndRemapMaterials
Declaration
public bool
SearchAndRemapMaterials
(
ModelImporterMaterialName
nameOption
,
ModelImporterMaterialSearch
searchOption
);
Parameters
Parameter
Description
nameOption
The name matching option.
searchOption
The search type option.
Returns
bool
Returns ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0814f4a72e67 | unity_docs | rendering | What is `Device.SystemInfo.supportsMultisampled2DArrayTextures` in Unity? Explain its purpose and usage. | SystemInfo.supportsMultisampled2DArrayTextures
public static bool
supportsMultisampled2DArrayTextures
;
Description
This has the same functionality as
SystemInfo.supportsMultisampled2DArrayTextures
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d679034faaed | unity_docs | animation | What is `AnimationWindow.animationClip` in Unity? Explain its purpose and usage. | AnimationWindow.animationClip
public
AnimationClip
animationClip
;
Description
The animation clip selected in the Animation window.
Change this value to select another animation clip. To select an animation clip, it must either exist in the active state machine of the
Animator
, or be listed in the
Animatio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_b28f84f894a0_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Hides the specified GameObject when the associated interactor is blocked by an interaction within its group.
Signature:
```csharp
public class HideObjectWhenInteractorBlocked : MonoBehaviour
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_a2b1769f0579 | unity_docs | math | What is `UIElements.StartDragArgs.SetPaths` in Unity? Explain its purpose and usage. | StartDragArgs.SetPaths
Declaration
public void
SetPaths
(string[]
paths
);
Parameters
Parameter
Description
paths
The asset paths.
Description
Stores an array of paths to assets being dragged during this drag-and-drop operation. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_543fa1c61203 | unity_docs | rendering | What is `MaterialPropertyBlock.GetVectorArray` in Unity? Explain its purpose and usage. | MaterialPropertyBlock.GetVectorArray
Declaration
public Vector4[]
GetVectorArray
(string
name
);
Declaration
public Vector4[]
GetVectorArray
(int
nameID
);
Parameters
Parameter
Description
nameID
The name ID of the property retrieved by
Shader.PropertyToID
.
name
The name of the property.
Descriptio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_aee12aea8c49 | unity_docs | animation | Explain 'Loop optimization on animation clips' in Unity. | A common operation for people working with animations is to make sure they loop properly. For example, if a character is walking down a path, the walking motion comes from an
Animation clip
. The motion might last for only 10 frames but that motion plays in a continuous loop. In order to make the walking motion seamles... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6275e0abf462 | unity_docs | audio | What are the parameters of `AudioClip.Create` in Unity? | Returns AudioClip A reference to the created AudioClip. Description Creates a user AudioClip with a name and with the given length in samples, channels and frequency. Set your own audio data with AudioClip.SetData . Use the PCMReaderCallback and PCMSetPositionCallback delegates to get a callback whenever the clip reads... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3c68c23dcdde | unity_docs | scripting | What is `Unity.IO.Archive.ArchiveHandle` in Unity? Explain its purpose and usage. | ArchiveHandle
struct in
Unity.IO.Archive
/
Implemented in:
UnityEngine.CoreModule
Description
Represents an asynchronous operation handle that references an archive.
Additional resources:
ArchiveFileInterface.MountAsync
Properties
Property
Description
Compression
The type of compression the archive uses.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_df70c30c5456 | unity_docs | math | Show me a Unity C# example demonstrating `Mathf.SmoothDampAngle`. | angle over time.
This method smoothes the value with a spring-damper like algorithm that never overshoots the target value. This algorithm is based on Game Programming Gems 4, Chapter 1.10.
Note:
This method attempts to avoid overshooting the target value. When deltaTime is 0.0f, this yields NaN for the currentVeloci... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ecdd93311150 | unity_docs | editor | What is `Editor.serializedObject` in Unity? Explain its purpose and usage. | Editor.serializedObject
public
SerializedObject
serializedObject
;
Description
A
SerializedObject
representing the object or objects being inspected.
Use the serializedObject inside the
OnInspectorGUI
function of a custom Editor, as described on the page about the
Editor
class.
Do not use the serialized... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_989d4f30e054 | unity_docs | performance | What is `Unity.Jobs.IJobForExtensions.RunByRef` in Unity? Explain its purpose and usage. | IJobForExtensions.RunByRef
Declaration
public static void
RunByRef
(ref T
jobData
,
int
arrayLength
);
Parameters
Parameter
Description
jobData
The job and data to execute.
arrayLength
The number of iterations to execute the for loop over.
Description
Performs the job's Execute method immediately on the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_858eaf384f43 | unity_docs | physics | What is `UIElements.Experimental.ITransitionAnimations.Position` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ITransitionAnimations.Position
Declaration
public ValueAnimation<Vector3>
Position
(
Vector3
to
,
int
duration
);
Description
Triggers an animation changing this element's transform position. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5d707b70dc85 | unity_docs | scripting | In Unity's 'Vector4Field', what is 'Example' and how does it work? | The following UXML example creates a Vector4Field:
```
<UXML xmlns="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements">
<Vector4Field label="UXML Field" name="the-uxml-field" />
</UXML>
```
The following C# example illustrates some of the customizable functionalities of the Vector4Field:
```
/// <sample>
// Ge... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e03a2525d44f | unity_docs | scripting | Show me a Unity C# example demonstrating `Serialization.ManagedReferenceUtility.GetManagedReferenceIds`. | y.RefIdNull
if its SerialReference field is set to null.
The returned list excludes objects with missing types since they cannot be deserialized. To retrieve objects with missing types, use
SerializationUtility.GetManagedReferencesWithMissingTypes
.
Description
Retrieves a list of managed reference Ids assigned ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d9daaef35e7 | unity_docs | editor | What is `Profiling.ProfilerEditorUtility.SetSelection` in Unity? Explain its purpose and usage. | ProfilerEditorUtility.SetSelection
Declaration
public static bool
SetSelection
(
Profiling.IProfilerFrameTimeViewSampleSelectionController
controller
,
string
markerNameOrMarkerNamePath
,
long
frameIndex
,
string
threadGroupName
,
string
threadName
,
ulong
threadId
);
Parameters
Parameter
Description
co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f8a314cf7068 | unity_docs | physics | Explain 'Apply constant force to a Rigidbody' in Unity. | To apply a constant linear or rotational force to a
GameObject
’s Rigidbody , add the
Constant Force
component (represented by the API class ConstantForce ) to your GameObject. See
Constant Force component reference
for details on how to configure the properties on the component.
## Set maximum velocity limitations
C... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c32364bb0444 | unity_docs | networking | What is `Networking.MultipartFormDataSection.sectionData` in Unity? Explain its purpose and usage. | MultipartFormDataSection.sectionData
public byte[]
sectionData
;
Returns
byte[]
The raw binary data contained in this section. Will not be null or empty.
Description
Returns the raw binary data contained in this section. Will not return null or a zero-length array.
Additional resources:
IMultipartFormSec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e8cbc5641075 | unity_docs | animation | What is `Animations.AnimatorControllerPlayable` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable
struct in
UnityEngine.Animations
/
Implemented in:
UnityEngine.AnimationModule
Implements interfaces:
IPlayable
Description
An implementation of
IPlayable
that controls an animation
RuntimeAnimatorController
.
NOTE: You can use
PlayableExtensions
methods with AnimatorControllerP... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6c559dd5a311 | unity_docs | ui | Show me a Unity code example for 'Navigation events'. | ring the bubble-up phase. For example, a TextField that has the focus will stop the NavigationSubmitEvent from bubbling up. On the other hand, a focusable Label or Image will allow the NavigationSubmitEvent to bubble up to its parent elements, allowing them to handle the event if needed.
## Example
The following code... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08a8de67f002 | unity_docs | scripting | Show me a Unity C# example demonstrating `Animations.PropertyStreamHandle`. | PropertyStreamHandle
struct in
UnityEngine.Animations
/
Implemented in:
UnityEngine.AnimationModule
Description
Handle for a
Component
property on an object in the
AnimationStream
.
```csharp
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Animations;public struct PropertyStreamHandleJob : ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f97b4699e783 | unity_docs | scripting | What is `Search.IPropertyDatabaseView.CreateDocumentKey` in Unity? Explain its purpose and usage. | IPropertyDatabaseView.CreateDocumentKey
Declaration
public ulong
CreateDocumentKey
(string
documentId
);
Parameters
Parameter
Description
documentId
A document identifier.
Returns
ulong
The document key.
Description
Creates a document key from a document identifier.
Additional resources:
IPropertyD... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09dde764e223 | unity_docs | editor | What is `PlayerSettings.Android.bundleVersionCode` in Unity? Explain its purpose and usage. | PlayerSettings.Android.bundleVersionCode
public static int
bundleVersionCode
;
Description
Android bundle version code.
Should be less than 100000 for
buildApkPerCpuArchitecture
to generate valid version codes.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class BundleVersio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e50a75e0623e | unity_docs | editor | What is `Rendering.RenderPipelineEditorUtility.GetPipelineTypeFromPipelineAssetType` in Unity? Explain its purpose and usage. | RenderPipelineEditorUtility.GetPipelineTypeFromPipelineAssetType
Declaration
public static Type
GetPipelineTypeFromPipelineAssetType
(Type
pipelineAssetType
);
Parameters
Parameter
Description
pipelineAssetType
A valid
RenderPipelineAsset
type.
Returns
Type
The
RenderPipeline
type that is used to def... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6c92547bc099 | unity_docs | scripting | What is `Bounds.min` in Unity? Explain its purpose and usage. | Bounds.min
public
Vector3
min
;
Description
The minimal point of the box. This is always equal to
center-extents
.
```csharp
using UnityEngine;public class ColliderBounds : MonoBehaviour
{
Collider m_Collider;
Vector3 m_Center;
Vector3 m_Size, m_Min, m_Max; void Start()
{
//Fetch the Collider from the G... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_34ec4469b48d | unity_docs | ui | Show me a Unity code example for 'Create a custom binding to bind USS selectors'. | e completed files that this example creates in this
GitHub repository
.
## Create a custom binding type
Create a custom binding type that assigns USS classes based on the sibling index. The binding updates only when the sibling index changes.
Create a project in Unity with any template.
In the Assets folder of your p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aecd37a18a5d | unity_docs | math | What is `Rendering.RayTracingAccelerationStructure.Build` in Unity? Explain its purpose and usage. | RayTracingAccelerationStructure.Build
Declaration
public void
Build
();
Declaration
public void
Build
(
Vector3
relativeOrigin
);
Declaration
public void
Build
(
Rendering.RayTracingAccelerationStructure.BuildSettings
buildSettings
);
Description
Builds acceleration structures on the GPU. Allocates a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1a0b8f239b06 | unity_docs | scripting | What is `ShortcutManagement.IShortcutManager.IsShortcutOverridden` in Unity? Explain its purpose and usage. | IShortcutManager.IsShortcutOverridden
Declaration
public bool
IsShortcutOverridden
(string
shortcutId
);
Parameters
Parameter
Description
shortcutId
ID of shortcut to determine overridden status for.
Returns
bool
true
if the shortcut with ID
shortcutId
is overridden in the active profile; otherwise,
f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_da1b7d71d794 | unity_docs | scripting | What is `TerrainTools.TerrainPaintTool_1` in Unity? Explain its purpose and usage. | TerrainPaintTool<T0>
class in
UnityEditor.TerrainTools
/
Inherits from:
ScriptableSingleton_1
Description
Base class for terrain painting tools.
Derive from this class to implement your own terrain painting tools.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEngine.TerrainTools;namespace UnityEdi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec87a3ffe286 | unity_docs | scripting | What is `Apple.FrameCapture` in Unity? Explain its purpose and usage. | FrameCapture
class in
UnityEngine.Apple
/
Implemented in:
UnityEngine.CoreModule
Description
Interface to control XCode Frame Capture.
Static Methods
Method
Description
BeginCaptureToFile
Begin Capture to the specified file.
BeginCaptureToXcode
Begin Capture in XCode frame debugger.
CaptureNextFrameToFile
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81f547562fb0 | unity_docs | rendering | What is `Experimental.GlobalIllumination.PointLight.sphereRadius` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
PointLight.sphereRadius
public float
sphereRadius
;
Description
The light's sphere radius, influencing soft shadows. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89a8bd4cd503 | unity_docs | scripting | What is `ScriptableObject` in Unity? Explain its purpose and usage. | ScriptableObject
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.CoreModule
Description
A class you can derive from if you want to create objects that live independently of GameObjects.
Use ScriptableObjects to centralise data in a way that can be conveniently accessed from scenes ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82691f7e07b1 | unity_docs | animation | What is `AnimationUtility.GetAnimationEvents` in Unity? Explain its purpose and usage. | AnimationUtility.GetAnimationEvents
Declaration
public static AnimationEvent[]
GetAnimationEvents
(
AnimationClip
clip
);
Description
Retrieves all animation events associated with an animation clip. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c5fa568f3d3f | unity_docs | rendering | Explain 'Introduction to video transparency support in Unity' in Unity. | Alpha transparency allows parts of a video or image sequence to appear semi-transparent or fully transparent.
Transparent videos are useful if you want to create overlays and visual effects because you can layer videos within your Unity
scenes
.
This page provides an overview of alpha transparency, explains the differe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_db31acefdfdd | unity_docs | xr | What is `CameraType` in Unity? Explain its purpose and usage. | CameraType
enumeration
Description
Describes different types of camera.
The Unity Editor sets the type of a camera based on what it is used for. When selecting a model asset in the project the preview in the Inspector will be rendered with a camera that has the type Preview. A camera in the Scene Hierarchy will ha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_55f5d0ae6893 | unity_docs | physics | What is `BoxCollider` in Unity? Explain its purpose and usage. | BoxCollider
class in
UnityEngine
/
Inherits from:
Collider
/
Implemented in:
UnityEngine.PhysicsModule
Description
A box-shaped primitive collider.
Additional resources:
SphereCollider
,
CapsuleCollider
,
PhysicsMaterial
,
Rigidbody
.
Properties
Property
Description
center
The center of the box, meas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_730fa8ad3655 | github | scripting | Write a Unity Editor script for META Boundary Visibility | ```csharp
// SPDX-FileCopyrightText: 2024 Michael Nisbet <me@mikesky.dev>
// SPDX-License-Identifier: MIT
using System.Runtime.InteropServices;
using UnityEngine.XR.OpenXR;
using UnityEngine.XR.OpenXR.Features;
using UnityEngine.XR.OpenXR.NativeTypes;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using Unity... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_732a62d65a1b | unity_docs | editor | In Unity's 'Create list and tree views', what is 'Create a list view' and how does it work? | To create a list view, first use the UI builder to create a ListView UI control. Then, create a custom Editor window with the ListView and define where to get data for the list in a C# script. Finally, reference the UXML file to the C# script.
Right-click in the Editor folder.
Select
Create
>
UI Toolkit
>
Editor Window... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7748b0977db4 | unity_docs | scripting | Explain 'tvOS Player Settings' in Unity. | tvOS shares many
Player Settings with iOS
but there are certain settings that are specific only to tvOS.
## Icon
Use the Icon settings to customize the branding for your Apple TV app.
Apple TV images consist of between two and five layers. Unity only provides two layers for Apple TV icons. For more information on lay... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f5be5c51e4be | unity_docs | rendering | In Unity's 'Image import settings', what is 'Vector images' and how does it work? | The recommended import settings for a SVG Vector image that you use as a background for a visual element:
Property:
Value:
Generated Asset Type
UI Toolkit Vector Image
Tessellation Settings Basic Target Resolution
Lowest value that produces satisfactory results
Tip
:
You can
apply default presets to Assets by folder
to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ecd948ae18a2 | unity_docs | rendering | In Unity's 'Search provider references', what is 'Search external sources' and how does it work? | The following search providers allow you to search external sources:
Provider Token Description
Search external sources
N/A
An overview of searching external sources.
Search the Unity Asset Store store Search the Unity
Asset Store
.
Search for packages pkg Search the Package Manager registry and installed packages. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81f45fd1c537 | unity_docs | rendering | What is `SystemInfo.hasMipMaxLevel` in Unity? Explain its purpose and usage. | SystemInfo.hasMipMaxLevel
public static bool
hasMipMaxLevel
;
Description
Returns true if the GPU supports partial mipmap chains (Read Only).
Some GPUs require that mipmapped textures must contain the full set of mipmaps. Query this flag to determine if partial sets of mipmaps are allowed on the device. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4291674cab07 | unity_docs | editor | Explain 'Contextual menu events' in Unity. | Use the contextual menu events,
ContextualMenuManipulator and ContextualMenuPopulateEvent
, to display a set of choices when a user performs certain actions, such as when a user right-clicks a label.
## Enable contextual menus
To enable contextual menus, attach the ContextualMenuManipulator to a
visual element
. This... | 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.