id stringlengths 15 22 | source stringclasses 2
values | category stringclasses 12
values | instruction stringlengths 22 180 | response stringlengths 100 46.1k | system stringclasses 5
values |
|---|---|---|---|---|---|
local_man_5bdc4a082a1e | unity_docs | rendering | In Unity's 'Call JavaScript functions from Unity C# scripts', what is 'Strings' and how does it work? | To convert a string to a JavaScript string, use the UTF8ToString helper function.
```
var stringMessage = UTF8ToString("Hello World");
```
To return a string value, call _malloc to allocate some memory and the stringToUTF8 helper function to write a JavaScript string to the memory. If the string is a return value, then... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_b016d2f58643_doc_1 | github | scripting | What does `ApplyImpulse` do in this Unity script? Explain its purpose and signature. | Applies a horizontal impulse.Impulse to be applied.
Signature:
```csharp
public void ApplyImpulse(Vector3 impulse) => _currentVelocity += impulse;
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e3d9c1bd0bdd | unity_docs | xr | In Unity's 'UWP requirements and compatibility', what is 'UWP application support' and how does it work? | Unity supports four CPU architectures when targeting UWP:
x86 x64 ARM ARM64 Unity supports the following operating system versions:
Windows 10+
HoloLens
Unity supports GPUs capable of running:
DX10 DX11 DX12
You need the following additional software to develop with UWP:
Windows 10+ SDK
Visual Studio 2019 (or later) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_53a9b5781625 | unity_docs | rendering | What is `MaterialProperty.colorValue` in Unity? Explain its purpose and usage. | MaterialProperty.colorValue
public
Color
colorValue
;
Description
Color value of the property.
Setting a new value will apply it to all material
targets
, and will automatically record an undo operation.
Additional resources:
type
,
MaterialEditor
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_291ea324f319 | unity_docs | editor | What is `PrefabReplacingSettings.prefabOverridesOptions` in Unity? Explain its purpose and usage. | PrefabReplacingSettings.prefabOverridesOptions
public
PrefabOverridesOptions
prefabOverridesOptions
;
Description
This property controls which type of overrides are attemped to be kept when replacing the Prefab Asset of an Prefab instance. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8448b5642be3 | unity_docs | rendering | What is `Rendering.SinglePassStereoMode.Multiview` in Unity? Explain its purpose and usage. | SinglePassStereoMode.Multiview
Description
Render stereo using OpenGL multiview.
In multiview single-pass stereo rendering, the rendering pipeline traverses the scene graph only once and issues a single, instanced draw call for each render node, thus reducing the bandwidth required to render the scene. Scene culli... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c3e7159b931f | unity_docs | scripting | What is `Playables.PlayableExtensions.GetDuration` in Unity? Explain its purpose and usage. | PlayableExtensions.GetDuration
Declaration
public static double
GetDuration
(U
playable
);
Parameters
Parameter
Description
playable
The
Playable
used by this operation.
Returns
double
The duration in seconds.
Description
Returns the duration of the
Playable
.
Use this templated extension method ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_494c5ad03c57 | unity_docs | scripting | What is `Animator.ResetTrigger` in Unity? Explain its purpose and usage. | Animator.ResetTrigger
Declaration
public void
ResetTrigger
(string
name
);
Declaration
public void
ResetTrigger
(int
id
);
Parameters
Parameter
Description
name
The parameter name.
id
The parameter ID.
Description
Resets the value of the given trigger parameter.
Use this to reset a Trigger
parame... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_38a1071e82e8_doc_2 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The list of prefabs available to spawn.
Signature:
```csharp
public List<GameObject> objectPrefabs
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_4acaa96ddc6c | unity_docs | rendering | What are the parameters of `ImageConversion.EncodeToEXR` in Unity? | Description Encodes this texture into the EXR format. This function returns a byte array which is the EXR file data. You can store the encoded data as a file or send it over the network without further processing. This function does not work on any compressed format.
Although it is best to use this ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cd8451fb69e5 | unity_docs | editor | What is `Rendering.GraphicsTier.Tier3` in Unity? Explain its purpose and usage. | GraphicsTier.Tier3
Description
The highest graphics tier. Corresponds to high-end devices.
Note:
Graphics tiers are only supported in the Built-in Render Pipeline.
For information on which devices this graphics tier corresponds to, and how to work with graphics tiers, see
Graphics tiers
.
Additional resources:
G... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3cd8f2279494 | unity_docs | rendering | Show me a Unity code example for 'Create a drag-and-drop list and tree views between windows'. | ollection Database asset contains a serialized list of PlayerData objects that you can set in the Unity Editor.
Create a project in Unity with any template.
In the Assets folder of your
Project window
, create a folder named Scripts to store your script files.
In the Scripts folder, create a folder named
Data
.
In the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_996928ecf043 | unity_docs | scripting | Show me a Unity C# example demonstrating `SceneAsset`. | SceneAsset
class in
UnityEditor
/
Inherits from:
Object
Description
SceneAsset is used to reference Scene objects in the Editor.
This can be used as the type for ObjectField UI elements, to allow the user to pick a Scene object as the value of the field.
This example shows how to pick a Scene in the editor. The... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f00c16de6d29 | unity_docs | scripting | What is `MPE.ChannelService.GetAddress` in Unity? Explain its purpose and usage. | ChannelService.GetAddress
Declaration
public static string
GetAddress
();
Returns
string
The address where the ChannelService listens to new connections.
Description
Gets the address of the ChannelService. This is always a local address. For example, 127.0.0.1. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c63644e0cc7d | unity_docs | physics | Show me a Unity C# example demonstrating `PlayerSettings.Android.forceInternetPermission`. | PlayerSettings.Android.forceInternetPermission
public static bool
forceInternetPermission
;
Description
Force internet permission flag.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class ForceInternetPermissionSample : MonoBehaviour
{
[MenuItem("Build/ForceInternetPermission ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b390dd140a8 | unity_docs | scripting | What is `Application` in Unity? Explain its purpose and usage. | Application
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Provides access to application runtime data.
This class contains static methods for looking up information about and controlling the runtime data.
Static Properties
Property
Description
absoluteURL
The URL of the document.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_046c920e7cde | unity_docs | scripting | Show me a Unity C# example demonstrating `Assertions.Assert.IsNotNull`. | aration
public static void
IsNotNull
(
Object
value
,
string
message
);
Declaration
public static void
IsNotNull
(T
value
);
Declaration
public static void
IsNotNull
(T
value
,
string
message
);
Parameters
Parameter
Description
value
The
Object
or
type
being checked for.
message
The string u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_13625306bab3 | unity_docs | rendering | In Unity's 'Working with Heightmaps', what is 'Importing and exporting heightmaps' and how does it work? | You can import and export heightmaps into the Unity Editor. This is useful when you want to use real world height data to replicate a landmark such as Mount Everest, or work on a heightmap image in an external image editor. You can also use 3D modelling applications, such as Houdini and World Machine, to generate Terra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b85d4a08a28 | unity_docs | physics | What is `CompositeCollider2D.GeometryType.Polygons` in Unity? Explain its purpose and usage. | CompositeCollider2D.GeometryType.Polygons
Description
Sets the Composite Collider 2D to generate closed outlines for the merged collider geometry consisting of convex polygon shapes.
The polygon geometry is equivalent to using an
PolygonCollider2D
with the polygon outlines from other colliders being merged then d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a02d5eda7fc6 | unity_docs | physics | What is `ParticleSystem.CollisionModule.enableDynamicColliders` in Unity? Explain its purpose and usage. | ParticleSystem.CollisionModule.enableDynamicColliders
public bool
enableDynamicColliders
;
Description
Allow particles to collide with dynamic colliders when using world collision mode.
Additional resources:
ParticleSystem.collision
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_99cc045ab190 | unity_docs | performance | What is `Profiling.Profiler.GetTotalFragmentationInfo` in Unity? Explain its purpose and usage. | Profiler.GetTotalFragmentationInfo
Declaration
public static long
GetTotalFragmentationInfo
(NativeArray<int>
stats
);
Parameters
Parameter
Description
stats
An array to receive the count of free blocks grouped by power of two sizes. Given a small array, Unity counts the larger free blocks together in the fi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2cd0b5f94e31 | unity_docs | rendering | What is `PlayerSettings.vulkanEnableLateAcquireNextImage` in Unity? Explain its purpose and usage. | PlayerSettings.vulkanEnableLateAcquireNextImage
public static bool
vulkanEnableLateAcquireNextImage
;
Description
Delays acquiring the swapchain image until after the frame is rendered.
If enabled, the Vulkan renderer delays acquiring the backbuffer until after it renders the frame. The Vulkan renderer will us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4aa842a1a1ca | unity_docs | rendering | Show me a Unity code example for 'Respond to events with custom controls'. | dleEventTrickleDown , you can also register callbacks on its instances.
To override the HandleEventBubbleUp or HandleEventTrickleDown methods, or both, derive a new subclass of
VisualElement
.
HandleEventBubbleUp and HandleEventTrickleDown
execute on each instance of a
visual element
subclass when that instance receive... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f82cb51563a0_doc_4 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Creates a type-safe locator for items of type T.Generally, you call the API methods directly. For example:locator.AddItem(item);var retrievedItem = locator.GetItem<TItem>(key);However, in cases where you need to work with a specific derived type, you will need to call RecastLocatorAsinline with the method you wan... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_250faccc8891 | unity_docs | ui | What is `UIElements.UIDocument.sortingOrder` in Unity? Explain its purpose and usage. | UIDocument.sortingOrder
public float
sortingOrder
;
Description
The order in which this UIDocument will show up on the hierarchy in relation to other UIDocuments either
attached to the same PanelSettings, or with the same UIDocument parent. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_780aa1159a06 | unity_docs | physics | What is `ModifiableContactPair.GetFaceIndex` in Unity? Explain its purpose and usage. | ModifiableContactPair.GetFaceIndex
Declaration
public uint
GetFaceIndex
(int
i
);
Parameters
Parameter
Description
i
Index of the contact point.
Returns
uint
Index of a face this contact point belongs to.
Description
Get the index of a face a particular contact point belongs to in this contact pair. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13fb481eae4e | unity_docs | scripting | What is `Awaitable.MainThreadAsync` in Unity? Explain its purpose and usage. | Awaitable.MainThreadAsync
Declaration
public static MainThreadAwaitable
MainThreadAsync
();
Returns
MainThreadAwaitable
Awaitable object that completes when switching to the main thread.
Description
Resumes execution on the Unity main thread. Completes immediately when called from the main thread.
```csha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_08e43fb598f6 | unity_docs | rendering | Explain 'Add Light Probe Proxy Volume support to a custom shader in the Built-In Render Pipeline' in Unity. | The following is an example of a particle shader
using the ShadeSHPerPixel function.
```
Shader "Particles/AdditiveLPPV" {
Properties {
_MainTex ("Particle Texture", 2D) = "white" {}
_TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
}
Category {
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"=... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_efee13ca96c8 | github | scripting | Write a Unity C# script called Addressables Loader | ```csharp
#if SMARTREFERENCE_ADDRESSABLES_SUPPORT
using System;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;
using Object = UnityEngine.Object;
namespace SmartReference.Runtime
{
public class AddressablesLoader: ISmartReferenceLoader
{
public ISmartRefere... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_127678583c4b | unity_docs | rendering | In Unity's 'Create a skybox', what is 'Drawing a skybox in your scene' and how does it work? | Once you have created a skybox material, you can apply it to your
scene
’s background. To draw the skybox in your scene:
From the main menu, select
Window > Rendering > Lighting
.
In the Lighting window, select the Environment tab.
Drag your skybox material to the
Skybox Material
property.
This draws the skybox in the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aee77d38ba00 | unity_docs | editor | Show me a Unity C# example demonstrating `SerializedProperty.GetArrayElementAtIndex`. | SerializedProperty.GetArrayElementAtIndex
Declaration
public
SerializedProperty
GetArrayElementAtIndex
(int
index
);
Description
Returns the element at the specified index in the array.
Additional resources:
isArray
,
arraySize
,
Next
.
```csharp
using UnityEditor;
using UnityEngine;public class ArrayExa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4f76b040fe6 | unity_docs | physics | What is `ParticleSystem.CollisionModule.quality` in Unity? Explain its purpose and usage. | ParticleSystem.CollisionModule.quality
public
ParticleSystemCollisionQuality
quality
;
Description
Specifies the accuracy of particle collisions against colliders in the Scene.
The high quality setting is the least likely to exhibit any leaked particles through colliders, but comes with the highest CPU load.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad39e015d460 | unity_docs | scripting | What is `Device.Application.CanStreamedLevelBeLoaded` in Unity? Explain its purpose and usage. | Application.CanStreamedLevelBeLoaded
Declaration
public static bool
CanStreamedLevelBeLoaded
(int
levelIndex
);
Declaration
public static bool
CanStreamedLevelBeLoaded
(string
levelName
);
Description
This has the same functionality as
Application.CanStreamedLevelBeLoaded
. At the moment, the Device Simul... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_90fdad0ee2cb | unity_docs | scripting | What is `Tilemaps.TileBase.StartUp` in Unity? Explain its purpose and usage. | TileBase.StartUp
Declaration
public bool
StartUp
(
Vector3Int
position
,
Tilemaps.ITilemap
tilemap
,
GameObject
go
);
Parameters
Parameter
Description
position
Position of the Tile on the
Tilemap
.
tilemap
The
Tilemap
the tile is present on.
go
The
GameObject
instantiated for the Tile.
Retur... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2890e2020d0d | unity_docs | animation | What is `Animator.SetIKHintPosition` in Unity? Explain its purpose and usage. | Animator.SetIKHintPosition
Declaration
public void
SetIKHintPosition
(
AvatarIKHint
hint
,
Vector3
hintPosition
);
Parameters
Parameter
Description
hint
The AvatarIKHint that is set.
hintPosition
The position in world space.
Description
Sets the position of an IK hint. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b5c43cca15f7 | unity_docs | rendering | What is `CameraEditor.Settings.OnEnable` in Unity? Explain its purpose and usage. | CameraEditor.Settings.OnEnable
Declaration
public void
OnEnable
();
Description
Populate the settings object with data linked to the
Camera
SerializedObject
.
This should be called before the settings object is used. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_458a01e3b6c9 | unity_docs | performance | What is `Unity.Jobs.IJobExtensions.ScheduleByRef` in Unity? Explain its purpose and usage. | IJobExtensions.ScheduleByRef
Declaration
public static
Unity.Jobs.JobHandle
ScheduleByRef
(ref T
jobData
,
Unity.Jobs.JobHandle
dependsOn
);
Parameters
Parameter
Description
jobData
The job and data to schedule.
dependsOn
The dependency of the job. Dependencies ensure that a job executes on worker thr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2975f11aeddb | unity_docs | scripting | What is `UIElements.BaseTreeView.itemToggleUssClassName` in Unity? Explain its purpose and usage. | BaseTreeView.itemToggleUssClassName
public static string
itemToggleUssClassName
;
Description
The USS class name for TreeView item toggle elements.
Unity adds this USS class to every item toggle element of the TreeView. Any styling applied to
this class affects every item located beside, or below the style... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fa8b89b05154 | unity_docs | editor | What is `TypeCache.GetFieldsWithAttribute` in Unity? Explain its purpose and usage. | TypeCache.GetFieldsWithAttribute
Declaration
public static
TypeCache.FieldInfoCollection
GetFieldsWithAttribute
();
Declaration
public static
TypeCache.FieldInfoCollection
GetFieldsWithAttribute
(Type
attrType
);
Declaration
public static
TypeCache.FieldInfoCollection
GetFieldsWithAttribute
(string
a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b76e1b98d0f7 | unity_docs | rendering | Give me an overview of the `EditorSettings` class in Unity. | EditorSettings
class in
UnityEditor
/
Inherits from:
Object
Description
User settings for Unity Editor.
Use EditorSettings to apply Editor Project Settings to your Unity Project. You can control settings such as version control, streaming settings, and Asset serialization.
Additional resources:
Editor Project ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8db5a7646f3 | unity_docs | math | Show me a Unity C# example demonstrating `Handles.ScaleValueHandle`. | nction.
Description
Make a 3D handle that scales a single float.
This method will draw a 3D-draggable handle on the screen. The handle does not move and will scale a single float up and down.
Scale Value handle in the Scene view with an arrow cap as the handle.
Add the following script to your Assets folder as L... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_db89435e5a39 | unity_docs | scripting | What is `ClipboardUtility.duplicatedGameObjects` in Unity? Explain its purpose and usage. | ClipboardUtility.duplicatedGameObjects
Parameters
Parameter
Description
value
An array containing the GameObjects that were duplicated.
Description
Event triggered after GameObjects have been duplicated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fc3ed309cef3 | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUsage` in Unity? Explain its purpose and usage. | GraphicsFormatUsage
enumeration
Description
Use this format usages to figure out the capabilities of specific
GraphicsFormat
Each graphics card may not support all usages across formats. Use
SystemInfo.IsFormatSupported
to check which usages the graphics card supports.
Additional resources:
Texture2D
,
textur... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4e43fc0d9e45 | unity_docs | rendering | What is `ComputeBufferType.Append` in Unity? Explain its purpose and usage. | ComputeBufferType.Append
Description
Append-consume
ComputeBuffer
type.
Allows a buffer to be treated like a stack in compute shaders. Maps to
AppendStructuredBuffer<T>
or
ConsumeStructuredBuffer<T>
in HLSL.
The
stride
passed when constructing the buffer must match structure size, be a multiple of 4 and les... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5e8b8c3d3f09 | unity_docs | input | Explain 'Input events' in Unity. | The InputEvent is sent when the user submits text into a text field. This event updates when there is a change in focus, such as a PointerCaptureOutEvent that on a touch screen.
For default keyboard inputs, the inputEvent fires for each keystroke.
InputEvent
doesn’t fire when the TextField populates from an indirect so... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_257e3608f00d | unity_docs | rendering | In Unity's 'Navigating the CPU Usage Profiler module', what is 'Navigating and selecting items in Timeline view' and how does it work? | To zoom in on areas of the
Timeline view’s
axis:
Use the scroll wheel on your mouse, or
Press and hold the Alt key while you drag with the right mouse button pressed down, or
Use the ends of the horizontal scroll bar to zoom in.
To pan the view, press the middle mouse button, or hold the Alt key (Command key on macOS) ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fe1b3e8ee961 | unity_docs | math | What is `Animations.TransformStreamHandle.GetGlobalTR` in Unity? Explain its purpose and usage. | TransformStreamHandle.GetGlobalTR
Declaration
public void
GetGlobalTR
(
Animations.AnimationStream
stream
,
out
Vector3
position
,
out
Quaternion
rotation
);
Parameters
Parameter
Description
stream
The
AnimationStream
that holds the animated values.
position
The position of the transform in world ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_db9e7d867e39_doc_4 | github | scripting | What does `GetPose` do in this Unity script? Explain its purpose and signature. | Return available pose of the controller for given handedness.Define spcific chirality to track.Absolute position of the tracked controller. Zeros if not tracked.
Signature:
```csharp
public abstract Vector3 GetPose(EHandedness handedness);
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a5d23deea250 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUILayout.Popup`. | GUILayout.MaxWidth
,
GUILayout.MinHeight
,
GUILayout.MaxHeight
,
GUILayout.ExpandWidth
,
GUILayout.ExpandHeight
.
Returns
int
The index of the option that has been selected by the user.
Description
Make a generic popup selection field.
Takes the currently selected index as a parameter and returns the index... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d363115183b | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUtility.HasAlphaChannel` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.HasAlphaChannel
Declaration
public static bool
HasAlphaChannel
(
Experimental.Rendering.GraphicsFormat
format
);
Declaration
public static bool
HasAlphaChannel
(
TextureFormat
format
);
Descriptio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6ed9feabcba5 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.targetArchitectures`. | PlayerSettings.Android.targetArchitectures
public static
AndroidArchitecture
targetArchitectures
;
Description
A set of CPU architectures for the Android build target.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class TargetArchitecturesExample : MonoBehaviour
{
[MenuItem(... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2598e56c68de | unity_docs | editor | Show me a Unity code example for 'Create your own overlay'. | ts:
EditorToolbarButton EditorToolbarToggle EditorToolbarDropdown EditorToolbarDropdownToggle Each toolbar element is created as a standalone class and then added to the overlay panel.
This overlay:
Can be arranged as a panel, horizontally, and vertically.
Has buttons that include text and tooltips.
Has toolbar icons d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c5346dc0b8f | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddBuildPropertyForConfig`. | urned by
BuildConfigByName
.
configGuids
An array of GUIDs of build configurations.
name
The name of the build property.
value
The value of the build property.
Description
Adds a value to build property list of the given build configuration(s).
Duplicate build properties are ignored. Values for names
LIBRARY... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_79694b57c78b | unity_docs | scripting | What is `RenderingLayerMask.operator_uint` in Unity? Explain its purpose and usage. | RenderingLayerMask.RenderingLayerMask
Description
Implicitly converts
uint
to a RenderingLayerMask.
```csharp
using UnityEngine;
using UnityEngine.Rendering;public class Example : MonoBehaviour
{
void Start()
{
// Converts a uint to a rendering layer and prints all the rendering layer names.
// As the value i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0458774e8514 | unity_docs | scripting | What is `Networking.UnityWebRequestAssetBundle.GetAssetBundle` in Unity? Explain its purpose and usage. | UnityWebRequestAssetBundle.GetAssetBundle
Declaration
public static
Networking.UnityWebRequest
GetAssetBundle
(string
uri
);
Declaration
public static
Networking.UnityWebRequest
GetAssetBundle
(Uri
uri
);
Declaration
public static
Networking.UnityWebRequest
GetAssetBundle
(string
uri
,
uint
crc
);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dcaee5f203be | unity_docs | ui | What is `Rendering.UISubset` in Unity? Explain its purpose and usage. | UISubset
enumeration
Description
Bit mask that specifies which UI subset to render when calling
ScriptableRenderContext.CreateUIOverlayRendererList
. For any frame, UI subsets must be rendered in the following order: UIToolkit_UGUI, LowLevel.
Properties
Property
Description
UIToolkit_UGUI
Specifies UI Toolkit ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_295e1b4956d3 | unity_docs | input | What is `Experimental.GraphView.EdgeManipulator.OnMouseDown` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
EdgeManipulator.OnMouseDown
Declaration
protected void
OnMouseDown
(
UIElements.MouseDownEvent
evt
);
Parameters
Parameter
Description
evt
The event.
Description
Handle mouse down event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5878e1affd2e | unity_docs | physics | What is `Physics2D.simulationLayers` in Unity? Explain its purpose and usage. | Physics2D.simulationLayers
public static
LayerMask
simulationLayers
;
Description
The
Rigidbody2D
and
Collider2D
layers to simulate.
By default,
All Layers
are simulated, however if you specify layers in this property then only the
Rigidbody2D
on those layers will be simulated. Along with this, only c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c2191c1f8017 | unity_docs | editor | Explain 'Native memory introduction' in Unity. | The Unity engine’s internal C/C++ core has its own memory management system, called native memory. In most situations, you can’t directly access or modify this memory type.
Native memory isn’t automatically managed or subject to
garbage collection
. This means it’s difficult to profile and handle in a way that doesn’t ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35a7c5736690 | unity_docs | physics | What is `ControllerColliderHit.point` in Unity? Explain its purpose and usage. | ControllerColliderHit.point
public
Vector3
point
;
Description
The impact point in world space.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void OnControllerColliderHit(ControllerColliderHit hit)
{
// print the impact point
Debug.Log("I impacted at: " + hit.point);
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a431e5038f5d_doc_2 | github | scripting | What does `IndexToInputHandler` do in this Unity script? Explain its purpose and signature. | Returns an input handler label based on index.0 - Input Manager (Old)1 - Input System Package (New)2 - Bothindex
Signature:
```csharp
public static string IndexToInputHandler(int index)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_170d7e05f0af | unity_docs | rendering | What is `SceneView.SceneViewState` in Unity? Explain its purpose and usage. | SceneViewState
class in
UnityEditor
Description
A collection of graphic settings for this
SceneView
. All graphic settings are boolean.
After changing settings, call
SceneView.RepaintAll
to redraw the scene with the new values.
Properties
Property
Description
allEnabled
Whether all graphic settings are ena... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_011a36c6ba23 | unity_docs | scripting | What are the parameters of `MonoBehaviour.OnAnimatorIK` in Unity? | Description Callback for setting up animation IK (inverse kinematics). OnAnimatorIK is called by the Animator component immediately before it updates its internal IK system. This callback can be used to set the positions of the IK goals and their respective weights. OnAnimatorIK is only called if the following requirem... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5806f825f7d9 | unity_docs | rendering | Explain 'Set the color of a material in the Standard Shader' in Unity. | The Albedo property controls the base color and transparency of the material.
## Set a single color
To use a single color across a material, do either of the following:
Select the swatch to open the Color window.
Select the dropper to select a new color from anywhere on your screen.
In the Color window, use the Alpha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9983bbc11233 | unity_docs | rendering | What is `Texture.mipMapBias` in Unity? Explain its purpose and usage. | Texture.mipMapBias
public float
mipMapBias
;
Description
The mipmap bias of the Texture.
A positive bias makes a Texture appear extra blurry, while a negative bias sharpens the Texture.
Note that using large negative bias can reduce performance, so it's not recommended to use more than -0.5 negative bias. In mo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f17fcfd2c286 | unity_docs | scripting | What is `Progress.IsPausable` in Unity? Explain its purpose and usage. | Progress.IsPausable
Declaration
public static bool
IsPausable
(int
id
);
Parameters
Parameter
Description
id
The progress indicator's unique ID.
Returns
bool
True if you can pause the task, false otherwise.
Description
Indicates whether you can pause the progress indicator's task. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_561605979054 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.GetCompatiblePorts` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.GetCompatiblePorts
Declaration
public List<Port>
GetCompatiblePorts
(
Experimental.GraphView.Port
startPort
,
Experimental.GraphView.NodeAdapter
nodeAdapter
);
Parameters
Parameter
Description
startPort
Star... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9cdd9d44769a | unity_docs | physics | In Unity's 'Get started with Unity', what is 'Changing to Unity from other games engines' and how does it work? | Unity’s architecture is based around GameObjects (similar to Actors in Unreal, and Nodes in Godot) and
components
. Everything in your project is a GameObject, which acts as a container for components. Components add functionality like lighting,
collisions
, and audio to GameObjects. You can also group together GameObj... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b45c6c7f3d20 | unity_docs | editor | What is `Device.SystemInfo.supportsRayTracing` in Unity? Explain its purpose and usage. | SystemInfo.supportsRayTracing
public static bool
supportsRayTracing
;
Description
This has the same functionality as
SystemInfo.supportsRayTracing
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_9d5adffaab1d | unity_docs | physics | What are the parameters of `PhysicsShapeGroup2D.AddCircle` in Unity? | Returns int Returns the shape index the shape was added to in the PhysicsShapeGroup2D . This index is used as the main reference when retrieving a shape. Description Adds a circle shape ( PhysicsShapeType2D.Circle ) to the shape group. A circle shape is comprised of a single vertex ( center ) and a radius that extends ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9cd3767922e0 | unity_docs | scripting | What is `Time.captureFramerate` in Unity? Explain its purpose and usage. | Time.captureFramerate
public static int
captureFramerate
;
Description
The reciprocal of
Time.captureDeltaTime
.
captureFramerate
is the equivalent of (1.0 /
Time.captureDeltaTime
) rounded to the nearest integer.
Setting
captureFramerate
also sets
Time.captureDeltaTime
to the equivalent inverse.
Note th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e3f77bd51e76 | unity_docs | rendering | What are the parameters of `Texture2D.GetPixelBilinear` in Unity? | Returns Color The bilinearly interpolated color for the given UV coordinates and mipmap level. Description Gets the filtered color at the normalized coordinates ( u , v ). This method gets pixel data from the texture in CPU memory. Texture.isReadable must be true . You also can't use GetPixelBilinear with textures that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9715a947b37 | unity_docs | rendering | What is `UIElements.Background.FromRenderTexture` in Unity? Explain its purpose and usage. | Background.FromRenderTexture
Declaration
public static
UIElements.Background
FromRenderTexture
(
RenderTexture
rt
);
Parameters
Parameter
Description
rt
The render texture to use as a background.
Returns
Background
A new background object.
Description
Creates a background from a
RenderTexture
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4aba87777057 | unity_docs | rendering | What is `UIElements.StyleBackground.ctor` in Unity? Explain its purpose and usage. | StyleBackground Constructor
Declaration
public
StyleBackground
(
UIElements.Background
v
);
Description
Creates from either a
Background
or a
StyleKeyword
.
Declaration
public
StyleBackground
(
Texture2D
v
);
Description
Creates from either a
Background
or a
StyleKeyword
.
Declaration
publ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f1a5b3f6bf8e | unity_docs | scripting | What is `UIElements.IStyle.transitionTimingFunction` in Unity? Explain its purpose and usage. | IStyle.transitionTimingFunction
public StyleList<EasingFunction>
transitionTimingFunction
;
Description
Determines how intermediate values are calculated for properties modified by a transition effect. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e867911da411 | unity_docs | scripting | What is `Build.BuildPlayerProcessor.PrepareForBuild` in Unity? Explain its purpose and usage. | BuildPlayerProcessor.PrepareForBuild
Declaration
public void
PrepareForBuild
(
Build.BuildPlayerContext
buildPlayerContext
);
Parameters
Parameter
Description
buildPlayerContext
A context tied to the scheduled player build.
Description
Implement this function to receive a callback before a player build st... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13bdeee6b9ea | unity_docs | scripting | What is `UIElements.BaseVerticalCollectionView.onSelectionChange` in Unity? Explain its purpose and usage. | BaseVerticalCollectionView.onSelectionChange
Description
Obsolete. Use
BaseVerticalCollectionView.selectionChanged
instead.
This callback receives an enumerable that contains the item or items selected. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_362ab199fb09 | github | scripting | Write a Unity C# UI script for Api Client | ```csharp
using UnityEngine;
using UnityEngine.Networking;
using System;
using System.Collections;
namespace TapLive.Network
{
/// <summary>
/// REST API client using UnityWebRequest
/// Handles authentication and order fetching
/// </summary>
public class ApiClient : MonoBehaviour
{
pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c96b222b4fd9 | github | scripting | Write a Unity C# MonoBehaviour script called Lean Tester | ```csharp
using UnityEngine;
using System.Collections;
public class LeanTester : MonoBehaviour {
public float timeout = 15f;
#if !UNITY_3_5 && !UNITY_4_0 && !UNITY_4_0_1 && !UNITY_4_1 && !UNITY_4_2 && !UNITY_4_3 && !UNITY_4_5
public void Start(){
StartCoroutine( timeoutCheck() );
}
IEnumerator timeoutCheck(){... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_f6b2dc91eb95 | unity_docs | physics | What is `Rigidbody2D.IsTouching` in Unity? Explain its purpose and usage. | Rigidbody2D.IsTouching
Declaration
public bool
IsTouching
(
Collider2D
collider
);
Parameters
Parameter
Description
collider
The collider to check if it is touching any of the collider(s) attached to this rigidbody.
Returns
bool
Whether the
collider
is touching any of the collider(s) attached to this ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1a5325b891f2 | unity_docs | editor | What is `EditorApplication.Beep` in Unity? Explain its purpose and usage. | EditorApplication.Beep
Declaration
public static void
Beep
();
Description
Plays system beep sound.
```csharp
// Play beep sound on menu clickusing UnityEditor;
using UnityEngine;public class BeepExample
{
[MenuItem("Examples/Play beep")]
static void DoBeep()
{
EditorApplication.Beep();
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2b6ec7cfdd5e | unity_docs | input | What is `TouchScreenKeyboard.isInPlaceEditingAllowed` in Unity? Explain its purpose and usage. | TouchScreenKeyboard.isInPlaceEditingAllowed
public static bool
isInPlaceEditingAllowed
;
Returns
bool
Returns true when you are able to select and modify the input field, returns false otherwise.
Description
Checks if the text within an input field can be selected and modified while
TouchScreenKeyboard
i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6a02d950b673 | unity_docs | ui | What is `Overlays.DockPosition` in Unity? Explain its purpose and usage. | DockPosition
enumeration
Description
DockPosition describes the alignment of an
Overlay
within a
DockZone
.
Use
DockPosition
in an
OverlayAttribute
to set the default location for an Overlay.
```csharp
using UnityEditor;
using UnityEditor.Overlays;
using UnityEngine;
using UnityEngine.UIElements;// Use Ove... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2e9fbf474bc6 | github | scripting | Write a Unity C# physics script for Physics Manager | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PhysicsManager : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Physics.autoSimulation = false;
}
// Update is called once per frame
void LateUpdate()... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_edc2a6e524f5 | unity_docs | editor | In Unity's 'Additional files for Roslyn analyzers and source generators', what is 'Retrieving available additional files from code' and how does it work? | Analyzers can retrieve the full list of additional files included in the compiled assembly from the analyzer context. This list comprises all additional files included in the assembly, not just the ones matching the name of the current analyzer. The following example demonstrates this:
```csharp
using System.IO;
using ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0b438e9a55aa | unity_docs | rendering | Explain 'Build AssetBundles in parallel processes' in Unity. | To speed up AssetBundle building, you can use the Asset Database to parallel import assets and cache intermediate files with the
Multi-Process AssetBundle Building
setting. You can use this setting with AssetBundles built with
BuildPipeline.BuildAssetBundles
, but not Addressables.
When you enable parallel processsing ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_331e829ce548 | unity_docs | scripting | What is `Search.SearchMonitor.GetDiff` in Unity? Explain its purpose and usage. | SearchMonitor.GetDiff
Declaration
public static
Search.AssetIndexChangeSet
GetDiff
(long
timestamp
,
IEnumerable<string>
deletedAssets
,
Func<string,bool>
predicate
);
Parameters
Parameter
Description
timestamp
Timestamp to be compared.
deletedAssets
Any untracked deleted assets.
predicate
Predicate ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97de7a45c0eb | unity_docs | ui | What is `Input.ClearLastPenContactEvent` in Unity? Explain its purpose and usage. | Input.ClearLastPenContactEvent
Declaration
public static void
ClearLastPenContactEvent
();
Description
Clears the last stored pen event.
Calling this function may impact event handling for UIToolKit elements.
Note
: This API is part of the legacy Input Manager. The recommended best practice is that you don't us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bf5cf5c5d6e1_doc_3 | github | scripting | What does `HasUpdateSuccessFlag` do in this Unity script? Explain its purpose and signature. | Determines whether one or more bit fields are set in the flags.Non-boxing version of HasFlag for .The flags enum instance.The flag to check if set.Returns if the bit field or bit fields are set, otherwise returns .
Signature:
```csharp
static bool HasUpdateSuccessFlag(XRHandSubsystem.UpdateSuccessFlags successFlags, ... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_f1f3f26571ed | unity_docs | scripting | Explain 'Rig tab Import Settings reference' in Unity. | The settings on the Rig tab define how Unity maps the deformers to the mesh in the imported model so that you can animate it. For humanoid characters, this means
assigning or creating an avatar
. For non-humanoid (generic) characters, this means
identifying a root bone in the skeleton
.
To open the Rig tab, select a me... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3f1b973ebb1e | unity_docs | editor | What is `Tilemaps.Tilemap.SetEditorPreviewColor` in Unity? Explain its purpose and usage. | Tilemap.SetEditorPreviewColor
Declaration
public void
SetEditorPreviewColor
(
Vector3Int
position
,
Color
color
);
Parameters
Parameter
Description
position
Position of the editor preview Tile on the
Tilemap
.
color
Color to set the editor preview
Tile
to at the XYZ coordinate.
Description
Sets th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b53387668c4b | unity_docs | xr | Show me a Unity code example for 'XR packages'. | ity Editor.
Click
Oculus XR plug-in version 3.3.0
.
The Package Manager window opens, showing the
Add package by name dialog Click Add to install the last compatible version of the plug-in.
Alternately, you can open the
Add package by name
dialog manually and enter the package id and version. You can also edit the proj... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6742ed85abb5 | unity_docs | editor | What is `AssetDatabase.GUIDFromAssetPath` in Unity? Explain its purpose and usage. | AssetDatabase.GUIDFromAssetPath
Declaration
public static GUID
GUIDFromAssetPath
(string
path
);
Parameters
Parameter
Description
path
Project relative path for the asset.
Returns
GUID
The GUID of the asset. An all-zero GUID denotes an invalid asset path.
Description
Get the GUID for the asset at
pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_583e2ceb2e32 | unity_docs | xr | Explain 'USS data types' in Unity. | USS data types define typical values, including keywords and units, that USS properties and functions accept.
## Syntax
USS properties use the same syntax as W3C CSS documents:
Keyword values appear as is. For example:
auto
,
baseline
.
Basic data types appear between angle brackets (
<
and
>
). For example:
<length>... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fb4c4b29aacd | unity_docs | audio | In Unity's 'Video file compatibility with the Unity Editor', what is 'Compatibility with Editor platforms' and how does it work? | Video source files must use a format that your Editor platform supports. Each platform supports different video file formats.
Extension Windows macOS
Linux.asf
X.avi
X.dv X X.m4v X X.mov X X.mp4 X X.mpg X X.mpeg X X.ogv X X
X.vp8 X X
X.webm X X
X.wmv X The optimal supported video codec for most platforms is H.264. Howe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f14ec56c2f10 | unity_docs | scripting | Give me an overview of the `HeadDof` class in Unity. | HeadDof
enumeration
Description
Enumeration of all the muscles in the head.
These muscles are a sub-part of a human part.
Additional resources:
HumanPartDof
.
Properties
Property
Description
NeckFrontBack
The neck front-back muscle.
NeckLeftRight
The neck left-right muscle.
NeckRollLeftRight
The neck roll l... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb55ce3acd16 | unity_docs | editor | Show me a Unity C# example demonstrating `SceneManagement.SceneManager.CreateScene`. | pty new Scene at runtime with the given name.
The new Scene will be opened additively into the hierarchy alongside any existing Scenes that are currently open. The path of the new Scene will be empty. This function is for creating Scenes at runtime. To create a Scene at edit-time (for example, when making an editor sc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7fc167d5d34d_doc_20 | github | scripting | What does `GetInstances` do in this Unity script? Explain its purpose and signature. | Get created instances.
Signature:
```csharp
public static GlobalBehaviour[] GetInstances(in Type type)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_c30ea1096b29 | unity_docs | ui | Show me a Unity C# example demonstrating `RangeAttribute`. | RangeAttribute
class in
UnityEngine
/
Inherits from:
PropertyAttribute
/
Implemented in:
UnityEngine.CoreModule
Description
Attribute used to make a float or int variable in a script be restricted to a specific range.
When this attribute is used, the float or int will be shown as a slider in the Inspector ins... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_06ed640a1e88 | unity_docs | scripting | In Unity's 'Customize dependencies', what is 'Use a custom dependency version' and how does it work? | To use a custom version of a dependency for your project, follow these steps:
Download the custom version of the dependency.
Warning
: Unity only supports versions of the OpenJDK, SDK, or NDK provided through the Unity Hub. For more information, refer to
Supported dependency versions
.
In Unity’s main menu, go to
Edit
... | 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.