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_2282d9b55683 | unity_docs | rendering | What is `Rendering.RayTracingSubMeshFlags` in Unity? Explain its purpose and usage. | RayTracingSubMeshFlags
enumeration
Description
Flags that determine how rays intersect the geometry for each submesh relative to Material type during ray tracing.
When
RayTracingAccelerationStructure.AddInstance
is called, a Renderer can be passed as argument. The Renderer's Mesh can have one or more sub-meshes.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_930977926ce3 | unity_docs | rendering | What is `XR.XRDisplaySubsystem.GetSharedDepthTextureForRenderPass` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.GetSharedDepthTextureForRenderPass
Declaration
public
RenderTexture
GetSharedDepthTextureForRenderPass
(int
renderPass
);
Parameters
Parameter
Description
renderPass
The render pass index to get the shared depth buffer render texture for.
Returns
RenderTexture
The shared depth buffer... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c64cfc74bf62 | unity_docs | rendering | What is `Graphics.DrawMeshInstancedProcedural` in Unity? Explain its purpose and usage. | Graphics.DrawMeshInstancedProcedural
Declaration
public static void
DrawMeshInstancedProcedural
(
Mesh
mesh
,
int
submeshIndex
,
Material
material
,
Bounds
bounds
,
int
count
,
MaterialPropertyBlock
properties
,
Rendering.ShadowCastingMode
castShadows
,
bool
receiveShadows
,
int
layer
,
Camera
c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_de73a64de174 | unity_docs | rendering | What is `AssetDatabase.RemoveObjectFromAsset` in Unity? Explain its purpose and usage. | AssetDatabase.RemoveObjectFromAsset
Declaration
public static void
RemoveObjectFromAsset
(
Object
objectToRemove
);
Parameters
Parameter
Description
objectToRemove
Object to remove.
Description
Removes object from its asset (Additional resources:
AssetDatabase.AddObjectToAsset
).
```csharp
using System.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e4fa466b7b9c | unity_docs | editor | What is `Rendering.RenderingThreadingMode` in Unity? Explain its purpose and usage. | RenderingThreadingMode
enumeration
Description
Options for the application's actual rendering threading mode.
The combination of Player Settings
PlayerSettings.MTRendering
,
PlayerSettings.graphicsJobs
and
PlayerSettings.graphicsJobMode
, as well as the target platform capabilities decides the rendering thread... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ac71e14b39d0 | github | scripting | Write a Unity C# MonoBehaviour script called Singleton Accessor | ```csharp
using System.Linq;
using UnityEngine;
namespace Waker.Singletons
{
public class SingletonAccessor<T> where T : MonoBehaviour
{
internal static T _instance;
public static T Instance
{
get
{
if (_instance == null)
{
... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_31a4c7d7f769 | unity_docs | rendering | What is `TerrainLayerUtility` in Unity? Explain its purpose and usage. | TerrainLayerUtility
class in
UnityEditor
Description
A set of helper functions for using terrain layers.
Static Methods
Method
Description
CheckNormalMapTextureType
Checks whether the texture is correctly imported as a normal map texture.
ShowTerrainLayerGUI
This helper function shows the Terrain Layer Inspec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_fc85d32f1e7f_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | の内容から、アイテムにアタッチすべきItemAudioSetListを更新するクラス。注意として、このクラスはリストの内容を完全に書き換え、手作業で指定したAudioClip情報は保全しない。
Signature:
```csharp
public static class ItemAudioSetListUpdater
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_696bc2cd7e42 | unity_docs | input | What is `UIElements.KeyUpEvent` in Unity? Explain its purpose and usage. | KeyUpEvent
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.KeyboardEventBase_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
This event is sent when a pressed key is released.
This event trickles down and bubbles up.
Inherited Members
Properties Property Description
bubbles
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b82391e9cf80 | unity_docs | scripting | Show me a Unity C# example demonstrating `Events.UnityEventBase.GetPersistentListenerState`. | UnityEventBase.GetPersistentListenerState
Declaration
public
Events.UnityEventCallState
GetPersistentListenerState
(int
index
);
Parameters
Parameter
Description
index
Index of the listener to query.
Returns
UnityEventCallState
Execution state of the persistent listener.
Description
Returns the exe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a02f6487e3fe | unity_docs | rendering | In Unity's 'Platform and graphics API macros', what is 'Platform build macros' and how does it work? | The following macros are available only when you make the corresponding platform the target for your build.
Macro Platform UNITY_PLATFORM_ANDROID
Android devices UNITY_PLATFORM_EMBEDDED_LINUX Embedded Linux devices UNITY_PLATFORM_GAMECORE_XBOXONE Xbox One Game Core UNITY_PLATFORM_IOS iOS devices UNITY_PLATFORM_LINUX Li... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_54ab07ab2d2e | unity_docs | math | What is `UIElements.Vector4Field.ctor` in Unity? Explain its purpose and usage. | Vector4Field Constructor
Declaration
public
Vector4Field
();
Description
Initializes and returns an instance of Vector4Field.
Declaration
public
Vector4Field
(string
label
);
Parameters
Parameter
Description
label
The text to use as a label.
Description
Initializes and returns an instance of Vect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d6ecd4bf8834 | github | scripting | Write a Unity C# XR/VR script for Hand Manager | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.InputSystem;
using UnityEngine.XR.OpenXR.Input;
using UnityEngine.InputSystem.XR;
using Bhaptics.SDK2;
using UnityEngine.XR.Hands.Samples.VisualizerSample;
public class HandManager : MonoB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b751852929ec | unity_docs | rendering | What is `ImageConversion.EncodeNativeArrayToPNG` in Unity? Explain its purpose and usage. | ImageConversion.EncodeNativeArrayToPNG
Declaration
public static NativeArray<byte>
EncodeNativeArrayToPNG
(NativeArray<T>
input
,
Experimental.Rendering.GraphicsFormat
format
,
uint
width
,
uint
height
,
uint
rowBytes
);
Parameters
Parameter
Description
input
The native array to convert.
format
The p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c07a7dc8a965 | github | scripting | Write a Unity C# script called Controller Data Asset | ```csharp
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* Licensed under the Oculus SDK License Agreement (the "License");
* you may not use the Oculus SDK except in compliance with the License,
* which is provided at the time of installation or download, or which
* otherwise a... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_a2c25d0e404b | unity_docs | editor | What is `EditorGUI.BoundsField` in Unity? Explain its purpose and usage. | EditorGUI.BoundsField
Declaration
public static
Bounds
BoundsField
(
Rect
position
,
Bounds
value
);
Declaration
public static
Bounds
BoundsField
(
Rect
position
,
GUIContent
label
,
Bounds
value
);
Parameters
Parameter
Description
position
Rectangle on the screen to use for the field.
l... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5653581d6b2a | unity_docs | scripting | What is `UIElements.CallbackEventHandler.RegisterCallbackOnce` in Unity? Explain its purpose and usage. | CallbackEventHandler.RegisterCallbackOnce
Declaration
public void
RegisterCallbackOnce
(EventCallback<TEventType>
callback
,
UIElements.TrickleDown
useTrickleDown
);
Parameters
Parameter
Description
callback
The event handler to add.
useTrickleDown
By default, this callback is called during the BubbleUp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a68ab46896bf | unity_docs | scripting | Show me a Unity C# example demonstrating `Vector2.SignedAngle`. | tween
from
and
to
.
The angle returned is the signed counterclockwise angle between the two vectors.
Note: The angle returned will always be between -180 and 180 degrees, because the method returns the smallest angle between the vectors. That is, it will never return a reflex angle. Angles are calculated from worl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_54db77bf539c | unity_docs | math | Show me a Unity C# example demonstrating `Animator.leftFeetBottomHeight`. | Animator.leftFeetBottomHeight
public float
leftFeetBottomHeight
;
Description
Get left foot bottom height.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
Animator animator; void Start()
{
animator = GetComponent<Animator>();
} void LateUpdate()
{
if (animator)
{
Vector3 leftFootT = ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2356a69448fe | unity_docs | physics | In Unity's 'Introduction to collider types', what is 'Static colliders' and how does it work? | A Static collider is a collider that has no associated Rigidbody or ArticulationBody (that is, there is no Rigidbody or ArticulationBody on the associated GameObject), and therefore doesn’t respond to simulated physics forces. Other colliders can collide with Static colliders, but Static colliders don’t move in respons... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_749ef4dd4436 | unity_docs | scripting | What is `MonoScript.FromMonoBehaviour` in Unity? Explain its purpose and usage. | MonoScript.FromMonoBehaviour
Declaration
public static
MonoScript
FromMonoBehaviour
(
MonoBehaviour
behaviour
);
Parameters
Parameter
Description
behaviour
The MonoBehaviour whose MonoScript should be returned.
Description
Returns the MonoScript object containing specified MonoBehaviour. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_da708a396f2f | unity_docs | rendering | Explain 'Shader code blocks in ShaderLab reference' in Unity. | This page contains information about using shader code blocks. For information about writing HLSL itself, refer to
Writing HLSL shader programs
.
## HLSL
HLSLPROGRAM and HLSLINCLUDE
are compatible with all
render pipelines
.
Signature Function HLSLPROGRAM
[source code for shader programs]
ENDHLSL
Creates a shader pro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2115bd906626 | unity_docs | editor | In Unity's 'Creating assembly assets', what is 'Create an Assembly Definition' and how does it work? | To create an Assembly Definition:
In the Project window, locate the folder containing the scripts you want to include in the assembly.
Create an Assembly Definition in the folder (menu:
Assets
>
Create
>
Scripting
>
Assembly Definition
).
Assign a name to the asset. By default, the assembly file uses the name you assig... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1692f676da3b | unity_docs | scripting | What is `PlayModeWindow.GetRenderingResolution` in Unity? Explain its purpose and usage. | PlayModeWindow.GetRenderingResolution
Declaration
public static void
GetRenderingResolution
(out uint
width
,
out uint
height
);
Parameters
Parameter
Description
width
The width of the rendering resolution.
height
The height of the rendering resolution.
Description
Retrieves the current rendering resolu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_79aa0274ff1c | unity_docs | input | In Unity's 'Support touch input for QNX', what is 'Verify your setup' and how does it work? | If you have installed the events (
QNX 7.0
/
QNX 7.1
) utility on the QNX image, you can use it to verify if the touch service is set up correctly. The reported coordinates (
pos
) should be in the range
[(0,0), (DisplayWidth, DisplayHeight)]
.
If the coordinates are outside the range, check if the scaling mode in
scal... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_36fce89d6775 | unity_docs | scripting | What is `MPE.ChannelService.Broadcast` in Unity? Explain its purpose and usage. | ChannelService.Broadcast
Declaration
public static void
Broadcast
(int
channelId
,
byte[]
data
);
Declaration
public static void
Broadcast
(int
channelId
,
string
data
);
Parameters
Parameter
Description
channelId
The ID of the channel to send the message to.
data
The message to send. It can be bina... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7a45146f8ac6 | github | scripting | Write a Unity C# script called Stateful Timer Event | ```csharp
// Copyright (c) Mixed Reality Toolkit Contributors
// Licensed under the BSD 3-Clause
using UnityEngine.Events;
namespace MixedReality.Toolkit
{
/// <summary>
/// A Unity event used by <see cref="TimedFlag"/> instances.
/// </summary>
/// <remarks>
/// The timer event fired when a <see ... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
gh_81decbec128d | github | scripting | Write a Unity C# script called String Item Picker Popup | ```csharp
// Copyright 2024 The Open Brush Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_732d46bc171c | unity_docs | rendering | What is `Projector.material` in Unity? Explain its purpose and usage. | Projector.material
public
Material
material
;
Description
The material that will be projected onto every object.
Note that unlike
Renderer.material
, this returns a shared material reference and not a unique duplicate.
Projector does nothing if it has no material set up.
The
Standard Assets
package
conta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0a7eecb4e881 | unity_docs | rendering | What is `Terrain.basemapDistance` in Unity? Explain its purpose and usage. | Terrain.basemapDistance
public float
basemapDistance
;
Description
Heightmap patches beyond basemap distance will use a precomputed low res basemap.
This improves performance for far away patches. Close up Unity renders the heightmap using splat maps by blending between
any amount of provided terrain textures.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f878bd08b7a4 | unity_docs | rendering | What is `Rendering.ShaderPropertyFlags.Normal` in Unity? Explain its purpose and usage. | ShaderPropertyFlags.Normal
Description
Signifies that values of this property contain Normal (normalized vector) data.
When this flag is set, the default Material Inspector displays a warning if you assign incompatible data in the Material. For example, if a Texture is not a Normal Map Texture, the default Material... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef1f9d295966 | unity_docs | scripting | What is `MultilineAttribute` in Unity? Explain its purpose and usage. | MultilineAttribute
class in
UnityEngine
/
Inherits from:
PropertyAttribute
/
Implemented in:
UnityEngine.CoreModule
Description
Attribute to make a string be edited with a multi-line textfield.
Constructors
Constructor
Description
MultilineAttribute
Attribute used to make a string value be shown in a multi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_865ee7c3cc4e | github | scripting | Write a Unity C# script called Observable Initialize Potential Drag Trigger | ```csharp
// for uGUI(from 4.6)
#if !(UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_4 || UNITY_4_5)
using System; // require keep for Windows Universal App
using UnityEngine;
using UnityEngine.EventSystems;
namespace UniRx.Triggers
{
[DisallowMultipleComponent]
public class ObservableInitialize... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_62070922ee1b | unity_docs | scripting | What is `WebGLDebugSymbolMode` in Unity? Explain its purpose and usage. | WebGLDebugSymbolMode
enumeration
Description
An enum containing different modes for debug symbols.
This enum is used within the WebGL platform to define how debug symbols are added to the build.
Properties
Property
Description
Off
No debug symbols are added to the build.
External
Debug symbols are stored in a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_72de6b4a8ce5 | unity_docs | editor | What is `EditorWindow.ShowTab` in Unity? Explain its purpose and usage. | EditorWindow.ShowTab
Declaration
public void
ShowTab
();
Description
Shows a docked Editor window.
If a window is docked as a tab and the docking area has multiple tabs, calling this function will select the window's tab and make its contents visible. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5d1da3da0ad7 | unity_docs | rendering | Explain 'Sky' in Unity. | A sky is a type of background that a Camera draws before it renders a frame. This type of background greatly benefits 3D games and applications because it provides a sense of depth and makes the environment seem much larger than it actually is. The sky itself can contain anything, such as clouds, mountains, buildings, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3843d518864e | unity_docs | math | What is `Mathf.Sign` in Unity? Explain its purpose and usage. | Mathf.Sign
Declaration
public static float
Sign
(float
f
);
Description
Returns the sign of
f
.
Returns a value of 1 when
f
is 0 or greater. Returns a value of -1 when
f
is negative.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Debug.Log(Mathf.Sign(-10));
Debug.L... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_541513b20b98 | unity_docs | math | Show me a Unity C# example demonstrating `Vector2.operator_Vector3`. | Vector2.Vector2
Description
Converts a
Vector3
to a
Vector2
.
A
Vector3
can be implicitly converted into a
Vector2
. (The z is discarded).
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void Start()
{
Vector2 v2 = new Vector2(1, 2);
Debug.Log("Vector2 is: " + v2); // convert v2 ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8e51081a8a6 | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.AddAssetTagToDefaultInstall` in Unity? | Description Adds the asset tag to the list of tags to download during initial installation. Note : The function does nothing if there are no files that use the given asset tag across the project. ```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.iOS.Xcode;
using UnityEditor.Callbacks;
using System.IO;pu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_df9a60f6d411 | unity_docs | xr | In Unity's 'Graphics tiers in the Built-In Render Pipeline', what is 'Graphics tiers overview' and how does it work? | When Unity first loads your application, it examines the hardware and graphics API and determines which graphics tier the current environment corresponds to.
The graphics tiers are:
Value Hardware Corresponding GraphicsTier enum value Corresponding shader keyword
1
iOS: iPhones before iPhone 5S (not including 5S, but i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d69d8ba6a32a | unity_docs | scripting | Show me a Unity C# example demonstrating `SceneManagement.SceneManager.LoadSceneAsync`. | d formats:
"Scene1"
"Scenes/Scene1"
"Scenes/Others/Scene1"
"Assets/scenes/others/scene1.unity"
Note:
Scene name input is not case-sensitive.
If you call this method with an invalid
sceneName
or
sceneBuildIndex
, Unity throws an exception.
Note:
The name of the Scene to load can be case insensitive.
If a single... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d3aea486cbe6 | unity_docs | scripting | What are the parameters of `AI.NavMeshEditorHelpers.DrawBuildDebug` in Unity? | Description Displays in the Editor the precise intermediate data used during the build process of the specified NavMesh. Additional resources: NavMeshBuildSettings.debug . ```csharp
using System.Collections.Generic;
using UnityEditor.AI;
using UnityEngine;
using UnityEngine.AI;public class NavMeshBuildDebugDraw : MonoB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0cd6b40e19a9 | unity_docs | editor | What is `AI.NavMeshBuildDebugFlags.None` in Unity? Explain its purpose and usage. | NavMeshBuildDebugFlags.None
Description
No debug data from the NavMesh build process is taken into consideration.
Additional resources:
NavMeshBuildSettings.debug
,
NavMeshEditorHelpers.DrawBuildDebug
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7d2018e62f71 | unity_docs | physics | Explain 'CPU Usage Profiler module reference' in Unity. | The CPU Usage Profiler module is divided into charts in the top half of the
Profiler window
, and has timeline and hierarchy views in the details pane in the bottom half of the window.
## Chart categories
The CPU Usage Profiler module’s chart tracks the time spent on the application’s main thread.
Chart Description R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b455779b35b9 | unity_docs | editor | Explain 'Include additional files in a build' in Unity. | StreamingAssets
is a
reserved folder
that you can use to make files available to a Player build directly and bypass the standard project build process. The standard build process serializes scenes and assets into binary files inside the generated Player.
StreamingAssets
allows you to add files that are already in the c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c9fa049f1129 | unity_docs | rendering | What is `IconAttribute.ctor` in Unity? Explain its purpose and usage. | IconAttribute Constructor
Declaration
public
IconAttribute
(string
path
);
Parameters
Parameter
Description
path
A project-relative path to a texture.
Description
Create an
IconAttribute
with a path to an icon. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2a4c0b1634e4 | unity_docs | rendering | What is `RenderTargetSetup` in Unity? Explain its purpose and usage. | RenderTargetSetup
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Fully describes setup of RenderTarget.
Properties
Property
Description
color
Color Buffers to set.
colorLoad
Load Actions for Color Buffers. It will override any actions set on RenderBuffers themselves.
colorStore
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_534bdb55291f | unity_docs | rendering | What is `Time.maximumParticleDeltaTime` in Unity? Explain its purpose and usage. | Time.maximumParticleDeltaTime
public static float
maximumParticleDeltaTime
;
Description
The maximum time a frame can spend on particle updates. If the frame takes longer than this, then updates are split into multiple smaller updates.
Use this function to balance the accuracy of particle simulation against you... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aca5522cdae0 | unity_docs | math | What are the parameters of `AI.NavMesh.AddNavMeshData` in Unity? | Returns NavMeshDataInstance Representing the added navmesh. Description Adds the specified NavMeshData to the game. This makes the NavMesh data available for agents and NavMesh queries. Returns an instance for later removing the NavMesh data from the runtime. The instance returned will be valid unless the NavMesh data ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_92d8f3e6ffdf | unity_docs | rendering | What is `CanvasRenderer.cullTransparentMesh` in Unity? Explain its purpose and usage. | CanvasRenderer.cullTransparentMesh
public bool
cullTransparentMesh
;
Description
Indicates whether geometry emitted by this renderer can be ignored when the vertex color alpha is close to zero for every vertex of the mesh. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_872e534d89ec | unity_docs | scripting | What are the parameters of `GridLayout.CellToLocalInterpolated` in Unity? | Returns Vector3 Local position of the cell position. Description Converts an interpolated cell position in floats to local position space. Returns the local position in floats. ```csharp
// Snap the GameObject to parent GridLayout center of cell
using UnityEngine;public class ExampleClass : MonoBehaviour
{
void Sta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc6047a6efcc | unity_docs | scripting | What is `SystemInfo.supportsGpuRecorder` in Unity? Explain its purpose and usage. | SystemInfo.supportsGpuRecorder
public static bool
supportsGpuRecorder
;
Description
Specifies whether the current platform supports the GPU Recorder or not. (Read Only).
If the current platform supports the GPU Recorder, you could use the Recorder API to get GPU timing information. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5f3d7fcb8735 | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.OnParticleCollision`. | ne message per Collider, per frame, even if multiple particles strike the same Collider in that frame. As in the previous case, use
ParticlePhysicsExtensions.GetCollisionEvents
to retrieve all collision incidents for the GameObject.
Messages are only sent if you enable
Send Collision Messages
in the Inspector of th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cf4e06faad01 | unity_docs | animation | Explain 'Use curves to control the timing of animation clips' in Unity. | You can attach
animation curves
to imported
animation clips
in the
Animation tab
.
You can use these curves to add additional animated data to an imported clip. You can use that data to animate the timings of other items based on the state of an animator. For example, in a game set in icy conditions, an extra animation... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_228f022f7d8b | unity_docs | animation | What is `AnimatedValues.BaseAnimValue_1.StopAnim` in Unity? Explain its purpose and usage. | BaseAnimValue<T0>.StopAnim
Declaration
protected void
StopAnim
(T
newValue
);
Parameters
Parameter
Description
newValue
Value to assign.
Description
Stop the animation and assign the given value. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_75105dc238ad | unity_docs | scripting | What is `PluginImporter.GetExcludeFromAnyPlatform` in Unity? Explain its purpose and usage. | PluginImporter.GetExcludeFromAnyPlatform
Declaration
public bool
GetExcludeFromAnyPlatform
(string
platformName
);
Declaration
public bool
GetExcludeFromAnyPlatform
(
BuildTarget
platform
);
Parameters
Parameter
Description
platform
Target platform.
Description
Is platform excluded when
Any Platform... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_199af884e1d2 | github | scripting | Write a Unity C# script called Move With Keyboard Input | ```csharp
using RollABall.Components;
using starikcetin.Joy.Core;
using UnityEngine;
namespace RollABall.Systems
{
public class MoveWithKeyboardInput : ISystem
{
public Filter[] Filters { get; } =
{
Filter
};
private static readonly Filter Filter = new Filter()
... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_f98f0e64a7a6 | unity_docs | math | What is `UIElements.TextValueField_1.ApplyInputDeviceDelta` in Unity? Explain its purpose and usage. | TextValueField<T0>.ApplyInputDeviceDelta
Declaration
public void
ApplyInputDeviceDelta
(
Vector3
delta
,
UIElements.DeltaSpeed
speed
,
TValueType
startValue
);
Parameters
Parameter
Description
delta
A vector used to compute the value change.
speed
A multiplier for the value change.
startValue
The st... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6f7034c1f988 | unity_docs | xr | In Unity's 'Player', what is 'General settings' and how does it work? | The
Player settings
differ between the
platform modules
that you’ve installed. Each platform has its own Player settings which you’ll need to set for each version of your application you want to build. To navigate between them, click on the tabs with the platform operating system icon on.
However, there are some genera... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ba1cb52b53d1 | unity_docs | scripting | In Unity's 'Moderation', what is 'Compatible with Unity' and how does it work? | These package versions are available in Unity version 6000.0:
Documentation location:
State
Versions available:
com.unity.services.moderation@1.1
pre-release
1.1.0
com.unity.services.moderation@1.0
pre-release
1.0.0-pre.1, 1.0.0-pre.2, 1.0.0-pre.3, 1.0.0-preview.1, 1.0.0, 1.0.1, 1.0.2 | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_27d13c5f7885 | unity_docs | scripting | What is `CharacterController.collisionFlags` in Unity? Explain its purpose and usage. | CharacterController.collisionFlags
public
CollisionFlags
collisionFlags
;
Description
What part of the capsule collided with the environment during the last CharacterController.Move call.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
CharacterController controller; void Start()
{
cont... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fe1074d40c55 | unity_docs | rendering | Explain 'Texture properties' in Unity. | For each texture that is setup as a
shader
/material property, Unity also sets up some extra information in additional vector properties.
## Texture tiling & offset
Materials
often have Tiling and Offset fields for their texture properties. This information is passed into shaders in a float4
{TextureName}
_ST
propert... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a5c714d8b308 | unity_docs | input | What is `UIElements.KeyboardEventBase_1.GetPooled` in Unity? Explain its purpose and usage. | KeyboardEventBase<T0>.GetPooled
Declaration
public static T
GetPooled
(char
c
,
KeyCode
keyCode
,
EventModifiers
modifiers
);
Parameters
Parameter
Description
c
The character for this event.
keyCode
The key code for this event.
modifiers
Event modifier keys that are active for this event.
Returns
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c22054dedd15 | unity_docs | rendering | What is `RendererExtensions.UpdateGIMaterials` in Unity? Explain its purpose and usage. | RendererExtensions.UpdateGIMaterials
Declaration
public static void
UpdateGIMaterials
(
Renderer
renderer
);
Description
Schedules an update of the albedo and emissive Textures of a system that contains the Renderer. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a31cc672c554 | unity_docs | performance | In Unity's 'Generate your Visual Studio C++ solution', what is 'Create your Visual Studio C++ solution' and how does it work? | Unity generates a Visual Studio solution containing the following projects:
Project Description projectName
Contains your main project code. Visual Studio builds this project into an application package, which you can deploy to a device or uploaded to the Microsoft Store.
Note:
Unity doesn’t overwrite this project when... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_de92c15281bf | github | scripting | Write a Unity C# UI script for Remake Of Something Test | ```csharp
using System;
using shadcnui.GUIComponents.Controls;
using shadcnui.GUIComponents.Core.Base;
using shadcnui.GUIComponents.Core.Styling;
using shadcnui.GUIComponents.Core.Theming;
using shadcnui.GUIComponents.Core.Utils;
using shadcnui.GUIComponents.Layout;
using UnityEngine;
namespace shadcnui_Demo.Demos
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_075bebb54ce6 | unity_docs | rendering | What are the parameters of `Profiling.Profiler.GetRuntimeMemorySizeLong` in Unity? | Returns long The amount of native-memory used by a Unity object. This returns 0 if the Profiler is not available. Description Gathers the native-memory used by a Unity object. ```csharp
using UnityEngine;
using System.Collections;
using UnityEngine.Profiling;public class ExampleClass : MonoBehaviour
{
void Update()... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c5644755911 | unity_docs | scripting | Show me a Unity C# example demonstrating `SystemLanguage.Dutch`. | SystemLanguage.Dutch
Description
Dutch.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Dutch language
if (Application.systemLanguage == SystemLanguage.Dutch)
{
//Outputs into console that the system is in Dutch
Deb... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_707582ae348f | unity_docs | scripting | Give me an overview of the `Skybox` class in Unity. | Skybox
class in
UnityEngine
/
Inherits from:
Behaviour
/
Implemented in:
UnityEngine.CoreModule
Description
A script interface for the
skybox component
.
The skybox class has only the
material
property.
Additional resources:
skybox component
.
Properties
Property
Description
material
The material used... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_859ab8a65d48 | unity_docs | physics | Give me an overview of the `HumanPoseHandler` class in Unity. | HumanPoseHandler
class in
UnityEngine
/
Implemented in:
UnityEngine.AnimationModule
Description
Use this class to create, read, and write the
HumanPose
for a humanoid avatar skeleton hierarchy or an avatar pose.
Constructors
Constructor
Description
HumanPoseHandler
Creates a human pose handler from an avat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1db4f2ea534a | unity_docs | editor | What is `Callbacks.RunAfterAssemblyAttribute` in Unity? Explain its purpose and usage. | RunAfterAssemblyAttribute
class in
UnityEditor.Callbacks
Description
Add this attribute to a callback method to mark that this callback must be run after any callbacks that are part of the specified assembly.
To define dependencies for a callback, use the following attributes:
RunAfterClassAttribute
,
RunBefore... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1f916138174 | unity_docs | scripting | What is `Camera.projectionMatrix` in Unity? Explain its purpose and usage. | Camera.projectionMatrix
public
Matrix4x4
projectionMatrix
;
Description
Set a custom projection matrix.
If you change this matrix, the camera no longer updates its rendering based on its
fieldOfView
.
Moreover, this leaves the camera's
nearClipPlane
and
farClipPlane
unchanged, so you need to update thos... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4f900edd1290 | unity_docs | ui | Show me a Unity code example for 'USS transition'. | must start a transition animation after the first frame.
The following transition example changes the color and rotation of the label when you hover over it. The transition has a duration of 2 seconds.
To implement this example, do the following:
Set the transition properties for the visual element.
Set the transition ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4d46fcfcab0 | unity_docs | scripting | What is `Rendering.BatchDrawCommandProcedural.flags` in Unity? Explain its purpose and usage. | BatchDrawCommandProcedural.flags
public
Rendering.BatchDrawCommandFlags
flags
;
Description
Specifies rendering options for the draw command.
This includes rendering options like whether Unity should individually depth sort the instances in the draw command, or whether to render instances into per-object moti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_359e133ef709 | unity_docs | performance | What is `PlayerSettings.dedicatedServerOptimizations` in Unity? Explain its purpose and usage. | PlayerSettings.dedicatedServerOptimizations
public static bool
dedicatedServerOptimizations
;
Description
Performs additional optimizations on Dedicated Server builds.
Enable this option to strip assets that are not needed in Dedicated Server builds. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ee3f10191f1a | github | scripting | Write a Unity C# script called Main Model | ```csharp
using RMC.Core.Architectures.Umvcs.Model;
using RMC.Core.Architectures.Umvcs.Model.Data.Types;
using RMC.Core.Architectures.Umvcs.Samples.MyBouncyBallExample.Umvcs.View;
using RMC.Core.Attributes;
using UnityEngine;
namespace RMC.Core.Architectures.Umvcs.Samples.MyBouncyBallExample.Umvcs.Model
{
/// <summa... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_f8e052bbfd17 | unity_docs | ui | What is `Overlays.ISupportsOverlays` in Unity? Explain its purpose and usage. | ISupportsOverlays
interface in
UnityEditor.Overlays
Description
Implement this interface to enable overlays in the
EditorWindow
.
When
ISupportsOverlays
is implemented, an Overlay Canvas is automatically added to the
VisualElement
tree for your
EditorWindow
.
OverlayAttribute
will now be able to specify t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7b81d54d47ed | unity_docs | physics | What is `UIElements.BaseListView.itemsAdded` in Unity? Explain its purpose and usage. | BaseListView.itemsAdded
Description
This event is called for every item added to the
itemsSource
. Includes the item index.
Note: This event is only called when items are added through the
viewController
, such as when calling
AddItems
.
Adding items directly to the
itemsSource
will not trigger this event... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9664a8ea88d9 | unity_docs | physics | What is `CompositeCollider2D` in Unity? Explain its purpose and usage. | CompositeCollider2D
class in
UnityEngine
/
Inherits from:
Collider2D
/
Implemented in:
UnityEngine.Physics2DModule
Description
A Collider that can merge other Colliders together.
A
CompositeCollider2D
merges other Colliders together when their
Collider2D.compositeOperation
is anything other than
Collider... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29c49a2f2c7d | unity_docs | scripting | What is `Search.SearchResult.Equals` in Unity? Explain its purpose and usage. | SearchResult.Equals
Declaration
public bool
Equals
(
Search.SearchResult
other
);
Declaration
public bool
Equals
(object
other
);
Parameters
Parameter
Description
other
Another SearchResult to compare.
Returns
bool
Returns true if both SearchResults have the same index.
Description
Compare Sear... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3a6ea6f9eb03 | unity_docs | scripting | What are the parameters of `ScriptableObject.CreateInstance` in Unity? | Returns ScriptableObject The created ScriptableObject. Description Creates an instance of a scriptable object. To easily create a ScriptableObject instance that is bound to a .asset file via the Editor user interface, consider using CreateAssetMenuAttribute . ```csharp
using UnityEngine;public class MyData : Scriptable... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c74acd89766 | unity_docs | scripting | What is `Rendering.RenderPipelineGlobalSettings` in Unity? Explain its purpose and usage. | RenderPipelineGlobalSettings
class in
UnityEngine.Rendering
/
Inherits from:
ScriptableObject
/
Implemented in:
UnityEngine.CoreModule
Implements interfaces:
ISerializationCallbackReceiver
Description
A
ScriptableObject
to associate with a
RenderPipeline
and store project-wide settings for that Pipeline.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e84634568492 | unity_docs | scripting | Explain 'Binding system implementation details' in Unity. | The following is an explanation of how the UI Toolkit binding system works at the implementation level.
## Binding creation
When you call the
Bind()
method, it synchronizes and tracks the first value asynchronously. This means that the value property of the fields can’t update immediately. This allows you to set up b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c06bc67a6bbd | unity_docs | scripting | What is `Animations.PositionConstraint` in Unity? Explain its purpose and usage. | PositionConstraint
class in
UnityEngine.Animations
/
Inherits from:
Behaviour
/
Implemented in:
UnityEngine.AnimationModule
Implements interfaces:
IConstraint
Description
Constrains the position of an object relative to the position of one or more source objects.
Properties
Property
Description
constraint... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_05c27f2f8cc8 | github | scripting | Write a Unity C# script called Equipable | ```csharp
using UnityEngine;
abstract class Equipable : Interactable
{
[Header("EQUIPABLE"), Space]
[SerializeField]
protected Collider[] _colliders;
public virtual void OnPickup()
{
canInteract = false;
_DisableColliders();
}
public virtual void OnDrop()
{
ca... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_28188418c85f | unity_docs | physics | What is `ParticleSystem.CollisionModule` in Unity? Explain its purpose and usage. | CollisionModule
struct in
UnityEngine
/
Implemented in:
UnityEngine.ParticleSystemModule
Description
Script interface for the CollisionModule of a Particle System.
Additional resources:
ParticleSystem
,
ParticleSystem.collision
.
Properties
Property
Description
bounce
How much force is applied to each pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bcbdaa96fbec | unity_docs | xr | What is `Experimental.GlobalIllumination.Lightmapping` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Lightmapping
class in
UnityEngine.Experimental.GlobalIllumination
/
Implemented in:
UnityEngine.CoreModule
Description
Interface to the light baking backends.
Static Methods
Method
Description
GetDelegate
Get the currentl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fa9b8f1f84e1 | unity_docs | rendering | Explain 'Output a depth texture from a camera' in Unity. | Use DepthTextureMode to output a depth texture or a depth-normals texture from a
camera
.
## DepthTextureMode.Depth texture
This builds a screen-sized depth texture.
Depth texture is rendered using the same shader passes as used for shadow caster rendering (
ShadowCaster
pass type). So by extension, if a shader does ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae40757f4ff1 | unity_docs | animation | What is `AnimatorUtility` in Unity? Explain its purpose and usage. | AnimatorUtility
class in
UnityEngine
/
Implemented in:
UnityEngine.AnimationModule
Description
Various utilities for animator manipulation.
Static Methods
Method
Description
DeoptimizeTransformHierarchy
This function will recreate all transform hierarchy under GameObject.
OptimizeTransformHierarchy
This fun... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4477e9a15dee | unity_docs | networking | What is `Android.AndroidConfiguration.mobileCountryCode` in Unity? Explain its purpose and usage. | AndroidConfiguration.mobileCountryCode
public int
mobileCountryCode
;
Description
Mirrors the Android property
mcc
.
For information about this property, refer to the Android developer documentation on
mcc
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d11500c65ee0 | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUtility.Is16BitPackedFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.Is16BitPackedFormat
Declaration
public static bool
Is16BitPackedFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Declaration
public static bool
Is16BitPackedFormat
(
TextureFormat
format
);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7fc1d02386e7 | unity_docs | math | What is `Experimental.GraphView.Port.ContainsPoint` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Port.ContainsPoint
Declaration
public bool
ContainsPoint
(
Vector2
localPoint
);
Parameters
Parameter
Description
localPoint
The point.
Returns
bool
True if the point is over the port.
Description
Check if point ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a54e08e70a8e | unity_docs | scripting | Show me a Unity C# example demonstrating `MonoBehaviour.OnTriggerExit`. | igger events
.
Trigger events are sent to disabled MonoBehaviours, to allow enabling Behaviours in response to collisions. Deactivating or destroying a collider while it is inside a trigger volume does not cause an
OnTriggerExit
message to be sent.
Both the trigger and the collider that touches the trigger receive
O... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fd84fce6ed71 | unity_docs | performance | Explain 'Develop for Universal Windows Platform' in Unity. | Before you develop for Universal Windows Platform (UWP), you can find out more about the following topics:
Topic Description Use deep linking on UWP
Use deep linking on UWP devices.
Connect the profiler to UWP
Connect Unity’s profiler to your UWP application.
UWP scripting symbols
Learn what scripting symbols are avail... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dfb7bd5cd2b0 | unity_docs | xr | In Unity's 'Use private repositories with HTTPS Git URLs', what is 'Git Credential Manager' and how does it work? | Although Git supports several
credential helpers to store credentials
, the
Git Credential Manager
(GCM) is the recommended credential helper. GCM is flexible, easy to install, and is actively supported. It’s built on .NET, which means it can run on Windows, macOS, and Linux distributions that support .NET.
By default,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8824d41af7eb | unity_docs | scripting | Show me a Unity code example for 'ProgressBar'. | ther task that might take a while to complete.
You can set low and high values for the ProgressBar. The ProgressBar’s current value is constrained within these bounds.
0
is the lowest value that the ProgressBar can have.
## Create a ProgressBar
You can create a ProgressBar with UI Builder, UXML, and C#.
To create a P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3fbf3a0f0f1c | unity_docs | scripting | Give me an overview of the `PrimitiveType` class in Unity. | PrimitiveType
enumeration
Description
The various primitives that can be created using the
GameObject.CreatePrimitive
function.
Additional resources:
GameObject.CreatePrimitive
.
Properties
Property
Description
Sphere
A sphere primitive.
Capsule
A capsule primitive.
Cylinder
A cylinder primitive.
Cube
A ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d61d4974d123 | unity_docs | scripting | What is `Unity.IO.LowLevel.Unsafe.AsyncReadManagerSummaryMetrics` in Unity? Explain its purpose and usage. | AsyncReadManagerSummaryMetrics
class in
Unity.IO.LowLevel.Unsafe
/
Implemented in:
UnityEngine.CoreModule
Description
A summary of the metrics collected for
AsyncReadManager
read operations.
Get a summary of the current metrics by calling
AsyncReadManagerMetrics.GetCurrentSummaryMetrics
. This function summa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_07f9eccf906f | unity_docs | rendering | What is `CanvasRenderer.SetMaterial` in Unity? Explain its purpose and usage. | CanvasRenderer.SetMaterial
Declaration
public void
SetMaterial
(
Material
material
,
int
index
);
Declaration
public void
SetMaterial
(
Material
material
,
Texture
texture
);
Parameters
Parameter
Description
material
Material for rendering.
texture
Material texture overide.
index
Material inde... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_afcf5de420d2 | unity_docs | physics | What is `EditorUtility.SetCustomDiffTool` in Unity? Explain its purpose and usage. | EditorUtility.SetCustomDiffTool
Declaration
public static void
SetCustomDiffTool
(string
path
,
string
twoWayDiff
,
string
threeWayDiff
,
string
mergeCommand
,
bool
forceEnableCustomTool
);
Parameters
Parameter
Description
path
Diff tool path.
twoWayDiff
Two - way diff command line.
threeWayDiff
Thre... | 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.