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_df83e1a297ff | unity_docs | editor | What is `Build.IFilterBuildAssemblies` in Unity? Explain its purpose and usage. | IFilterBuildAssemblies
interface in
UnityEditor.Build
Implements interfaces:
IOrderedCallback
Description
Implement this interface to receive a callback to filter assemblies away from the build.
For more information about build callbacks, refer to
Use build callbacks
.
Public Methods
Method
Description
OnFi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8593771349d7 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUI.BeginChangeCheck`. | Description
Starts a new code block to check for GUI changes.
Use this in combination with
EditorGUI.EndChangeCheck
to create a code block that checks if the GUI state changed for just the controls contained in that block.
This method is different from
GUI.changed
, which returns true for
any
changes to the G... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a8d5bf7df8c | unity_docs | animation | What is `UIElements.Experimental.ValueAnimation_1.Start` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ValueAnimation<T0>.Start
Declaration
public void
Start
();
Description
Starts the animation using this object's values. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8f75c6cb510b | unity_docs | rendering | In Unity's 'BlendOp command in ShaderLab reference', what is 'Parameters' and how does it work? | Parameter Value Function operation Add
Add source and destination together.
Sub
Subtract destination from source.
RevSub
Subtract source from destination.
Min
Use the smaller of source and destination.
Max
Use the larger of source and destination.
LogicalClear
Logical operation:
Clear (0)
(1)
LogicalSet
Logical operati... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_27c538f7c537 | unity_docs | xr | What is `Windows.WebCam.PhotoCapture.CaptureResultType` in Unity? Explain its purpose and usage. | CaptureResultType
enumeration
Description
Contains the result of the capture request.
More generic error types may be added at a later time.
Properties
Property
Description
Success
Specifies that the desired operation was successful.
UnknownError
Specifies that an unknown error occurred. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fcd87421bf6d | unity_docs | ui | In Unity's 'Collect revenue from Asset Store package sales', what is 'Set up a payout profile' and how does it work? | To set up your payout profile:
Log in to the
Unity ID
portal.
Open the
Asset Store Publisher Portal
Open the Payout tab. The following message appears:
Click the link to update your payout data. Your Unity ID AS Publisher page appears.
If you haven’t set up a payout profile yet, click the
Add profile
button.
If you hav... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1cc1c3440cd2 | unity_docs | rendering | Give me an overview of the `ShaderPrecisionModel` class in Unity. | ShaderPrecisionModel
enumeration
Description
Options for the shader precision model.
This enumeration allows you to change two things: the default sampler precision and the definition of
half
.
The default sampler precision is only relevant to samplers that don't explicitly declare a precision. For example,
sa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21d2b23f5097 | unity_docs | audio | Show me a Unity C# example demonstrating `AudioClip.length`. | AudioClip.length
public float
length
;
Description
The length of the audio clip in seconds. (Read Only)
```csharp
//Attach an AudioSource component to a GameObject along with this script.
//Click and drag or choose an Audio clip to the AudioClip field in the AudioSource.
//Click and drag or choose a different ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b38d9d2b7653 | unity_docs | scripting | What is `Unity.Collections.NativeFixedLengthAttribute` in Unity? Explain its purpose and usage. | NativeFixedLengthAttribute
class in
Unity.Collections
/
Implemented in:
UnityEngine.CoreModule
Description
Indicates that a native container has a size that will never change.
Properties
Property
Description
FixedLength
Represents the fixed number of elements in a native container.
Constructors
Constructor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_199a0645aa44 | unity_docs | scripting | What is `UpdatePrefabInstancesEventArgs.ctor` in Unity? Explain its purpose and usage. | UpdatePrefabInstancesEventArgs Constructor
Declaration
public
UpdatePrefabInstancesEventArgs
(
SceneManagement.Scene
scene
,
ReadOnly<int>
instanceIds
);
Parameters
Parameter
Description
scene
The scene containing all of the prefab instances that have been updated.
instanceIds
The instance ID for each ro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_affa196dd7ed | unity_docs | rendering | What are the parameters of `AssetImporters.AssetImportContext.GetArtifactFilePath` in Unity? | Returns string The path inside the Library folder from which you can read the content of the requested Artifact File. Description Returns the path of the Artifact file that was created by another importer, and adds a dependency to that file. This method must be used in conjunction with AssetImportContext.GetOutputArtif... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0bbf04b10634 | unity_docs | scripting | Explain 'Operator Subgraph asset' in Unity. | A Subgraph is an Asset that contains part of a Visual Effect Graph. A Subgraph appears as a single Node that you can use in another Visual Effect Graph or Subgraph. An Operator Subgraph is a Subgraph that specifically contains a set of Operators packaged together to use as an Operator.
This Asset only works when you in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_38b474388943 | unity_docs | scripting | Show me a Unity C# example demonstrating `TestTools.Coverage.ResetFor`. | Coverage.ResetFor
Declaration
public static void
ResetFor
(MethodBase
method
);
Parameters
Parameter
Description
method
The method.
Description
Resets the coverage data for the specified method.
```csharp
using UnityEngine;
using UnityEngine.TestTools;
using System.Reflection;
using System;// A simple tes... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1f5908803555 | unity_docs | scripting | What is `FilterMode` in Unity? Explain its purpose and usage. | FilterMode
enumeration
Description
Filtering mode for textures. Corresponds to the settings in a
texture inspector
.
Additional resources:
Texture.filterMode
,
texture assets
.
```csharp
//This script changes the filter mode of your Texture you attach when you press the space key in Play Mode. It switches betw... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5dfde9c5d743 | github | scripting | Write a Unity C# script called Color32Network Variable | ```csharp
// // /*===============================================================================
// // Copyright (C) 2025 PhantomsXR Ltd. All Rights Reserved.
// //
// // This file is part of the Phantom.XRMOD.NetcodeModule.Runtime.
// //
// // The XR-MOD cannot be copied, distributed, or made available to
// // thir... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_299eb796637e | unity_docs | scripting | Explain 'Serialization best practices' in Unity. | Apply the following coding practices and organizational principles to prevent errors and optimize serialization performance in your project.
## Thread safety
Most Unity APIs can only be called from the main thread. Don’t call Unity APIs from constructors and field initializers of
serializable types
because these run ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_00dc9df86c85 | unity_docs | scripting | What is `Quaternion.Index_operator` in Unity? Explain its purpose and usage. | Quaternion.this[int]
public float
this[int]
;
Description
Access the x, y, z, w components using [0], [1], [2], [3] respectively.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Quaternion p = new Quaternion();
p[3] = 0.5f; // the same as p.w = 0.5
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_37de93ef4bd3 | unity_docs | ui | Show me a Unity C# example demonstrating `GUIContent.none`. | GUIContent.none
public static
GUIContent
none
;
Description
Shorthand for empty content.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void OnGUI()
{
GUI.Button(new Rect(0, 0, 100, 20), GUIContent.none);
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cfc777668f99 | unity_docs | rendering | Show me a Unity code example for 'GLSL in Unity'. | re for the fragment program, with the FRAGMENT preprocessor define. So the way to separate vertex and fragment program parts in GLSL snippet is to surround them with
#ifdef VERTEX .. #endif
and
#ifdef FRAGMENT .. #endif
. Each GLSL snippet must contain both a vertex program and a fragment program.
Standard include file... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ccda7201f53 | unity_docs | audio | What is `Audio.AudioMixerPlayable` in Unity? Explain its purpose and usage. | AudioMixerPlayable
struct in
UnityEngine.Audio
/
Implemented in:
UnityEngine.AudioModule
Implements interfaces:
IPlayable
Description
An implementation of
IPlayable
that controls an audio mixer.
NOTE: You can use
PlayableExtensions
methods with AudioMixerPlayable objects. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35bfdfdee317 | unity_docs | math | What are the parameters of `Search.SearchUtils.FetchGameObjects` in Unity? | Returns GameObject[] The array of game objects in the scene. Description Utility function to fetch all the game objects in a particular scene. Use SearchUtils.FetchGameObjects to create a custom SearchProvider that is able to access current scene objects. ```csharp
static void OnEnable()
{
s_GameObjects = SearchUti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e5916f64d645 | unity_docs | rendering | Show me a Unity code example for 'Recommended Graphics settings to optimize your Web build'. | roject doesn’t use any of the shaders in the list, it’s best to remove them from the list because unused shaders can increase build times, file size and memory usage.
For more information, refer to
Graphics
.
## Edit the Always included shaders list via C
To change the
Always included shaders
list via script instead,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_33f6bcfe956e | unity_docs | physics | What is `ParticleSystemForceField.startRange` in Unity? Explain its purpose and usage. | ParticleSystemForceField.startRange
public float
startRange
;
Description
Setting a value greater than 0 creates a hollow Force Field shape. This will cause particles to not be affected by the Force Field when closer to the center of the volume than the startRange property.
Additional resources:
ParticleSyste... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1d27c4e554c2 | unity_docs | scripting | What is `Vector3.operator_eq` in Unity? Explain its purpose and usage. | Vector3.operator ==
public static bool
operator ==
(
Vector3
lhs
,
Vector3
rhs
);
Description
Returns true if two vectors are approximately equal.
To allow for floating point inaccuracies, the two vectors are considered equal if the magnitude of their difference is less than 1e-5.
Additional resources:
Eq... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8b246f295bce_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | This is a null instance used (temporarily or permanently)when no ConfigData is needed.
Signature:
```csharp
public class NullConfigData : BaseConfigData
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4ee68d3cf020 | unity_docs | scripting | What is `UIElements.UxmlColorAttributeDescription` in Unity? Explain its purpose and usage. | UxmlColorAttributeDescription
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.TypedUxmlAttributeDescription_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
Describes a UXML attribute representing a
Color
as a
string
.
Properties
Property
Description
defaultValueAsString
The... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6fdfd2824f31 | unity_docs | editor | What is `EditorTools.EditorToolContext.GetAdditionalToolTypes` in Unity? Explain its purpose and usage. | EditorToolContext.GetAdditionalToolTypes
Declaration
public IEnumerable<Type>
GetAdditionalToolTypes
();
Returns
IEnumerable<Type>
A collection of
EditorTool
types.
Description
Get an additional collection of tools to display in the same category as the built-in transform tools.
Implementation of this m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c94b05c72b1b | unity_docs | math | What is `Rendering.RayTracingGeometryInstanceConfig.accelerationStructureBuildFlagsOverride` in Unity? Explain its purpose and usage. | RayTracingGeometryInstanceConfig.accelerationStructureBuildFlagsOverride
public bool
accelerationStructureBuildFlagsOverride
;
Description
Whether to override the build flags specified when creating a
RayTracingAccelerationStructure
.
If you set this value to
true
, Unity uses
RayTracingGeometryInstanceConfi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a002fcb03fc7 | unity_docs | rendering | Explain 'Store light direction with Directional Mode' in Unity. | There are two
Directional Modes for lightmaps
:
Directional and Non-Directional
. Both modes are compatible with real-time lightmaps from Unity’s Enlighten Realtime
Global Illumination
system, and baked lightmaps from Unity’s Progressive
Lightmapper
. The default mode is Directional.
When you bake a Directional lightma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46429ac04569 | unity_docs | scripting | What is `UIElements.ContextualMenuPopulateEvent` in Unity? Explain its purpose and usage. | ContextualMenuPopulateEvent
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.MouseEventBase_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
The event sent when a contextual menu requires menu items.
The event trickles down and bubbles up.
Properties
Property
Description
menu
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_72cd0947588d | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.LimitVelocityOverLifetimeModule.limitZ`. | ParticleSystem.LimitVelocityOverLifetimeModule.limitZ
public
ParticleSystem.MinMaxCurve
limitZ
;
Description
Maximum velocity curve for the z-axis.
Additional resources:
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a3f794101d6 | unity_docs | xr | What is `AssetBundle.LoadAssetWithSubAssets` in Unity? Explain its purpose and usage. | AssetBundle.LoadAssetWithSubAssets
Declaration
public Object[]
LoadAssetWithSubAssets
(string
name
);
Declaration
public Object[]
LoadAssetWithSubAssets
(string
name
,
Type
type
);
Declaration
public T[]
LoadAssetWithSubAssets
(string
name
);
Parameters
Parameter
Description
name
Name of the Asset... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f40f9118877c | unity_docs | editor | What is `QualitySettings.GetAllRenderPipelineAssetsForPlatform` in Unity? Explain its purpose and usage. | QualitySettings.GetAllRenderPipelineAssetsForPlatform
Declaration
public static void
GetAllRenderPipelineAssetsForPlatform
(string
buildTargetGroupName
,
ref List<RenderPipelineAsset>
renderPipelineAssets
);
Parameters
Parameter
Description
buildTargetGroupName
The platform to obtain the Render Pipeline As... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_299003597014 | unity_docs | scripting | What is `AndroidJNI.GetCharField` in Unity? Explain its purpose and usage. | AndroidJNI.GetCharField
Declaration
public static char
GetCharField
(IntPtr
obj
,
IntPtr
fieldID
);
Description
Returns the value of an instance (nonstatic) 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_898d4da6fa59 | unity_docs | scripting | What is `GameObject.GetComponentCount` in Unity? Explain its purpose and usage. | GameObject.GetComponentCount
Declaration
public int
GetComponentCount
();
Returns
int
The number of components on the GameObject as an Integer value.
Description
Retrieves the total number of components currently attached to the GameObject.
You can use
GetComponentCount
to iterate through component ind... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_383d4c41a596 | unity_docs | scripting | Explain 'Edit prefab assets' in Unity. | To edit prefab assets, you can open them in an isolated editing mode which allows you to view and edit the contents of the prefab asset separately from any other GameObjects in the
scene
. Changes that you make in prefab editing mode affect all instances of that prefab.
## Open a prefab asset in prefab editing mode
Y... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cee11256c34c | unity_docs | math | Show me a Unity C# example demonstrating `Mathf.Atan`. | Mathf.Atan
Declaration
public static float
Atan
(float
f
);
Description
Returns the arc-tangent of
f
- the angle in radians whose tangent is
f
.
```csharp
using UnityEngine;public class ScriptExample : MonoBehaviour
{
void Start()
{
print(Mathf.Atan(0.5f));
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01e2d7e4d811 | unity_docs | editor | What is `AssetDatabase.TryGetAssetFolderInfo` in Unity? Explain its purpose and usage. | AssetDatabase.TryGetAssetFolderInfo
Declaration
public static bool
TryGetAssetFolderInfo
(string
path
,
out bool
rootFolder
,
out bool
immutable
);
Parameters
Parameter
Description
path
A project relative or absolute path to a file or a folder.
rootFolder
This value will be set to true if the given path ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ead0b8fc2399 | unity_docs | math | What is `Compass` in Unity? Explain its purpose and usage. | Compass
class in
UnityEngine
/
Implemented in:
UnityEngine.InputLegacyModule
Description
Interface into compass functionality.
Properties
Property
Description
enabled
Use to enable or disable compass. Note, that if you want Input.compass.trueHeading property to contain a valid value, you must also enable loc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f701449124ad | unity_docs | editor | What is `Android.AndroidProjectFilesModifier.OnModifyAndroidProjectFiles` in Unity? Explain its purpose and usage. | AndroidProjectFilesModifier.OnModifyAndroidProjectFiles
Declaration
public void
OnModifyAndroidProjectFiles
(
Android.AndroidProjectFiles
projectFiles
);
Description
A callback for modifying files in the Android Gradle project after Unity Editor creates it.
Unity invokes this callback after it creates the And... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_39144ff3909a | unity_docs | ui | What is `UIElements.BaseFieldMouseDragger.SetDragZone` in Unity? Explain its purpose and usage. | BaseFieldMouseDragger.SetDragZone
Declaration
public void
SetDragZone
(
UIElements.VisualElement
dragElement
);
Parameters
Parameter
Description
dragElement
The target of the drag operation.
Description
Sets the drag zone for the driven field.
Declaration
public void
SetDragZone
(
UIElements.VisualEl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6b945cbccb82_doc_3 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Calls the methods in its invocation list when the system gesture starts, which typically occurs whenthe user looks at their palm at eye level.
Signature:
```csharp
public UnityEvent systemGestureStarted
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_f6184be5a1a6 | unity_docs | rendering | What are the parameters of `LightTransport.IProbeIntegrator.IntegrateValidity` in Unity? | Returns Result Result indicating success or failure with detailed error information. Description Computes validity factors indicating the reliability of each probe position. This method evaluates how reliable each probe position is for lighting interpolation by analyzing the geometric environment around the probe. The ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c59bad8b0e53 | unity_docs | editor | What are the parameters of `PrefabUtility.GetCorrespondingObjectFromSource` in Unity? | Returns TObject The corresponding object or null. Description Retrieves the corresponding source prefab asset object of a given GameObject or component, or null if it can't be found. Use this method to get the source prefab asset object the GameObject or component was instantiated from. For example, in the diagram show... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_06da8566cdbc | unity_docs | math | What is `Matrix4x4.transpose` in Unity? Explain its purpose and usage. | Matrix4x4.transpose
public
Matrix4x4
transpose
;
Description
Returns the transpose of this matrix (Read Only).
The transposed matrix is the one that has the Matrix4x4's columns exchanged with its rows.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
// You construct a Matrix4x4 by p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8b59e8d1d857 | unity_docs | rendering | Explain 'Shaders and the Ambient-Occlusion folder' in Unity. | Trees you create using Tree Editor must use the
Nature/Soft Occlusion Leaves and Nature/Soft Occlusion Bark
shaders
.
To use these shaders, you must place your trees in a folder named
Ambient-Occlusion
. The trees don’t render correctly if the shaders are in a different folder.
To place trees in the
Ambient-Occlusion
f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_14456fd9c66d | unity_docs | editor | What is `ConvertToPrefabInstanceSettings.logInfo` in Unity? Explain its purpose and usage. | ConvertToPrefabInstanceSettings.logInfo
public bool
logInfo
;
Description
Enables logging to the console with information about which objects were matched when converting a plain GameObject to a Prefab instance. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3c925eca06da | unity_docs | scripting | What is `VersionControl.IconOverlayType` in Unity? Explain its purpose and usage. | IconOverlayType
enumeration
Description
Type of icon overlay.
Additional resources:
IIconOverlayExtension
.
Properties
Property
Description
Project
Project window icon overlay.
Hierarchy
Hierarchy window icon overlay.
Other
Other icon overlay. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a43f4ba52ca4 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemCmp` in Unity? Explain its purpose and usage. | UnsafeUtility.MemCmp
Declaration
public static int
MemCmp
(void*
ptr1
,
void*
ptr2
,
long
size
);
Parameters
Parameter
Description
ptr1
A pointer to the first memory buffer. This buffer contains the first block of data to compare.
ptr2
A pointer to the second memory buffer to compare against the first. E... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4c624abf1e60 | github | scripting | Write a Unity C# script called Configurable Joint Extensions | ```csharp
using UnityEngine;
// https://gist.github.com/mstevenson/4958837
public static class ConfigurableJointExtensions
{
/// <summary>
/// Sets a joint's targetRotation to match a given local rotation.
/// The joint transform's local rotation must be cached on Start and passed into this method.
/... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
gh_1e3a3ea4d680 | github | scripting | Write a Unity C# UI script for Debug Menu Item Panel | ```csharp
//
// Copyright (c) Sandro Figo
//
using UnityEngine;
using UnityEngine.EventSystems;
#if ENABLE_INPUT_SYSTEM
using UnityEngine.InputSystem;
#endif
using UnityEngine.UI;
namespace DebugMenu
{
public class DebugMenuItemPanel : MonoBehaviour
{
public Image image;
private void Update(... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_0dc462d010d8 | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.Provider` in Unity? Explain its purpose and usage. | Provider
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseElement
Description
The C# definition of the
<provider>
Android Manifest element.
For more information about the element, see Android's documentation:
Provider element
Properties
Property
Description
Attr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1425b4816cc9 | unity_docs | scripting | What are the parameters of `AssetDatabase.GetAvailableImporters` in Unity? | Returns Type[] Returns an array of importer types that can handle the specified Asset. Description Gets the importer types associated with a given Asset path. ```csharp
using System;
using UnityEngine;
using UnityEditor;
using UnityEditor.AssetImporters;public class AssetDatabaseExamples : MonoBehaviour
{
[MenuItem... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_54b668a42f0a | unity_docs | scripting | What is `Vector2.Index_operator` in Unity? Explain its purpose and usage. | Vector2.this[int]
public float
this[int]
;
Description
Access the
x
or
y
component using [0] or [1] respectively.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Vector2 p = new Vector2();
p[1] = 5; // the same as p.y = 5
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_53749f558f6a | unity_docs | rendering | What is `RenderTextureDescriptor.stencilFormat` in Unity? Explain its purpose and usage. | RenderTextureDescriptor.stencilFormat
public
Experimental.Rendering.GraphicsFormat
stencilFormat
;
Description
The format of the stencil data that you can encapsulate within a RenderTexture.
Specifying this property creates a stencil element for the RenderTexture and sets its format.
This allows for stencil da... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_22c48f0f93d7_doc_1 | github | scripting | What does `Register` do in this Unity script? Explain its purpose and signature. | Register to have its update job scheduled every frame.Registering job provider objects is O(1).Registering an object more than once is a no-op.
Signature:
```csharp
public void Register(TDataProvider provider)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_d7c745847579 | unity_docs | physics | What is `AssetDatabase.IsOpenForEdit` in Unity? Explain its purpose and usage. | AssetDatabase.IsOpenForEdit
Declaration
public static bool
IsOpenForEdit
(
Object
assetObject
,
StatusQueryOptions
statusOptions
= StatusQueryOptions.UseCachedIfPossible);
Declaration
public static bool
IsOpenForEdit
(string
assetOrMetaFilePath
,
StatusQueryOptions
statusOptions
= StatusQueryOptions.U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c56acfcf06ae | unity_docs | editor | What is `Advertisements.AdvertisementSettings` in Unity? Explain its purpose and usage. | AdvertisementSettings
class in
UnityEditor.Advertisements
Description
Editor API for the Unity Services editor feature. Normally UnityAds is enabled from the Services window, but if writing your own editor extension, this API can be used.
Static Properties
Property
Description
enabled
Global boolean for enabli... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c3c629b63f7 | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.VersionControlObject.Refresh`. | when the cached state should be discarded and the new state should be retrieved from the underlying VCS.
Unity calls this method when it regains application focus. The user might have made some changes to the state of version-controlled files outside of Unity and so your
VersionControlObject
should retrieve the upda... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_613c776bf5bf | unity_docs | scripting | What is `Scripting.GarbageCollector.Mode` in Unity? Explain its purpose and usage. | Mode
enumeration
Description
Garbage collector operation mode.
Use
GarbageCollector.GCMode
to set garbage collector operation mode.
Additional resources:
GarbageCollector.Mode.Enabled
,
GarbageCollector.Mode.Disabled
.
Properties
Property
Description
Disabled
Disable garbage collector.
Enabled
Enable garb... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_be7af3a01557 | unity_docs | rendering | What is `Search.ShowDetailsOptions` in Unity? Explain its purpose and usage. | ShowDetailsOptions
enumeration
Description
Defines what details are shown in the preview inspector panel for the search view.
.
```
[SearchItemProvider]
internal static SearchProvider CreateProvider()
{
return new SearchProvider(id, name)
{
filterId = "hex:",
priority = 99999, // put example provider at a low... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_76ebb2e9af21 | unity_docs | scripting | What is `AndroidJNI.GetStaticBooleanField` in Unity? Explain its purpose and usage. | AndroidJNI.GetStaticBooleanField
Declaration
public static bool
GetStaticBooleanField
(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_61d1f92a95a0 | unity_docs | ui | What is `Editor.DiscardChanges` in Unity? Explain its purpose and usage. | Editor.DiscardChanges
Declaration
public void
DiscardChanges
();
Description
Discards unsaved changes to the contents of the editor.
Override DiscardChanges() to discard unsaved work when an editor is closed.
When you override this method, call the base implementation. Otherwise the
Editor.hasUnsavedChanges
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_43ec2806fa1d | unity_docs | animation | What is `Animations.AnimatorController.RemoveLayer` in Unity? Explain its purpose and usage. | AnimatorController.RemoveLayer
Declaration
public void
RemoveLayer
(int
index
);
Parameters
Parameter
Description
index
The index of the AnimatorLayer.
Description
Utility function to remove a layer from the controller.
This function pushes an Undo operation. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cf35532fac55 | unity_docs | rendering | In Unity's 'Size over Lifetime module reference', what is 'Properties' and how does it work? | For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to
Vary Particle System properties over time
.
Property Function Separate Axes
Control the particle size independently on each axis.
Size
A curve which defines how the particle’s size cha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_986df299dac3 | unity_docs | physics | What is `Rigidbody.AddForce` in Unity? Explain its purpose and usage. | Rigidbody.AddForce
Declaration
public void
AddForce
(
Vector3
force
,
ForceMode
mode
= ForceMode.Force);
Parameters
Parameter
Description
force
Force vector in world coordinates.
mode
Type of force to apply.
Description
Adds a force to the
Rigidbody
.
Force is applied continuously along the direc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f78f0e22cc8 | unity_docs | scripting | Show me a Unity C# example demonstrating `Color.yellow`. | Color.yellow
public static
Color
yellow
;
Description
Yellow. RGBA is (1, 0.92, 0.016, 1), but the color is nice to look at!
```csharp
//Attach this script to a GameObject with a Renderer (go to Create>3D Object and select one of the first 6 options to create a GameObject with a Renderer automatically attache... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_1724f442d80c_doc_3 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The current exportable SceneState of Open Brush.
Signature:
```csharp
public class SceneStatePayload
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_18f50f46f40a | unity_docs | editor | Explain 'Economy' in Unity. | com.unity.services.economy
## Description
Economy is a cloud service that enables game developers to create their in-game economy and gives them seamless purchases, currency conversion, player inventory management, and more. By using Economy, you have the power to integrate a fully-featured marketplace into your game... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5ecda695d744 | unity_docs | rendering | Show me a Unity C# example demonstrating `Matrix4x4.Ortho`. | ar plane is at
z=1
.
Note that depending on the graphics API used, projection matrices in shaders can follow different convention, for example the D3D-style
clip space has near plane at zero and far plane at one; and "reversed Z" projection has near plane at one and far plane at zero.
To calculate projection matrix va... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_318d30ab81ea | unity_docs | scripting | Show me a Unity C# example demonstrating `Mesh.bounds`. | Mesh.bounds
public
Bounds
bounds
;
Description
The bounding volume of the Mesh.
This is the axis-aligned bounding box of the mesh in its own space, so the bounds don't change if you change the Transform position, rotation or scale. The
Renderer.bounds
property is similar but returns the bounds in world spa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_646f63be1b5f | unity_docs | scripting | What is `Rendering.SphericalHarmonicsL2.operator_eq` in Unity? Explain its purpose and usage. | SphericalHarmonicsL2.operator ==
public static bool
operator ==
(
Rendering.SphericalHarmonicsL2
lhs
,
Rendering.SphericalHarmonicsL2
rhs
);
Description
Returns true if the spherical harmonics are equal. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_df12ed754744 | unity_docs | xr | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddAssetTagForFile`. | escription
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
fileGuid
The GUID of the file.
tag
The name of the asset tag.
Description
Adds an asset tag for the given file.
The asset tags identify resources that are downloaded via On Demand Resources functionality. A request fo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ffeaf68994be | unity_docs | math | What is `Transform.GetPositionAndRotation` in Unity? Explain its purpose and usage. | Transform.GetPositionAndRotation
Declaration
public void
GetPositionAndRotation
(out
Vector3
position
,
out
Quaternion
rotation
);
Description
Gets the position and rotation of the Transform component in world space.
When getting both the position and rotation of a transform, calling this method is more ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3076bb28b443 | unity_docs | scripting | What is `Search.StringView.GetEnumerator` in Unity? Explain its purpose and usage. | StringView.GetEnumerator
Declaration
public IEnumerator<char>
GetEnumerator
();
Returns
IEnumerator<char>
A character enumerator over this
StringView
.
Description
Gets a character enumerator over this
StringView
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_66c39df99dcf | unity_docs | editor | What is `EditorGUILayout.BeginFoldoutHeaderGroup` in Unity? Explain its purpose and usage. | EditorGUILayout.BeginFoldoutHeaderGroup
Declaration
public static bool
BeginFoldoutHeaderGroup
(bool
foldout
,
string
content
,
GUIStyle
style
= EditorStyles.foldoutHeader,
Action<Rect>
menuAction
,
GUIStyle
menuIcon
);
Declaration
public static bool
BeginFoldoutHeaderGroup
(bool
foldout
,
GUIContent... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c2302baabce | unity_docs | editor | What is `Build.Profile.BuildProfile.overrideGlobalScenes` in Unity? Explain its purpose and usage. | BuildProfile.overrideGlobalScenes
public bool
overrideGlobalScenes
;
Description
Overrides the global scene list.
When the value is true, the scenes specified in the build profile are used for building. When set to false, the global scenes are used. Additional resources:
BuildProfile.scenes
,
EditorBuildSetti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8fc629dc1bad | unity_docs | ui | In Unity's 'Scene template settings', what is 'Default Types settings' and how does it work? | The
Default Types
settings control whether Unity clones specific types of asset by default when it creates a new scene from a scene template.
To make Unity clone a specific type of asset by default, enable the Clone option (2) for that asset type in the list.
To make Unity reference a specific type of asset by default,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0bb7032789d4 | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.SearchService.ShowPicker`. | cker window.
Declaration
public static
Search.ISearchView
ShowPicker
(
Search.SearchViewState
viewState
);
Parameters
Parameter
Description
viewState
Search view state used to open the Search Picker window.
Returns
ISearchView
Creates a new search window.
Description
Open a Search Picker window.
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2df79e7c63e0 | unity_docs | scripting | In Unity's 'AssetBundle file format reference', what is 'Unity archive file format' and how does it work? | The Unity archive file format is a generic packaging format that can store any type of file, similar to a .zip file. Archive files are mounted into Unity’s
virtual file system
(VFS), which allows them to be accessed in a uniform way across different platforms.
Unity uses the archive format for AssetBundles, where archi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c5d1fa748146 | unity_docs | scripting | In Unity's 'Optimizing AssetBundle memory usage', what is 'Reduce TypeTree memory' and how does it work? | You can reduce the memory requirements of AssetBundle TypeTrees in the following ways:
Disable TypeTrees. This excludes TypeTree information from an AssetBundle, and makes the AssetBundles smaller. However, without TypeTree information, when you load older AssetBundles with a newer version of Unity or make script chang... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09e237a33a3c | unity_docs | scripting | What is `Playables.PlayableExtensions.SetTraversalMode` in Unity? Explain its purpose and usage. | PlayableExtensions.SetTraversalMode
Declaration
public static void
SetTraversalMode
(U
playable
,
Playables.PlayableTraversalMode
mode
);
Parameters
Parameter
Description
playable
The
Playable
used by this operation.
mode
The new traversal mode.
Description
Sets the propagation mode of PrepareFrame ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a076e78ccb81 | unity_docs | rendering | Give me an overview of the `ImageEffectUsesCommandBuffer` class in Unity. | ImageEffectUsesCommandBuffer
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Use this attribute when image effects are implemented using Command Buffers.
When you use this attribute, Unity renders the Scene into a RenderTexture instead of the actual target. Please note that Camera.forc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_64eeed5f70e3 | unity_docs | scripting | What is `Build.Content.SerializationInfo.serializationObject` in Unity? Explain its purpose and usage. | SerializationInfo.serializationObject
public
Build.Content.ObjectIdentifier
serializationObject
;
Description
Source object to be serialzied to disk.
Internal use only. See
SerializationInfo
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eb7ef01d86d1 | unity_docs | physics | What are the parameters of `PhysicsScene2D.CircleCast` in Unity? | Returns RaycastHit2D The cast results returned. Description Casts a circle against colliders in the PhysicsScene2D, returning the first intersection only. A "CircleCast" is conceptually like dragging a circle shape through the Scene in a particular direction. Any Collider2D making contact with the circle can be detect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a817793122da | unity_docs | scripting | What is `UIElements.DisplayStyle.Flex` in Unity? Explain its purpose and usage. | DisplayStyle.Flex
Description
The element displays normally.
The following example sets the display style of an element to
DisplayStyle.Flex
:
```
myElement.style.display = DisplayStyle.Flex;
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_aadaedd40d30 | unity_docs | physics | Explain 'Physics' in Unity. | To apply global settings for 3D physics, use the Physics settings (main menu:
Edit
>
Project Settings
, then select the Physics category).
Note:
To manage global settings for 2D physics, use the
Physics 2D
settings instead.
The Physics settings define limits on the accuracy of the 3D physical simulation. In most cases,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_39fae667d03f | unity_docs | rendering | Show me a Unity C# example demonstrating `Canvas.additionalShaderChannels`. | ShaderChannels
;
Description
Get or set the mask of additional shader channels to be used when creating the
Canvas
mesh.
The
Canvas
will always include Position, Color, and Uv0 shader channels when generating the mesh for a overlay
Canvas
and will also include Normal and Tangent for ScreenSpace.Camera and Wo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4f888c6355e9 | unity_docs | editor | What is `Handles.DrawWireCube` in Unity? Explain its purpose and usage. | Handles.DrawWireCube
Declaration
public static void
DrawWireCube
(
Vector3
center
,
Vector3
size
);
Description
Draw a wireframe box with
center
and
size
.
```csharp
using UnityEditor;
using UnityEngine;
using System.Collections;//this class should exist somewhere in your project
public class WireCubeEx... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2b0392d61d3b | unity_docs | scripting | What is `Rigidbody2D.rotation` in Unity? Explain its purpose and usage. | Rigidbody2D.rotation
public float
rotation
;
Description
The rotation of the rigidbody.
This is the rotation around the z-axis only.
```csharp
using UnityEngine;// Rotate rigidBody2D every frame. Start at 45 degrees.public class ExampleScript : MonoBehaviour
{
public Rigidbody2D rigidBody2D; void Start()
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_101d4d1be45f | unity_docs | math | What is `Mesh.AllocateWritableMeshData` in Unity? Explain its purpose and usage. | Mesh.AllocateWritableMeshData
Declaration
public static
Mesh.MeshDataArray
AllocateWritableMeshData
(int
meshCount
);
Parameters
Parameter
Description
meshCount
The amount of meshes that will be created.
Returns
MeshDataArray
Returns a
MeshDataArray
containing writeable
MeshData
structs. See
Mesh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_154fc56fb532 | unity_docs | input | In Unity's 'Input', what is 'The Input System Package' and how does it work? | Unity’s best support for input is provided by the
Input System Package
, which you install using the
Package Manager
.
This is the recommended solution for most projects. It provides an intuitive interface in the Editor to configure input, and provides a variety of workflows to suit your project and coding style.
Get s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a0d4b5cdf923 | unity_docs | scripting | What is `ParticleCollisionEvent.colliderComponent` in Unity? Explain its purpose and usage. | ParticleCollisionEvent.colliderComponent
public
Component
colliderComponent
;
Description
The
Collider
or
Collider2D
for the GameObject struck by the particles.
Cast the return value and test for null, if you expect both Collider and Collider2D components to be returned. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9b11265f9659 | unity_docs | editor | Explain 'Set up your environment for QNX' in Unity. | Set up your environment to develop with QNX.
To create a Unity application for QNX, you first need to set up your Unity project to support QNX. To support QNX, a Unity project requires certain environment variables and dependencies.
Note
: You must install the QNX platform package before you can set up your environment... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc8e99b8979e | unity_docs | rendering | What is `MaterialEditor.SetShader` in Unity? Explain its purpose and usage. | MaterialEditor.SetShader
Declaration
public void
SetShader
(
Shader
shader
);
Declaration
public void
SetShader
(
Shader
newShader
,
bool
registerUndo
);
Parameters
Parameter
Description
shader
Shader to set.
registerUndo
Should undo be registered.
Description
Set the shader of the material.
Aut... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_389fa4f04b25 | unity_docs | scripting | What is `Object.FindFirstObjectByType` in Unity? Explain its purpose and usage. | Object.FindFirstObjectByType
Declaration
public static T
FindFirstObjectByType
();
Declaration
public static T
FindFirstObjectByType
(
FindObjectsInactive
findObjectsInactive
);
Declaration
public static Object
FindFirstObjectByType
(Type
type
);
Declaration
public static Object
FindFirstObjectByType... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_495bd48bb02a | unity_docs | scripting | Show me a Unity C# example demonstrating `Tilemaps.Tilemap.GetTilesRangeCount`. | ftmost edge of the Tilemap. The method continues iterating in this pattern until it reaches the Cell at the ending position of the given range.
If the starting position's value is higher than the ending position's value, then the method begins with the Cell at the starting position but iterates in the opposite directio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_21903582b6ac | unity_docs | scripting | In Unity's 'Structure of a Unity Xcode project', what is 'Project targets' and how does it work? | Unity-iPhone
: A thin launcher part that runs the
UnityFramework
. It includes the MainApp folder and app representation data such as Launch Screens,.xib
files, icons, data, and
Info.plist
files. The
Unity-iPhone
target has a single dependency on the UnityFramework target.
UnityFramework
: The target that produces the
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_35f8fb3212ea_doc_3 | github | scripting | What does `OnDisable` do in this Unity script? Explain its purpose and signature. | Clean up: unsubscribe from theme, disable interactability, and reset visual state.
Signature:
```csharp
protected override void OnDisable()
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_60c7887cceb8 | unity_docs | xr | What is `Search.SearchFlags.Synchronous` in Unity? Explain its purpose and usage. | SearchFlags.Synchronous
Description
Search items are fetched synchronously. This can take a long time for some
SearchProvider
(like asset). Use at your own risk.
```csharp
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
public class SearchFlags_Synchronous
{
[MenuItem("Examples/SearchFlags/Synch... | 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.