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_bb7ee41cb1b9 | unity_docs | scripting | What is `BuildCompression.LZMA` in Unity? Explain its purpose and usage. | BuildCompression.LZMA
public static
BuildCompression
LZMA
;
Description
LZMA Compression.
LZMA-Compressed bundles give the smallest possible download size, but have relatively slow decompression resulting in higher apparent load times and greater memory use at runtime.
This BuildCompression is only supported ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b93925974dc5 | unity_docs | animation | What is `ModelImporterClipAnimation.additiveReferencePoseFrame` in Unity? Explain its purpose and usage. | ModelImporterClipAnimation.additiveReferencePoseFrame
public float
additiveReferencePoseFrame
;
Description
The additive reference pose frame.
The allow frame range is defines by the imported take time which mean that the reference pose frame could be lower than
firstFrame
or greater than
lastFrame
time ran... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c25a2fd0de7 | unity_docs | editor | What is `iOS.Xcode.PBXProject.GetResourcesBuildPhaseByTarget` in Unity? Explain its purpose and usage. | PBXProject.GetResourcesBuildPhaseByTarget
Declaration
public string
GetResourcesBuildPhaseByTarget
(string
targetGuid
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
Returns
string
Returns the GUID of the existing phase or
null
if i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cf22defa7c72 | unity_docs | ui | What is `ScriptableWizard.OnWizardOtherButton` in Unity? Explain its purpose and usage. | ScriptableWizard.OnWizardOtherButton()
Description
Allows you to provide an action when the user clicks on the other button.
This is the place where you can implement all the stuff that will
be done if the user clicks the secondary option when calling DisplayWizard.
Additional resources:
ScriptableWizard.DisplayWi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1361a345cb73 | unity_docs | physics | What is `Physics2D.useSubStepping` in Unity? Explain its purpose and usage. | Physics2D.useSubStepping
public static bool
useSubStepping
;
Description
Whether to use simulation sub-stepping during a simulation step.
When the simulation is set to run per-frame by setting the
Physics2D.simulationMode
to
Update
or
Script
, this option will control if simulation sub-stepping can be used... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7615a8329c41 | unity_docs | editor | What is `PlayerSettings.WSA.GetTargetDeviceFamily` in Unity? Explain its purpose and usage. | PlayerSettings.WSA.GetTargetDeviceFamily
Declaration
public static bool
GetTargetDeviceFamily
(
PlayerSettings.WSATargetFamily
family
);
Parameters
Parameter
Description
family
Device Family type
to check.
Returns
bool
Returns true if the project targets the device family. Otherwise, returns false.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ade10f847927 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsStateCollection` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsStateCollection
class in
UnityEngine.Experimental.Rendering
/
Inherits from:
Object
/
Implemented in:
UnityEngine.CoreModule
Description
Collection of shader variants and associated graphics states.
Use graphics st... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_88cd4bed8747 | unity_docs | ui | In Unity's 'Matchmaker Session Building Block', what is 'Initial setup' and how does it work? | Deploy the MatchmakerQueue
asset to use the functionality in this Building Block.
In the Editor, under
Assets
>
Blocks
>
MatchmakerSession
>
Settings
, select the MatchmakerQueue asset file.
In the Inspector window, select
View in Deployment Window
.
In the Deployment window, select the MatchmakerQueue file under
Block... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f78b924e41e8 | unity_docs | ui | What is `AssetImporters.AssetImporterEditor.OnApplyRevertGUI` in Unity? Explain its purpose and usage. | AssetImporterEditor.OnApplyRevertGUI
Declaration
protected bool
OnApplyRevertGUI
();
Returns
bool
Returns true if the new settings were successfully applied.
Description
Process the 'Apply' and 'Revert' buttons.
This is called by ApplyRevertGUI to place and handle the 'Apply' and 'Revert' buttons.
```csh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_996118dfd586 | unity_docs | rendering | What are the parameters of `ParticleSystem.TriggerSubEmitter` in Unity? | Description Triggers the specified sub emitter on all particles of the Particle System. ```csharp
using UnityEngine;// Add a manual sub-emitter
public class ExampleClass : MonoBehaviour
{
private ParticleSystem ps;
private float m_Timer = 0.0f;
public float m_Interval = 2.0f; void Start()
{
/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29ac92df45f0 | unity_docs | rendering | What is `StaticEditorFlags.ContributeGI` in Unity? Explain its purpose and usage. | StaticEditorFlags.ContributeGI
Description
Include the target
Mesh Renderer
in global illumination calculations.
These calculations take place while precomputing lighting data at bake time. The ContributeGI property exposes the
ReceiveGI
property. The ContributeGI property only takes effect if you enable a glob... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_b63447500a9a | github | scripting | Write a Unity C# UI script for Dialog | ```csharp
// Copyright (c) Mixed Reality Toolkit Contributors
// Licensed under the BSD 3-Clause
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using TMPro;
using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.Events;
#if MRTK_SPATIAL_PRESENT
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_5a6ed3329d25 | unity_docs | rendering | What is `Light.shadowCustomResolution` in Unity? Explain its purpose and usage. | Light.shadowCustomResolution
public int
shadowCustomResolution
;
Description
The custom resolution of the shadow map.
By default, shadow map resolution is computed from its importance on screen. Setting this property to a value greater than zero will override that behavior. Please note that the shadow map reso... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57c2f0aa3011 | unity_docs | editor | What is `PlayerSettings.WSA.tileBackgroundColor` in Unity? Explain its purpose and usage. | PlayerSettings.WSA.tileBackgroundColor
public static
Color
tileBackgroundColor
;
Description
The background color to use the application's tiles.
In the Editor, Unity displays this under
Tile section
in
UWP Player Settings
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e07d204652a | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.AddRemotePackageReferenceAtVersion` in Unity? | Returns string Returns the GUID of the remote package reference. Description Adds a reference to the remote package at the given version. ```csharp
using UnityEditor;
using System.IO;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;public class Sample_AddRemotePackageReferenceAtVersion
{
[PostProcessBuil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc036c8f1454 | unity_docs | editor | What is `EditorGUI.EnumPopup` in Unity? Explain its purpose and usage. | EditorGUI.EnumPopup
Declaration
public static Enum
EnumPopup
(
Rect
position
,
Enum
selected
,
GUIStyle
style
= EditorStyles.popup);
Declaration
public static Enum
EnumPopup
(
Rect
position
,
string
label
,
Enum
selected
,
GUIStyle
style
= EditorStyles.popup);
Declaration
public static Enum
En... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d2ecfa052d56 | unity_docs | scripting | What is `AudioDataLoadState` in Unity? Explain its purpose and usage. | AudioDataLoadState
enumeration
Description
Value describes the current load state of the audio data associated with an
AudioClip
.
This enumeration is useful if you want to:
Only load audio data if the data isn’t already loaded.
Perform actions while the audio data loads.
Track progress and failures of the lo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b0d25ba99d22 | unity_docs | scripting | What are the parameters of `Video.VideoPlayer.loopPointReached` in Unity? | Description The VideoPlayer emits this event when the video reaches the end of its playback. If you set the VideoPlayer.isLooping property to true , this event makes the video play again. Otherwise the VideoPlayer stops. You can also set the Loop property in the Inspector window of the VideoPlayer component. Additional... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1255217ec09d | unity_docs | rendering | What is `MaterialEditor.TexturePropertyTwoLines` in Unity? Explain its purpose and usage. | MaterialEditor.TexturePropertyTwoLines
Declaration
public
Rect
TexturePropertyTwoLines
(
GUIContent
label
,
MaterialProperty
textureProp
,
MaterialProperty
extraProperty1
,
GUIContent
label2
,
MaterialProperty
extraProperty2
);
Parameters
Parameter
Description
label
The label used for the text... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0240d31b5548 | unity_docs | rendering | What is `Rendering.MeshUpdateFlags.DontNotifyMeshUsers` in Unity? Explain its purpose and usage. | MeshUpdateFlags.DontNotifyMeshUsers
Description
Indicates that Unity should not notify
Renderer
components about a possible
Mesh
bounds change, when you modify Mesh data.
When you modify Mesh data that could affect the geometry of the mesh, Unity's default behaviour is to notify all
Renderer
components that u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6b2ad6a947b0 | unity_docs | rendering | What is `ModelImporter.importCameras` in Unity? Explain its purpose and usage. | ModelImporter.importCameras
public bool
importCameras
;
Description
Controls import of cameras. Basic properties like
field of view
,
near plane distance
and
far plane distance
can be animated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b89b88a4eeb4 | unity_docs | math | What is `Windows.Crypto` in Unity? Explain its purpose and usage. | Crypto
class in
UnityEngine.Windows
/
Implemented in:
UnityEngine.CoreModule
Description
Class representing cryptography algorithms.
Note: this class is only available when targeting Universal Windows Platform.
Static Methods
Method
Description
ComputeMD5Hash
Computes MD5 hash value for the specified byte a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a9196f336dd2 | unity_docs | scripting | Explain 'Vector4Field' in Unity. | A Vector4Field lets users enter a Vector4 value.
Note
: To align a Vector4Field with other fields in an Inspector window, simply apply the.unity-base-field__aligned
USS class to it. For more information, refer to
BaseField
.
## Create a Vector4Field
You can create a Vector4Field with UI Builder, UXML, and C#. The fol... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_79c8660dc644 | unity_docs | rendering | What is `EditorGUIUtility.TrTextContentWithIcon` in Unity? Explain its purpose and usage. | EditorGUIUtility.TrTextContentWithIcon
Declaration
public static
GUIContent
TrTextContentWithIcon
(string
text
,
Texture
icon
);
Declaration
public static
GUIContent
TrTextContentWithIcon
(string
text
,
string
iconName
);
Declaration
public static
GUIContent
TrTextContentWithIcon
(string
text
,
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3f14f8e7f6d5 | unity_docs | animation | What is `Animations.AnimatorStateMachine.MakeUniqueStateMachineName` in Unity? Explain its purpose and usage. | AnimatorStateMachine.MakeUniqueStateMachineName
Declaration
public string
MakeUniqueStateMachineName
(string
name
);
Parameters
Parameter
Description
name
Desired name for the state machine.
Description
Makes a unique state machine name in the context of the parent state machine. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_515cdc39406f | unity_docs | editor | What is `HyperLinkClickedEventArgs.hyperLinkData` in Unity? Explain its purpose and usage. | HyperLinkClickedEventArgs.hyperLinkData
public Dictionary<string,string>
hyperLinkData
;
Description
Parameters found in the hyperlink tag.
See
EditorGUI.hyperLinkClicked
for more information. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c9d1b3ed06ac | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.A2R10G10B10_UIntPack32` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.A2R10G10B10_UIntPack32
Description
A four-component, 32-bit packed unsigned integer format that has a 2-bit A component in bits 30..31, a 10-bit R component in bits 20..29, a 10-bit G component in bits 10..19, and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_59289ac65fcf | unity_docs | scripting | What is `ParticleSystem.MainModule.startSizeYMultiplier` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.startSizeYMultiplier
public float
startSizeYMultiplier
;
Description
A multiplier for
ParticleSystem.MainModule.startSizeY
.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall size multiplier.
```csharp
using UnityEngine;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8c55bffefd16 | unity_docs | rendering | Give me an overview of the `ModelImporterSecondaryUVMarginMethod` class in Unity. | ModelImporterSecondaryUVMarginMethod
enumeration
Description
Methods for handling margins during lightmap UV generation in
ModelImporter
.
Properties
Property
Description
Manual
Specify pack margin manually.
Calculate
Calculate suitable lightmap UV margins based on expected lightmap resolution and object scal... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9d2857288a14_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Returns reference if required permissions were granted and this component is enabled. Else, returns null.
Signature:
```csharp
public WebCamTexture WebCamTexture
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_74eb40c135ee | unity_docs | rendering | What is `Rendering.RayTracingInstanceMaterialConfig` in Unity? Explain its purpose and usage. | RayTracingInstanceMaterialConfig
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
This structure is used by
RayTracingAccelerationStructure.CullInstances
function to determine which types of Materials are used by Renderers when populating the acceleration structure with ray ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_94c80e7070f0 | unity_docs | physics | What is `Physics.CapsuleCast` in Unity? Explain its purpose and usage. | Physics.CapsuleCast
Declaration
public static bool
CapsuleCast
(
Vector3
point1
,
Vector3
point2
,
float
radius
,
Vector3
direction
,
float
maxDistance
= Mathf.Infinity,
int
layerMask
= DefaultRaycastLayers,
QueryTriggerInteraction
queryTriggerInteraction
= QueryTriggerInteraction.UseGlobal);
Par... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ea488238bf29 | unity_docs | audio | In Unity's 'Audio SFX Reverb Effect', what is 'Properties' and how does it work? | Property:
Function:
Dry Level
Mix level of dry signal in output in mB. Ranges from –10000.0 to 0.0. Default is 0 mB.
Room
Room effect level at low frequencies in mB. Ranges from –10000.0 to 0.0. Default is –10000.0 mB.
Room HF
Room effect high-frequency level in mB. Ranges from –10000.0 to 0.0. Default is 0.0 mB.
Decay... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_79c805c2c785 | unity_docs | scripting | What is `SkinWeights.FourBones` in Unity? Explain its purpose and usage. | SkinWeights.FourBones
Description
Four bones affect each vertex. When used to access
Mesh.GetBoneWeightBuffer
the Bone Weight buffer will contain one
BoneWeight
per vertex.
Additional resources:
QualitySettings.skinWeights
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ae04db195b11_doc_2 | github | scripting | What does `ShakeJob` do in this Unity script? Explain its purpose and signature. | Unity coroutine responsible for executing camera shake.Exits after trauma decays to zero, and camera is interpolated back to original position and rotation.
Signature:
```csharp
private IEnumerator ShakeJob()
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_90716f8bbde2 | unity_docs | rendering | What is `Media.H264EncoderAttributes` in Unity? Explain its purpose and usage. | H264EncoderAttributes
struct in
UnityEditor.Media
Description
Descriptor for H.264 encoder attributes.
```csharp
using UnityEditor.Media;
using UnityEngine;
using UnityEditor;
using Unity.Collections;
using System.IO;public class Recorder
{
static public void RecordMovie()
{
H264EncoderAttributes h264Attr = ne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_85c123bfe370 | unity_docs | rendering | Show me a Unity C# example demonstrating `ParticleSystem.RotationBySpeedModule.zMultiplier`. | ParticleSystem.RotationBySpeedModule.zMultiplier
public float
zMultiplier
;
Description
Speed multiplier along the z-axis.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall speed multiplier.
```csharp
using UnityEngine;
using System.Collections;[R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5d7b13e69d90 | unity_docs | math | What is `IMGUI.Controls.AdvancedDropdown.minimumSize` in Unity? Explain its purpose and usage. | AdvancedDropdown.minimumSize
protected
Vector2
minimumSize
;
Description
Minimum size of the drop-down window. By default, the drop-down will try to match the width of the given rect or the rendered content. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8904170c61d1 | unity_docs | ui | What is `MacFullscreenMode.FullscreenWindowWithDockAndMenuBar` in Unity? Explain its purpose and usage. | MacFullscreenMode.FullscreenWindowWithDockAndMenuBar
Description
Fullscreen window with Dock and Menu bar.
Same as Fullscreen window mode, but Unity will also show the Menu bar and Dock if the cursor moves to the
edges of the screen, like other macOS fullscreen Apps. It is possible to switch between fullscreen and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2566cea2ce0e | unity_docs | ui | What is `CursorLockMode.Locked` in Unity? Explain its purpose and usage. | CursorLockMode.Locked
Description
Locks the cursor to the center of the Game view.
CursorLockMode.Locked
also hides the hardware cursor. However, the cursor is only locked and hidden after you click in the Game view.
Android
: Only supported on Android 8.0 (API 26) or newer.
```csharp
//This script makes Buttons ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a49afe14da33 | unity_docs | rendering | What is `LightingSettings.aoExponentIndirect` in Unity? Explain its purpose and usage. | LightingSettings.aoExponentIndirect
public float
aoExponentIndirect
;
Description
Sets the contrast of ambient occlusion that Unity applies to indirect lighting in lightmaps. (Editor only).
Ambient occlusion (AO) is an effect that approximates how much ambient light a given point on a surface receives. When yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a506208894be | unity_docs | math | What is `AssetBundle.GetAllAssetNames` in Unity? Explain its purpose and usage. | AssetBundle.GetAllAssetNames
Declaration
public string[]
GetAllAssetNames
();
Description
Return all Asset names in the AssetBundle.
Only works for normal AssetBundles (non-streamed Scene AssetBundle), otherwise an empty string array is returned.
The names are the project-relative path of each Asset file, unle... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_916d6ce6a51e | github | scripting | Write a Unity C# XR/VR script for Haptic Controller | ```csharp
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
public class HapticController : MonoBehaviour
{
public XRBaseController vrController;
[Header("Right Click on this component and select Haptic Test to the feedback strength and duration.")]
[RangeAttribute(0f,1f)]
public float defau... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_98a24c77a64a | unity_docs | scripting | What is `UIElements.EnumField` in Unity? Explain its purpose and usage. | EnumField
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.BaseField_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
Makes a dropdown for switching between enum values. For more information, refer to
UXML element EnumField
.
Static Properties
Property
Description
arrowUssClassNa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6782c83ac13b | unity_docs | animation | What is `Animations.BoundProperty.version` in Unity? Explain its purpose and usage. | BoundProperty.version
public int
version
;
Description
The version of the BoundProperty.
Use this property to determine whether the BoundProperty object identifies an existing bound property.
During the life of an application, its Version can overflow and wrap around. For this reason, you cannot assume that a B... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_914142eb3b21 | unity_docs | editor | Show me a Unity code example for 'Create a pop-up window'. | the pop-up window displays.
Create a Unity project with any template.
Right-click in the Project window, and then select
Create
>
UI Toolkit
>
Editor Window
.
In the
C#
box of the
UI Toolkit Editor Window Creator
window, enter
PopupExample
.
Select
Confirm
. This creates three files:
PopupExample.cs
,
PopupExample.uxml... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3830b1b3a355 | unity_docs | scripting | Explain 'Visual query builder reference' in Unity. | The Search window’s visual query builder supports the same search tokens and syntax as the textual search, but relies on a visual interface.
## Toggle the visual query builder
To use the visual query builder, in the Search window, select
Toggle Query Builder Mode
.
The search field changes to a visual query builder:
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d583bba5faf8 | unity_docs | scripting | What is `ParticleSystem.rotationOverLifetime` in Unity? Explain its purpose and usage. | ParticleSystem.rotationOverLifetime
public
ParticleSystem.RotationOverLifetimeModule
rotationOverLifetime
;
Description
Script interface for the RotationOverLifetimeModule of a Particle System.
Rotate particles throughout their lifetime.
Particle System modules do not need to be reassigned back to the system... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6811953e56eb | unity_docs | scripting | What is `UIElements.ToolbarSearchField` in Unity? Explain its purpose and usage. | ToolbarSearchField
class in
UnityEditor.UIElements
/
Inherits from:
UIElements.SearchFieldBase_2
Description
A search field for the toolbar. For more information, refer to
UXML element ToolbarSearchField
.
Static Properties
Property
Description
cancelButtonOffVariantUssClassName
USS class name of cance... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_525f1ec53489 | unity_docs | rendering | What is `MaterialEditor.OnDisable` in Unity? Explain its purpose and usage. | MaterialEditor.OnDisable
Declaration
public void
OnDisable
();
Description
Called when the editor is disabled, if overridden please call the base OnDisable() to ensure that the material inspector is set up properly. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_821ecf112b83 | unity_docs | editor | What is `PauseState` in Unity? Explain its purpose and usage. | PauseState
enumeration
Description
Enumeration specifying the current pause state of the Editor.
Additional resources:
PlayModeStateChange
,
EditorApplication.pauseStateChanged
,
EditorApplication.isPaused
.
Properties
Property
Description
Paused
Occurs as soon as the Editor is paused, which may occur during... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a5eae48a7d93 | unity_docs | scripting | What is `UnityEngine.VirtualTexturingModule` in Unity? Explain its purpose and usage. | Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future.
UnityEngine.VirtualTexturingModule
Description
Module that implements virtual texturing.
Classes
Class
Description
Resolver
Class responsable for virtual texturing feedbac... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3c26c22a4436 | unity_docs | math | What is `AI.NavMesh.AllAreas` in Unity? Explain its purpose and usage. | NavMesh.AllAreas
public static int
AllAreas
;
Description
Area mask constant that includes all NavMesh areas.
Use the mask in query functions, such as
Raycast
, to indicate that all NavMesh area types are accepted.
```csharp
// TargetReachable
using UnityEngine;
using UnityEngine.AI;public class TargetReachab... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21e86f027c05 | unity_docs | performance | What is `Unity.Profiling.ProfilerRecorder.CopyTo` in Unity? Explain its purpose and usage. | ProfilerRecorder.CopyTo
Declaration
public int
CopyTo
(ProfilerRecorderSample*
dest
,
int
destSize
,
bool
reset
);
Parameters
Parameter
Description
dest
Pointer to the destination samples array.
destSize
Destination samples array size.
reset
Reset ProfilerRecorder.
Returns
int
Returns the count of ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_91352f299a59 | unity_docs | animation | What is `AnimationUtility.SetKeyLeftTangentMode` in Unity? Explain its purpose and usage. | AnimationUtility.SetKeyLeftTangentMode
Declaration
public static void
SetKeyLeftTangentMode
(
AnimationCurve
curve
,
int
index
,
AnimationUtility.TangentMode
tangentMode
);
Parameters
Parameter
Description
curve
The curve to modify.
index
Keyframe index.
tangentMode
Tangent mode.
Description
Chang... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_1724f442d80c_doc_8 | github | scripting | What does `ConvertToLinearColorspace` do in this Unity script? Explain its purpose and signature. | Convert the vertex colors to linear
Signature:
```csharp
public static List<Color> ConvertToLinearColorspace(List<Color32> srgb)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_3e6b5418d565 | unity_docs | math | What is `ClosestPointCommand.ctor` in Unity? Explain its purpose and usage. | ClosestPointCommand Constructor
Declaration
public
ClosestPointCommand
(
Vector3
point
,
int
colliderInstanceID
,
Vector3
position
,
Quaternion
rotation
,
Vector3
scale
);
Parameters
Parameter
Description
point
Location you want to find the closest point to.
colliderInstanceID
The ID of the Coll... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e15a524bcc6e | unity_docs | scripting | What is `UIElements.UxmlAttributeNames.ctor` in Unity? Explain its purpose and usage. | UxmlAttributeNames Constructor
Declaration
public
UxmlAttributeNames
(string
fieldName
,
string
uxmlName
,
Type
typeReference
,
params string[]
obsoleteNames
);
Parameters
Parameter
Description
fieldName
The field name of the UXML attribute.
uxmlName
The type reference of the UXML attribute.
typeRefere... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d02ca0bf5abd | unity_docs | scripting | Show me a Unity code example for 'Use Mesh API to create a radial progress indicator'. | eates in this
GitHub repository
.
## Create the radial progress indicator and its custom mesh
Create a C# script to define the RadialProgress class, and expose the control to UXML and UI Builder.
Create a Unity project with any template.
Create a folder named
radial-progress
to store your files.
In the
radial-progres... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e6e46e442a35 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.RGBA_ASTC4X4_UNorm` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.RGBA_ASTC4X4_UNorm
Description
A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2143f84ff832 | unity_docs | scripting | What is `Rendering.SubMeshDescriptor.topology` in Unity? Explain its purpose and usage. | SubMeshDescriptor.topology
public
MeshTopology
topology
;
Description
Face topology of this sub-mesh.
The most common topology for meshes is
MeshTopology.Triangles
.
Additional resources:
Mesh.SetSubMesh
,
Mesh.GetSubMesh
,
Mesh.SetIndexBufferParams
,
Mesh.SetIndexBufferData
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e0aa155074f5 | unity_docs | audio | Show me a Unity C# example demonstrating `AudioSource.time`. | ying will update the playback position, but it will only take effect once playback begins.
Be aware that:
On a compressed audio track, the reported playback position does not necessarily reflect the exact time in the track.
Compressed audio is stored in packets, and the size of these packets depends on the compressio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_457a82d3125f | unity_docs | scripting | What is `QualitySettings.terrainQualityOverrides` in Unity? Explain its purpose and usage. | QualitySettings.terrainQualityOverrides
public static
TerrainQualityOverrides
terrainQualityOverrides
;
Description
Controls which fields should have their values overriden in active Terrains.
Set the value to a combination of
TerrainQualityOverrides
values. The default value is
TerrainQualityOverrides.No... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9264f0afa6b3 | unity_docs | physics | In Unity's 'Spring Joint component reference', what is 'Properties' and how does it work? | Property:
Function:
Connected Body
The Rigidbody object that the object with the spring joint is connected to. If no object is assigned then the spring is connected to a fixed point in space.
You can use connected bodies to create chains of multiple Hinge Joints. Add a joint to each link in the chain, and attach the ne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_49c634654460 | unity_docs | scripting | Explain 'Bind to nested properties' in Unity. | Version
: 2021.3+
This example demonstrates how to use the
binding-path
attribute of a BindableElement in UXML to bind fields to nested properties of a SerializedObject.
## Example overview
This example creates a custom Inspector UI with the following:
Two fields that bind to a
GameObject
’s name and the scale of a U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2549f89cd375 | unity_docs | rendering | Give me an overview of the `SketchUpImporter` class in Unity. | SketchUpImporter
class in
UnityEditor
/
Inherits from:
ModelImporter
Description
Derives from AssetImporter to handle importing of SketchUp files.
From the SketchUpImporter, you can access certain properties that are extracted from the SketchUp file.
The following is an example of showing the geo coordinate ex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8763f486b7c6 | unity_docs | scripting | What is `SystemInfo.graphicsDeviceID` in Unity? Explain its purpose and usage. | SystemInfo.graphicsDeviceID
public static int
graphicsDeviceID
;
Description
The identifier code of the graphics device (Read Only).
This is the PCI device ID of the user's graphics card. Together with
SystemInfo.graphicsDeviceVendorID
,
this number uniquely identifies a particular graphics card model. The num... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6bb6a30ad727 | unity_docs | scripting | What is `Accessibility.AccessibilityHierarchy.RefreshNodeFrames` in Unity? Explain its purpose and usage. | AccessibilityHierarchy.RefreshNodeFrames
Declaration
public void
RefreshNodeFrames
();
Description
Refreshes all the node frames (i.e. the screen elements' positions) for the hierarchy.
Calling this method sends a notification to the operating system that the layout has changed, by
calling
IAccessibilityN... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c3e4530ff128 | unity_docs | editor | What is `Android.AndroidProjectFiles.SetFileContents` in Unity? Explain its purpose and usage. | AndroidProjectFiles.SetFileContents
Declaration
public void
SetFileContents
(string
path
,
byte[]
contents
);
Parameters
Parameter
Description
path
The file to write to. This path is relative to the Gradle project path.
contents
Byte array contents.
Description
Sets the content of a new file to the spec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5f4f5095f84a | unity_docs | scripting | In Unity's 'Integrating Unity into Android applications', what is 'How it works' and how does it work? | You don’t need to do anything different when you build your Gradle project from Unity.
Every
Android Gradle project
that Unity generates has the following structure:
A library part in the unityLibrary module that you can integrate into any other Gradle project. This contains the Unity runtime and Player data.
A thin la... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_680b58afe071 | unity_docs | physics | Explain 'Multi-scene physics' in Unity. | You can use multiple physics Scenes to manage or work around complex physics contexts. In particular, you can create and set up independent Scenes with physics properties that are different from those of the main
scene
.
## Use case examples
You can instantiate multiple physics Scenes based on the main Scene in order... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c4e90ffb0d12 | unity_docs | rendering | What is `U2D.SpriteAtlasImporter.GetPlatformSettings` in Unity? Explain its purpose and usage. | SpriteAtlasImporter.GetPlatformSettings
Declaration
public
TextureImporterPlatformSettings
GetPlatformSettings
(string
buildTarget
);
Parameters
Parameter
Description
buildTarget
The name of the build target.
Description
Retrieves the platform settings of the build target you specify. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0c1614eb19ae | unity_docs | physics | In Unity's 'Time', what is 'Properties' and how does it work? | Property Description Fixed Timestep
A frame rate independent interval that dictates when physics calculations and FixedUpdate events are performed.
Maximum Allowed Timestep
A frame rate independent interval that caps the worst case scenario when frame rate is low. Physics calculations and FixedUpdate events will not be... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_059798a39559 | unity_docs | rendering | What is `Windows.WebCam.VideoCapture.GetUnsafePointerToVideoDeviceController` in Unity? Explain its purpose and usage. | VideoCapture.GetUnsafePointerToVideoDeviceController
Declaration
public IntPtr
GetUnsafePointerToVideoDeviceController
();
Returns
IntPtr
A native COM pointer to the IVideoDeviceController.
Description
Provides a COM pointer to the native IVideoDeviceController.
This method provides direct access to the n... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0cfb96d886c2 | unity_docs | editor | Show me a Unity C# example demonstrating `Actions.EditorAction.Finish`. | on
public void
Finish
(
Actions.EditorActionResult
result
);
Parameters
Parameter
Description
result
The state that the
EditorAction
was finished in.
Description
Finishes an
EditorAction
with a specific result.
Call this method to forcibly end an active
EditorAction
with a
EditorActionResult
. A com... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c22a5f6a007 | unity_docs | rendering | Show me a Unity C# example demonstrating `Networking.DownloadHandlerTexture.ctor`. | DownloadHandlerTexture Constructor
Declaration
public
DownloadHandlerTexture
();
Description
Default constructor.
Convenience constructor. Assumes the value of
readable
is
false
. The
Texture
returned by
texture
will not have its texture data accessible from script.
```csharp
using System.Collections;
u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9e3021eddbd | unity_docs | rendering | What is `Experimental.GlobalIllumination.LightDataGI.shape0` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
LightDataGI.shape0
public float
shape0
;
Description
The light's sphere radius for point and spot lights, or the width for rectangle lights. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d8a558679588 | unity_docs | scripting | What is `AndroidJNI.GetStaticCharField` in Unity? Explain its purpose and usage. | AndroidJNI.GetStaticCharField
Declaration
public static char
GetStaticCharField
(IntPtr
clazz
,
IntPtr
fieldID
);
Description
Returns the value of a static field of an object.
Additional resources:
Java Native Interface Specification (Oracle) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_502b4a157d59 | unity_docs | animation | What is `Animations.LookAtConstraint.GetSources` in Unity? Explain its purpose and usage. | LookAtConstraint.GetSources
Declaration
public void
GetSources
(List<ConstraintSource>
sources
);
Parameters
Parameter
Description
sources
The list of sources to be filled by the component.
Description
Gets the list of sources.
Throws ArgumentNullException, if the list of sources is null. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1e6c29682402 | unity_docs | networking | What is `Unity.Android.Gradle.Manifest.ProtectionLevel` in Unity? Explain its purpose and usage. | ProtectionLevel
enumeration
Description
Mirrors the
ProtectionLevel
enum.
For more information about the attribute, see Android's documentation:
ProtectionLevel attribute
Properties
Property
Description
Null
Attribute is not set and will not appear in the element.
Normal
Mirrors android:protectionLevel="... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5e06cfbb2ebf | unity_docs | editor | In Unity's 'Analyze built assets', what is 'SerializedFile format' and how does it work? | A SerializedFile is Unity’s serialized asset data format. It exists as either text, or binary format. You can use the
Asset Serialization Mode
Project Setting
to define whether Unity serializes assets in binary, text, or mixed mode (which uses the format that an asset was previously saved in, resulting in a mix of bina... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6994c0afe805 | unity_docs | editor | What is `ProfilerWindow.SelectedFrameIndexChanged` in Unity? Explain its purpose and usage. | ProfilerWindow.SelectedFrameIndexChanged
Parameters
Parameter
Description
value
The zero-based index of the frame currently selected in the Profiler Window. A long.
Description
Calls the methods in its invocation list when the Profiler window’s selected frame index changes.
The Profiler window’s selected frame... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_243fbaab3974 | unity_docs | scripting | What is `Profiling.HierarchyFrameDataView.HasItemChildren` in Unity? Explain its purpose and usage. | HierarchyFrameDataView.HasItemChildren
Declaration
public bool
HasItemChildren
(int
id
);
Parameters
Parameter
Description
id
Hierarchy item identifier.
Description
Checks whether the tree item has children. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff8217e73ac9 | unity_docs | editor | What is `BuildPlayerWithProfileOptions` in Unity? Explain its purpose and usage. | BuildPlayerWithProfileOptions
struct in
UnityEditor
Description
Provide various options to control the behavior of
BuildPipeline.BuildPlayer
when using a build profile.
Properties
Property
Description
assetBundleManifestPath
The path to a manifest file describing all the AssetBundles used in the build (optio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_df56291ecbde | unity_docs | rendering | What is `SceneView.AddCameraMode` in Unity? Explain its purpose and usage. | SceneView.AddCameraMode
Declaration
public static
SceneView.CameraMode
AddCameraMode
(string
name
,
string
section
);
Parameters
Parameter
Description
name
The name for the new mode.
section
The section in which the new mode will be added. This can be an existing or new section.
Returns
CameraMode
A... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6e3c2a8e86a4 | unity_docs | rendering | Explain 'Introduction to GPU instancing' in Unity. | GPU instancing is a
draw call optimization
method that uses a single draw call to render multiple GameObjects that use the same mesh and material. This speeds up rendering when you draw things that appear multiple times in a scene , for example, trees or bushes.
GPU instancing is a built-in functionality of GPUs. Each ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_098509c20d0e | unity_docs | rendering | Show me a Unity C# example demonstrating `LightTransport.IWorld`. | e data storage and acceleration structures for efficient lookups.
- Shared data structures across multiple integration passes.
Unity provides a concrete implementation of this interface:
- UnityEngine.LightTransport.RadeonRaysWorld for GPU-accelerated operations using OpenCL 1.2.
World objects are populated using
Inpu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_58bcd6dbd701 | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.QueryListBlockAttribute`. | QueryListBlockAttribute
class in
UnityEditor.Search
Description
This attribute can be used on a class deriving from
QueryListBlock
to display in query builder mode a special block that will propose a fixed set of values when clicked.
The following example shows how to display a custom list block for the
shader... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0bd6cec9d6b4 | unity_docs | rendering | Show me a Unity C# example demonstrating `Experimental.Rendering.GraphicsStateCollection.GetVariants`. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsStateCollection.GetVariants
Declaration
public void
GetVariants
(List<ShaderVariant>
results
);
Parameters
Parameter
Description
results
List of variants to populate.
Description
Populate given list with shader ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6922e4c840e2 | unity_docs | math | What is `Terrain.enableHeightmapRayTracing` in Unity? Explain its purpose and usage. | Terrain.enableHeightmapRayTracing
public bool
enableHeightmapRayTracing
;
Description
When this options is enabled, Terrain heightmap geometries will be added in acceleration structures used for Ray Tracing.
Use
RayTracingAccelerationStructure.CullInstances
function to add Terrain heightmap geometries to the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6529e325eed0 | unity_docs | physics | In Unity's '2D feature set', what is 'Package samples' and how does it work? | The following packages have package samples.
2D Animation
2D Pixel Perfect
2D SpriteShape
2D Tilemap Extras
These are visible in the Package Manager in the Samples sections when you select the package. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c11c3eb682de | unity_docs | rendering | What is `Rendering.RenderPipelineAsset.defaultTerrainMaterial` in Unity? Explain its purpose and usage. | RenderPipelineAsset.defaultTerrainMaterial
public
Material
defaultTerrainMaterial
;
Returns
Material
Default material.
Description
Return the default
Terrain
Material
for this pipeline.
This is used whenever a terrain object is created in the Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_aaadba37c68d | unity_docs | editor | Explain 'Asset Manager' in Unity. | com.unity.asset-manager-for-unity
## Description
Asset Manager for Unity is an In-Editor tool that allows you to easily browse, upload and import assets between the Unity Editor and Unity Cloud.
To open the Asset Manager for Unity window once the package is installed, go to the top left menu bar, select <b>Window > A... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4ec6cf2426d1 | unity_docs | rendering | In Unity's 'Virtual Texturing Profiler module', what is 'Module details pane' and how does it work? | When you click on the Virtual Texturing Profiler module, the details pane in the lower half of the window displays further detailed statistics. These statistics are also available via the
ProfilerRecorder API
and in the
Profiler Module Editor
so you can add them to a
custom Profiler module
.
The statistics in the detai... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_83b92a5b7efd | unity_docs | rendering | What is `Rendering.BatchDrawCommandType.ProceduralIndirect` in Unity? Explain its purpose and usage. | BatchDrawCommandType.ProceduralIndirect
Description
A procedural indirect draw command. Has a material but vertex data is procedurally fetched by the shader.
See
BatchDrawCommandProceduralIndirect
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_14d19ec20873 | github | scripting | Write a Unity C# MonoBehaviour script called Mono Behaviour Extensions | ```csharp
namespace AncientLightStudios.Nanoject.MonoBehaviours
{
using System;
using UnityEngine;
using UObject = UnityEngine.Object;
public static class MonoBehaviourExtensions
{
/// <summary>
/// Scans the current scene for MonoBehaviours that derive from the given type and decl... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_8a30c4ae60e5 | unity_docs | scripting | Explain 'Enable WebAssembly 2023' in Unity. | WebAssembly 2023 contains a set of useful features that can improve the runtime performance of your Web build. Use this guide to learn how to enable these features.
For more information about the features and prerequisites of WebAssembly 2023, refer to
WebAssembly 2023
.
## Steps to enable WebAssembly 2023
To enable ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b18a487e403 | unity_docs | scripting | Give me an overview of the `TextureImporter` class in Unity. | TextureImporter
class in
UnityEditor
/
Inherits from:
AssetImporter
Description
Texture importer lets you modify
Texture2D
import settings from editor scripts.
Settings of this class cover most of the settings exposed in
Texture Import Settings
. Some settings require you to use
TextureImporterSettings
. R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_301329c29595 | unity_docs | editor | What is `Device.SystemInfo.graphicsUVStartsAtTop` in Unity? Explain its purpose and usage. | SystemInfo.graphicsUVStartsAtTop
public static bool
graphicsUVStartsAtTop
;
Description
This has the same functionality as
SystemInfo.graphicsUVStartsAtTop
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_man_2f088d050407 | unity_docs | rendering | Explain 'Custom rendering in the Built-In Render Pipeline' in Unity. | Resources for using the CommandBuffer API to schedule and execute rendering commands at various points in the Built-in
Render Pipeline
. This allows you to customize and extend Unity’s rendering functionality Page Description
Command buffer fundamentals
Understand how a CommandBuffer object holds a list of rendering co... | 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.