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_84d097467d5c | unity_docs | scripting | Give me an overview of the `MeshFilter` class in Unity. | MeshFilter
class in
UnityEngine
/
Inherits from:
Component
/
Implemented in:
UnityEngine.CoreModule
Description
A class to access the
Mesh
of the
mesh filter
.
Use this with a procedural mesh interface. Additional resources:
Mesh
class.
Properties
Property
Description
mesh
Returns either a new mesh ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_568e4e5c90db | unity_docs | ui | What is `IMGUI.Controls.MultiColumnHeader.SortingButton` in Unity? Explain its purpose and usage. | MultiColumnHeader.SortingButton
Declaration
protected void
SortingButton
(
IMGUI.Controls.MultiColumnHeaderState.Column
column
,
Rect
headerRect
,
int
columnIndex
);
Parameters
Parameter
Description
column
Column data.
headerRect
Column header rect.
columnIndex
Column index.
Description
Provides t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4f64a04339af | unity_docs | scripting | What is `Unity.Properties.CreatePropertyAttribute` in Unity? Explain its purpose and usage. | CreatePropertyAttribute
class in
Unity.Properties
/
Inherits from:
Scripting.RequiredMemberAttribute
/
Implemented in:
UnityEngine.PropertiesModule
Description
Use this attribute to have a property generated for the member.
By default public fields will have properties generated.
Properties
Property
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_edc1afd5f45e | unity_docs | scripting | What is `Vector4.operator_add` in Unity? Explain its purpose and usage. | Vector4.operator +
public static
Vector4
operator +
(
Vector4
a
,
Vector4
b
);
Description
Adds two vectors.
Adds corresponding components together.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void Start()
{
print(new Vector4(1, 2, 3, 4) + new Vec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c00e8393702 | unity_docs | animation | What is `Animations.AnimationHumanStream.GetGoalLocalRotation` in Unity? Explain its purpose and usage. | AnimationHumanStream.GetGoalLocalRotation
Declaration
public
Quaternion
GetGoalLocalRotation
(
AvatarIKGoal
index
);
Parameters
Parameter
Description
index
The AvatarIKGoal that is queried.
Returns
Quaternion
The rotation of this IK goal.
Description
Returns the rotation of this IK goal relative t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d8b28eb2435b | unity_docs | rendering | In Unity's 'Leaf group reference', what is 'Distribution' and how does it work? | Property Function Group Seed
The randomizing seed for the leaf group. Change the seed to vary the group’s procedural generation. Note that this impacts the rotation of the leaves, but doesn’t change their distribution along the branch.
Frequency
The number of leaves. Note that the final number of leaves might not equal... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_789dda816043 | unity_docs | scripting | What is `EditorUtility.CollectDeepHierarchy` in Unity? Explain its purpose and usage. | EditorUtility.CollectDeepHierarchy
Declaration
public static Object[]
CollectDeepHierarchy
(Object[]
roots
);
Parameters
Parameter
Description
roots
Array of objects where the search will start.
Returns
Object[]
Array of objects heirarchically attached to the search array.
Description
Collect all obj... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d62617d3923 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.DeleteSelectionOperation` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.DeleteSelectionOperation
Declaration
protected void
DeleteSelectionOperation
(string
operationName
,
Experimental.GraphView.GraphView.AskUser
askUser
);
Parameters
Parameter
Description
operationName
Name of ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dda192618753 | unity_docs | scripting | What is `MonoBehaviour.Invoke` in Unity? Explain its purpose and usage. | MonoBehaviour.Invoke
Declaration
public void
Invoke
(string
methodName
,
float
time
);
Description
Invokes the method
methodName
in time seconds.
If time is set to 0 and Invoke is called before the first frame update, the method is invoked at the next Update cycle before
MonoBehaviour.Update
. In this cas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f595aa28642 | unity_docs | scripting | Give me an overview of the `HDRDisplayBitDepth` class in Unity. | HDRDisplayBitDepth
enumeration
Description
Options for the number of bits for HDR output in each color channel of swap chain buffers. Applicable when an HDR display is active.
The bit count also defines the method Unity uses to render content to the display.
Properties
Property
Description
BitDepth10
Unity use... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_037b81c33807 | unity_docs | scripting | In Unity's 'VR frame timing', what is 'Lowest possible latency' and how does it work? | Before Unity can submit the first rendering command that depends on the view transformation matrix, it must first get the view matrix from the VR SDK. To keep latency as low as possible, the VR SDK predicts the head transform twice per frame:
One prediction to render the current frame. This prediction corresponds with ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c0b28615ae77 | unity_docs | input | What is `Experimental.Rendering.GraphicsFormatUtility.GetLinearFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.GetLinearFormat
Declaration
public static
Experimental.Rendering.GraphicsFormat
GetLinearFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Description
Returns the equivalent linear format of a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_10039628de4f | unity_docs | scripting | What is `Vector3.x` in Unity? Explain its purpose and usage. | Vector3.x
public float
x
;
Description
X component of the vector.
Use this to modify or return the X component of a vector.
```csharp
// This script moves a GameObject to a new x position using Vector3.x.
// Attach this script to a GameObject
// Set your x position in the Inspectorusing UnityEngine;public clas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1fe34992ce15 | unity_docs | rendering | What is `Build.Reporting.CommonRoles.sharedAssets` in Unity? Explain its purpose and usage. | CommonRoles.sharedAssets
public static string
sharedAssets
;
Description
The
BuildFile.role
value of a file that contains asset objects which are shared between Scenes. Examples of asset objects are textures, models, and audio. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e0a1fa7b624 | unity_docs | rendering | What is `GUI.DrawTexture` in Unity? Explain its purpose and usage. | GUI.DrawTexture
Declaration
public static void
DrawTexture
(
Rect
position
,
Texture
image
);
Declaration
public static void
DrawTexture
(
Rect
position
,
Texture
image
,
ScaleMode
scaleMode
);
Declaration
public static void
DrawTexture
(
Rect
position
,
Texture
image
,
ScaleMode
scaleMo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_65541298aaa7 | unity_docs | rendering | Explain 'Support for proprietary model file formats' in Unity. | Unity supports a number of proprietary
model file
formats. You should not use these file formats in production; instead, export to the .fbx format wherever possible. For more information, see
Model file formats
.
Note:
This page contains guidance on using proprietary file formats that use FBX conversion. However, there... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c9bf3901a6c0 | unity_docs | input | What is `EventType.KeyUp` in Unity? Explain its purpose and usage. | EventType.KeyUp
Description
A keyboard key was released.
Use
Event.keyCode
to find which physical key was released. Note that depending on the system
and keyboard layout,
Event.character
might not contain any character for a key release event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f196e26cea12 | unity_docs | physics | What is `UIElements.ToggleButtonGroup.SetValueWithoutNotify` in Unity? Explain its purpose and usage. | ToggleButtonGroup.SetValueWithoutNotify
Declaration
public void
SetValueWithoutNotify
(
UIElements.ToggleButtonGroupState
newValue
);
Parameters
Parameter
Description
newValue
The new value.
Description
Sets a new value without triggering any change event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_36590f05739c | unity_docs | rendering | What is `Experimental.GlobalIllumination.LightDataGI.Init` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
LightDataGI.Init
Declaration
public void
Init
(ref
Experimental.GlobalIllumination.DirectionalLight
light
);
Declaration
public void
Init
(ref
Experimental.GlobalIllumination.PointLight
light
);
Declaration
public vo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_47082326ae5c | unity_docs | rendering | What is `SceneView.onCameraModeChanged` in Unity? Explain its purpose and usage. | SceneView.onCameraModeChanged
Parameters
Parameter
Description
value
The new camera mode.
Description
An event that is invoked when the selected
cameraMode
changes.
Add an event handler to get a call back when the Scene view camera mode changes. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e201db98769f | unity_docs | input | Give me an overview of the `Touch` class in Unity. | Touch
struct in
UnityEngine
/
Implemented in:
UnityEngine.InputLegacyModule
Description
Structure describing the status of a finger touching the screen.
Devices can track a number of different pieces of data about a touch on a touchscreen, including its
phase
of the touch lifecycle, its position and whether t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_992d2c8f5aab | unity_docs | rendering | In Unity's 'Introduction to surface shaders in the Built-In Render Pipeline', what is 'Surface Shaders and DirectX 11 HLSL syntax' and how does it work? | Currently some parts of surface shader compilation pipeline do not understand
DirectX 11
-specific HLSL syntax, so if you’re using HLSL features like StructuredBuffers, RWTextures and other non-DX9 syntax, you have to wrap it into a DX11-only preprocessor macro.
See
Platform Specific Differences and Using HLSL
pages fo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abd8a5f435df | unity_docs | xr | What is `Rendering.CommandBuffer.WaitAllAsyncReadbackRequests` in Unity? Explain its purpose and usage. | CommandBuffer.WaitAllAsyncReadbackRequests
Declaration
public void
WaitAllAsyncReadbackRequests
();
Description
Adds an "AsyncGPUReadback.WaitAllRequests" command to the CommandBuffer.
Additional resources:
AsyncGPUReadback.WaitAllRequests
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_430d72678859 | unity_docs | scripting | In Unity's 'Recommended Player settings to optimize your Web build', what is 'API Compatibility Level' and how does it work? | Use the
API Compatibility Level
setting to choose which .NET APIs you can use in your project. The recommended setting is.Net Standard 2.1
because this setting produces smaller builds and has cross-platform support. However, you need to check if your platform fully supports .Net Standard 2.1. For other options, refer t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1235948b9525 | unity_docs | audio | Explain 'Audio Reverb Filter' in Unity. | The
Audio Reverb Filter
takes an
Audio Clip
and distorts it to create a custom reverb effect.
## Properties
Property:
Function:
Reverb Preset
Custom reverb presets, select user to create your own customized reverbs.
Dry Level
Mix level of dry signal in output in mB. Ranges from –10000.0 to 0.0. Default is 0.
Room
Roo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7fd28758ee24 | unity_docs | scripting | What is `CharacterController.center` in Unity? Explain its purpose and usage. | CharacterController.center
public
Vector3
center
;
Description
The center of the character's capsule relative to the transform's position.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
CharacterController controller;
private void Start()
{
controller = GetComponent<CharacterControlle... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c66da3fb8c90 | unity_docs | scripting | Give me an overview of the `IntegratedSubsystemDescriptor` class in Unity. | IntegratedSubsystemDescriptor
class in
UnityEngine
/
Implemented in:
UnityEngine.SubsystemsModule
Implements interfaces:
ISubsystemDescriptor
Description
Information about a subsystem that can be queried before creating a subsystem instance.
Properties
Property
Description
id
A unique string that identifies... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9bb8678ed1d1 | github | scripting | Write a Unity C# script called Test Behaviour2 | ```csharp
using UnityEngine;
namespace E
{
[ExecuteAlways]
public class TestBehaviour2 : GlobalBehaviour
{
protected override bool IsActive => true;
protected override void OnAwake()
{
Debug.Log("OnAwake 2");
}
protected override void OnEnable()
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45f8b211c5a1 | unity_docs | scripting | What is `DefaultExecutionOrder` in Unity? Explain its purpose and usage. | DefaultExecutionOrder
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Specifies the script execution order for a MonoBehaviour-derived class relative to other MonoBehaviour-derived types.
The
DefaultExecutionOrder
attribute offers a way to specify the execution order between differen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce8981662c70 | unity_docs | rendering | What is `Rendering.BuiltinShaderDefine.UNITY_HARDWARE_TIER2` in Unity? Explain its purpose and usage. | BuiltinShaderDefine.UNITY_HARDWARE_TIER2
Description
UNITY_HARDWARE_TIER2 is set when compiling shaders for
GraphicsTier.Tier2
.
Note:
Graphics tiers are only supported in the Built-in Render Pipeline.
Unity generates tier shader variants if your shader source code includes
#pragma hardware_tier_variants
, or if... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88e87388974e | unity_docs | editor | What is `MouseCursor.Orbit` in Unity? Explain its purpose and usage. | MouseCursor.Orbit
Description
Cursor with an eye for orbit.
```csharp
//Create a folder and name it “Editor” if this doesn’t already exist
//Put this script in the folder//This script creates a new menu (“Examples”) and a menu item (“Mouse Cursor”). Click on this option. This displays a small window that has a colo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2fc3d1fb34d6 | unity_docs | scripting | What is `Gizmos.DrawWireCube` in Unity? Explain its purpose and usage. | Gizmos.DrawWireCube
Declaration
public static void
DrawWireCube
(
Vector3
center
,
Vector3
size
);
Description
Draw a wireframe box with
center
and
size
.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void OnDrawGizmosSelected()
{
// Draw a yellow c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e784ffb19919 | unity_docs | ui | Explain 'Brushes' in Unity. | When you apply a tool such as
Paint Texture or Smooth Height
to the Terrain , Unity uses a Brush, which is a ScriptableObject in the Terrain system. The Brush defines the tool’s shape and strength of influence.
## Built-in Brushes
Unity comes with a collection of built-in Brushes. They range from simple circles for q... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d4c9df22f2aa | unity_docs | scripting | What is `IMGUI.Controls.TreeView.customFoldoutYOffset` in Unity? Explain its purpose and usage. | TreeView.customFoldoutYOffset
protected float
customFoldoutYOffset
;
Description
Custom vertical offset of the foldout arrow.
When using custom row heights this value is useful for controling the vertical placement of the foldout arrow within the row Rect it is drawn in.
By default this value is 0. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4da116a87a84 | unity_docs | rendering | In Unity's 'Line Renderer properties reference', what is 'Materials' and how does it work? | The Materials section lists all the materials that this component uses.
Property Description Size
The number of elements in the material list.
If you decrease the number of elements, Unity deletes the elements at the end of the list. If you increase the number of elements, Unity adds new elements to the end of the list... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_83e1a94a7a94 | unity_docs | scripting | What is `AssetBundleManifest.GetAssetBundleHash` in Unity? Explain its purpose and usage. | AssetBundleManifest.GetAssetBundleHash
Declaration
public
Hash128
GetAssetBundleHash
(string
assetBundleName
);
Parameters
Parameter
Description
assetBundleName
Name of the asset bundle.
Returns
Hash128
The 128-bit hash for the asset bundle.
Description
Get the hash for the given AssetBundle. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9e3274d3a27b | unity_docs | scripting | What is `Undo.undoRedoPerformed` in Unity? Explain its purpose and usage. | Undo.undoRedoPerformed
public static
Undo.UndoRedoCallback
undoRedoPerformed
;
Description
Callback that is triggered after an undo or a redo was executed.
For more information on whether the callback was called from an undo or a redo, use
undoRedoEvent
instead.
```csharp
using UnityEditor;
using UnityEngi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_034a92f0441f | unity_docs | input | Explain 'Legacy Input' in Unity. | Unity has a built-in legacy input solution called the
Input Manager
. This is not the recommended workflow, as it is less flexible than the Input System Package, and will be removed in future versions of Unity.
Unless you are supporting a legacy project that uses the older “Input Manager”, you should use the
Input Syst... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4c5f0a62a7fe | unity_docs | math | In Unity's 'Using randomness', what is 'Random points within Circles or Spheres' and how does it work? | Random.insideUnitCircle
returns a randomly selected
point inside a circle
with a radius of 1 (Again you can multiply the result to get a random point within a circle of any size).
Random.insideUnitSphere
returns a randomly selected
point inside a sphere
with a radius of 1.
Random.onUnitSphere
returns a randomly selecte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ca0d825b364b | unity_docs | math | Show me a Unity code example for 'Optimize your Web build with WebAssembly 2023'. | ther WebAssembly 2023 features. For more information about the feature and how to enable it separately, refer to
WebAssembly language features
.
Note
: If you already have marshaling code between the JS and WebAssembly language boundaries that use 64-bit integers, adjust your code to the updated 64-bit marshaling mode ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d58df88c4433 | unity_docs | rendering | What is `QualitySettings.GetTextureMipmapLimitSettings` in Unity? Explain its purpose and usage. | QualitySettings.GetTextureMipmapLimitSettings
Declaration
public static
TextureMipmapLimitSettings
GetTextureMipmapLimitSettings
(string
groupName
);
Parameters
Parameter
Description
groupName
Name of the texture mipmap limit group to scan.
Returns
TextureMipmapLimitSettings
Structure containing the s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_678bb05a75a8 | unity_docs | scripting | In Unity's 'Structure of a Unity Xcode project', what is 'Data folder' and how does it work? | This folder contains your application’s serialized assets and .NET assemblies (.dll
or.dat
files) as either full code or metadata, depending on code stripping settings. The
machine.config
file sets up various .NET services such as security and WebRequest. Xcode refreshes the contents of this folder with every build. Yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_79c906ac757f | unity_docs | rendering | Explain 'Performance impact of shadow cascades' in Unity. | Increasing the number of shadow cascades increases the number of draw calls in the shadow rendering pass, which has a negative impact on rendering performance.
Reducing the number of shadow cascades lets you significantly reduce the number of shadow rendering draw calls.
A lower number of shadow cascades might reduce t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_98d50e92183f | unity_docs | physics | What is `FontRenderingMode` in Unity? Explain its purpose and usage. | FontRenderingMode
enumeration
Description
Font rendering mode constants for TrueTypeFontImporter.
Properties
Property
Description
Smooth
Use Anti-Aliased Font rendering. When using dynamic fonts, this is the mode which is fastest in rendering font textures.
HintedSmooth
Use Anti-Aliased Font rendering with hin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d587224d29c8 | github | scripting | Write a Unity C# UI script for Order Loader | ```csharp
using UnityEngine;
using System.Collections.Generic;
using System.IO;
namespace TapLive.Orders
{
/// <summary>
/// Loads orders from API or mock JSON file
/// </summary>
public class OrderLoader : MonoBehaviour
{
[Header("Settings")]
public bool useMockData = true;
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_1006013030cb | unity_docs | editor | What is `EditorGUI.MultiIntField` in Unity? Explain its purpose and usage. | EditorGUI.MultiIntField
Declaration
public static void
MultiIntField
(
Rect
position
,
GUIContent[]
subLabels
,
int[]
values
);
Parameters
Parameter
Description
position
Rectangle on the screen to use for the integer field.
subLabels
Array with small labels to show in front of each int field. There is r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_177459d1f070 | unity_docs | math | What is `Rendering.VisibleReflectionProbe.bounds` in Unity? Explain its purpose and usage. | VisibleReflectionProbe.bounds
public
Bounds
bounds
;
Description
The probe's world space axis-aligned bounding box in which the probe can contribute to reflections.
Additional resources:
CullingResults.visibleReflectionProbes
,
ReflectionProbe
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_23fa9a2d039e | unity_docs | scripting | Show me a Unity C# example demonstrating `PenStatus.Eraser`. | PenStatus.Eraser
Description
The pen is in erase mode.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void OnGUI()
{
Event m_Event = Event.current; if (m_Event.type == EventType.MouseDown)
{
if (m_Event.pointerType == PointerType.Pen) //Check if it's a pen event.
{
if (m_Event.penStatus =... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3dd8d1bdfd14 | unity_docs | rendering | What is `Search.SearchExpressionType` in Unity? Explain its purpose and usage. | SearchExpressionType
enumeration
Description
Type used to characterize an expression. An expression might have multiple types. For example a Set is also an iterable. A keyword is also considered a string value.
SearchExpressionType
can be used with
SearchExpressionEvaluatorAttribute
to describe the parameter li... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e35fc9256f61 | unity_docs | rendering | Explain 'Precalculating surface lighting with lightmaps' in Unity. | Resources for improving performance by setting up Unity to do complicated lighting calculations ahead of time, either by baking lightmaps into a build or creating lightmaps at runtime.
Page Description Global illumination
Learn about baking lightmaps before runtime, or creating lightmaps at runtime using Enlighten Real... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8fcdfbb7b3cc | unity_docs | physics | In Unity's 'Introduction to Mesh colliders', what is 'Concave and convex Mesh colliders' and how does it work? | Mesh colliders behave differently based on whether they are marked as concave or convex. By default, PhysX considers Mesh colliders to be concave.
In mathematics, “concave” and “convex” are terms used to describe shapes:
A convex shape only has lines that curve outward (for example, a ball). Any line segment connecting... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_965f71d74eb7 | unity_docs | math | What is `Texture2D.GenerateAtlas` in Unity? Explain its purpose and usage. | Texture2D.GenerateAtlas
Declaration
public static bool
GenerateAtlas
(Vector2[]
sizes
,
int
padding
,
int
atlasSize
,
List<Rect>
results
);
Parameters
Parameter
Description
sizes
An array of rectangle dimensions.
padding
Amount of padding to insert between adjacent rectangles in the atlas.
atlasSize
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81ca8495bf41 | unity_docs | editor | What is `Search.SearchSelection.GetEnumerator` in Unity? Explain its purpose and usage. | SearchSelection.GetEnumerator
Declaration
public IEnumerator<SearchItem>
GetEnumerator
();
Returns
IEnumerator<SearchItem>
Enumerator on the currently selected SearchItems.
Description
Gets an enumerator on the currently selected SearchItems.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEdit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c77affb99af3 | unity_docs | scripting | What is `Search.ItemSelectors.GetItemContentStyle` in Unity? Explain its purpose and usage. | ItemSelectors.GetItemContentStyle
Declaration
public static
GUIStyle
GetItemContentStyle
(
Search.SearchColumn
column
);
Parameters
Parameter
Description
column
Search column drawing the item.
Returns
GUIStyle
GUI style to render the item.
Description
Returns the default item GUI style used to dra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_51ea66f2536a | unity_docs | scripting | What is `StrippingLevel` in Unity? Explain its purpose and usage. | StrippingLevel
enumeration
Description
Managed code stripping level.
Properties
Property
Description
Disabled
Deprecated. See ManagedStrippingLevel.
StripAssemblies
Deprecated. See ManagedStrippingLevel.
StripByteCode
Deprecated. See ManagedStrippingLevel.
UseMicroMSCorlib
Deprecated. See ManagedStrippingLev... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c4763c27d53 | unity_docs | editor | What is `iOS.Xcode.PBXProject.GetSourcesBuildPhaseByTarget` in Unity? Explain its purpose and usage. | PBXProject.GetSourcesBuildPhaseByTarget
Declaration
public string
GetSourcesBuildPhaseByTarget
(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 it do... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7b794dde2fe | unity_docs | editor | What is `VersionControl.Provider.SubmitIsValid` in Unity? Explain its purpose and usage. | Provider.SubmitIsValid
Declaration
public static bool
SubmitIsValid
(
VersionControl.ChangeSet
changeset
,
VersionControl.AssetList
assets
);
Parameters
Parameter
Description
changeset
The changeset to submit.
assets
The asset to submit.
Description
Returns true if submitting the assets is a valid op... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a646c3882c31 | unity_docs | audio | What is `Microphone.Start` in Unity? Explain its purpose and usage. | Microphone.Start
Declaration
public static
AudioClip
Start
(string
deviceName
,
bool
loop
,
int
lengthSec
,
int
frequency
);
Parameters
Parameter
Description
deviceName
The name of the device.
loop
Indicates whether the recording should continue recording if lengthSec is reached, and wrap around and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cbf8d6513ee0 | unity_docs | scripting | Show me a Unity C# example demonstrating `Color.magenta`. | Color.magenta
public static
Color
magenta
;
Description
Magenta. RGBA is (1, 0, 1, 1).
```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 attached).
//This script changes the Color of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2908c0f8409e | unity_docs | performance | What is `SystemInfo.renderingThreadingMode` in Unity? Explain its purpose and usage. | SystemInfo.renderingThreadingMode
public static
Rendering.RenderingThreadingMode
renderingThreadingMode
;
Description
Application's actual rendering threading mode (Read Only).
Rendering threading mode is decided during the Unity application startup, according to the combination of Player Settings
PlayerSett... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a71206975846 | unity_docs | ui | In Unity's 'Slider', what is 'Create a Slider' and how does it work? | You can create a Slider with UI Builder, UXML, or C#. The following C# example creates a Slider with a default value, low value, and high value, and sets the direction of the slider:
```
var slider = new Slider();
slider.value = 0.5f;
slider.lowValue = 0;
slider.highValue = 100;
slider.direction = SliderDirection.Horiz... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0927bfea899b | unity_docs | ui | In Unity's 'Launch and use the Search window', what is 'Search mechanisms' and how does it work? | Unity Search supports two search mechanisms:
Visual query builder
: Use the visual query builder to create complex queries that combine multiple search tokens. For details, refer to
Visual query builder
.
Textual search
: Enter a search query in the search field. For syntax and examples, refer to
Textual query referenc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8ff32c6e4558 | unity_docs | scripting | What is `Unity.Properties.PropertyVisitor.VisitProperty` in Unity? Explain its purpose and usage. | PropertyVisitor.VisitProperty
Declaration
protected void
VisitProperty
(Property<TContainer,TValue>
property
,
ref TContainer
container
,
ref TValue
value
);
Parameters
Parameter
Description
property
The property providing access to the value.
container
The container being visited.
value
The value bein... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_016ef127b63e | unity_docs | ui | In Unity's 'Introduction to scripting back ends', what is 'Platform support' and how does it work? | Mono is supported on the following platforms:
Windows x86/x64/Arm64
OSX x64/Arm64
Linux x64
Android Armv7
IL2CPP is supported on all platforms.
Any platform not mentioned in the previous list of Mono-supporting platforms is IL2CPP-only. On platforms that support both back ends, Mono is the default.
Note
: Scripting bac... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cc27416cad52 | unity_docs | editor | What are the parameters of `EditorGUI.GradientField` in Unity? | Returns Gradient The gradient edited by the user. Description Makes a field for editing a Gradient . ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;public class EditorGUIGradientField : EditorWindow
{
Gradient gradient = new Gradient(); [MenuItem("Examp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7cbb63d8ea69 | unity_docs | rendering | In Unity's 'Asset packs in Unity', what is 'Generated asset packs' and how does it work? | Asset packs have
download size limits
. To account for this, Unity changes how it generates asset packs depending on the size of your additional assets:
If the additional assets take less than 1.5GB of storage, Unity packs everything into a single asset pack that uses the
install-time
delivery mode
and is called
UnityD... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_99b3525ec3a4 | unity_docs | rendering | What is `AssetImporters.MaterialDescription.GetTexturePropertyNames` in Unity? Explain its purpose and usage. | MaterialDescription.GetTexturePropertyNames
Declaration
public void
GetTexturePropertyNames
(List<string>
names
);
Parameters
Parameter
Description
names
The list of retrieved property names.
Description
Retrieves the property names of type TextureDescription for this material. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb0e2a09ab66 | unity_docs | scripting | What is `SpriteMaskInteraction.None` in Unity? Explain its purpose and usage. | SpriteMaskInteraction.None
Description
The sprite will not interact with the masking system.
This is the default interaction mode for sprites, and all existing sprites will have this value. If the sprite is expected to show some interaction with masks, then
SpriteMaskInteraction.VisibleOutsideMask
and SpriteMaskI... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_28e17896c66b | unity_docs | scripting | What is `Events.PersistentListenerMode` in Unity? Explain its purpose and usage. | PersistentListenerMode
enumeration
Description
The mode that a listener is operating in.
Properties
Property
Description
EventDefined
The listener will use the function binding specified by the event.
Void
The listener will bind to zero argument functions.
Object
The listener will bind to one argument Object ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_53d4aece1315 | unity_docs | rendering | Show me a Unity C# example demonstrating `EditorUtility.CompressTexture`. | owing formats are supported if the texture to compress uses non-power of two (NPOT) dimensions and has a mipmap:
Crunch formats
BC4
BC5
ASTC formats
The texture is left unchanged if Unity is unable to compress it.
If you want to do texture compression in-game, use
Texture2D.Compress
function, which
will use fast... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_22b94f5f3300 | unity_docs | math | What is `Mesh.triangles` in Unity? Explain its purpose and usage. | Mesh.triangles
public int[]
triangles
;
Description
An array containing all triangles in the Mesh.
The array is a list of triangles that contains indices into the vertex array. The size of the triangle array must always be a multiple of 3.
Vertices can be shared by simply indexing into the same vertex.
If the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88bf50b28df7 | unity_docs | animation | What is `HumanTrait` in Unity? Explain its purpose and usage. | HumanTrait
class in
UnityEngine
/
Implemented in:
UnityEngine.AnimationModule
Description
Details of all the human bone and muscle types defined by Mecanim.
Static Properties
Property
Description
BoneCount
The number of human bone types defined by Mecanim.
BoneName
Array of the names of all human bone types... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_862d10f34ccd | unity_docs | rendering | Explain 'Introduction to AssetBundles' in Unity. | An AssetBundle is an archive file that you can use to group together assets to create downloadable content (DLC), or reduce the initial installation size of your application. You can also use AssetBundles to load optimized platform-specific assets, or lower memory usage at runtime.
An AssetBundle can contain platform-s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ffafd03ea95d | unity_docs | editor | What is `EditorGUILayout.EndToggleGroup` in Unity? Explain its purpose and usage. | EditorGUILayout.EndToggleGroup
Declaration
public static void
EndToggleGroup
();
Description
Close a group started with
BeginToggleGroup
.
Additional resources:
BeginToggleGroup
Align position/rotation/scale of the selected GameObjects.
```csharp
// Simple script that lets you align GameObjects
// position/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5742a77ac98 | unity_docs | physics | What is `Rigidbody2D.useFullKinematicContacts` in Unity? Explain its purpose and usage. | Rigidbody2D.useFullKinematicContacts
public bool
useFullKinematicContacts
;
Description
Should kinematic/kinematic and kinematic/static collisions be allowed?
By default, colliders attached to a pair of
Rigidbody2D
that are either both set to be kinematic or kinematic and static will not collide with each oth... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_064fc98b1926 | unity_docs | performance | What is `Unity.Profiling.ProfilerRecorder.Reset` in Unity? Explain its purpose and usage. | ProfilerRecorder.Reset
Declaration
public void
Reset
();
Description
Stops data collection and clears collected samples.
Sets
Count
to 0 and
WrappedAround
to false and stops collection.
```csharp
using Unity.Profiling;
using UnityEngine;public class ExampleScript : MonoBehaviour
{
ProfilerRecorder recorde... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dfe553208070 | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.GetBuildPropertyForAnyConfig` in Unity? | Returns string The specified build property value. Description Gets a build property value for the given name in all the build configurations for the specified target(s). If a property has multiple values, those are delimited by a space. Values for names LIBRARY_SEARCH_PATHS and FRAMEWORK_SEARCH_PATHS are quoted if the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9fd326afa6e5 | unity_docs | animation | What is `Animations.BoundProperty.operator_eq` in Unity? Explain its purpose and usage. | BoundProperty.operator ==
public static bool
operator ==
(
Animations.BoundProperty
lhs
,
Animations.BoundProperty
rhs
);
Parameters
Parameter
Description
lhs
A BoundProperty object.
rhs
Another BoundProperty object.
Description
BoundProperty objects are equal if they refer to the same property. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f522b91ce703_doc_9 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Represents an object which can receive ten arguments as part of its initialization process.-derived classes that implement this interface can be instantiated with their dependency using the function.-derived classes that implement this interface can be added to a with their dependency using the function.If the class a... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_44737bafc930 | unity_docs | editor | What is `AssetDatabase.GetUnusedAssetBundleNames` in Unity? Explain its purpose and usage. | AssetDatabase.GetUnusedAssetBundleNames
Declaration
public static string[]
GetUnusedAssetBundleNames
();
Returns
string[]
Returns any unused AssetBundle names in the Asset Database.
Description
Obtains any unused AssetBundle names in the Asset Database.
```csharp
using System.Linq;
using UnityEngine;
usin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ed0aed8e0aa4 | unity_docs | animation | What is `Animations.AnimatorJobExtensions.BindCustomStreamProperty` in Unity? Explain its purpose and usage. | AnimatorJobExtensions.BindCustomStreamProperty
Declaration
public static
Animations.PropertyStreamHandle
BindCustomStreamProperty
(
Animator
animator
,
string
property
,
Animations.CustomStreamPropertyType
type
);
Parameters
Parameter
Description
animator
The
Animator
instance that calls this method... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_25852bbebe29 | unity_docs | rendering | Give me an overview of the `ImageEffectAllowedInSceneView` class in Unity. | ImageEffectAllowedInSceneView
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Any Image Effect with this attribute can be rendered into the Scene view camera.
If you wish your image effect to be applied to the Scene view camera add this attribute. The effect will be applied in the same... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dac6e5d01349 | unity_docs | scripting | Show me a Unity C# example demonstrating `MonoBehaviour.didStart`. | MonoBehaviour.didStart
public bool
didStart
;
Description
Returns a boolean value which represents if Start was called.
```csharp
using UnityEngine;public class NewBehaviourScript : MonoBehaviour
{
void Awake()
{
// Awake gets called before Start, therefore will print 'false'.
Debug.Log(this.didStart);
} ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1a47cf516c37 | unity_docs | networking | Explain 'Lobby' in Unity. | com.unity.services.lobby
## Description
Enable players to find, create, and join lobbies with Lobby. Add Lobby to your multiplayer game to empower players to create the gaming experiences they want. Features include Quick Join, Public Lobby, and Private Match to allow flexibility in how players want to game with each... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f66fc474d442 | unity_docs | scripting | In Unity's 'Integrating Unity into Android applications', what is 'IUnityPlayerLifecycleEvents' and how does it work? | IUnityPlayerLifecycleEvents provides a way to interact with two important lifecycle events of the Unity Player:
Unload
- The application calls
IUnityPlayerLifecycleEvents.onUnityPlayerUnloaded when Application.Unload or UnityPlayer.unload()
unloads the Unity Player. This puts the Unity Player in a paused state where it... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a373b1d09ece | unity_docs | scripting | Give me an overview of the `AsyncInstantiateOperation` class in Unity. | AsyncInstantiateOperation
class in
UnityEngine
/
Inherits from:
AsyncOperation
/
Implemented in:
UnityEngine.CoreModule
Description
Asynchronous instantiate operation on UnityEngine.Object type.
The operation is used by Object.InstantiateAsync internally and usually wrapped by AsyncInstantiateOperation<T>.
P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_75de61407059 | unity_docs | scripting | What is `Color.black` in Unity? Explain its purpose and usage. | Color.black
public static
Color
black
;
Description
Solid black. RGBA is (0, 0, 0, 1).
```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 attached).
//This script changes the Color of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c161bf3970ee | unity_docs | rendering | In Unity's 'Trail Renderer component reference', what is 'Lighting' and how does it work? | The Lighting section contains properties that relate to lighting.
Property Description Cast Shadows
Specify if and how this Renderer casts shadows when a suitable Light shines on it.
This property corresponds to the
Renderer.shadowCastingMode
API.
The options are:
On
: This Renderer casts a shadow when a shadow-casting... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a34d9761be95 | unity_docs | scripting | What is `UIElements.BaseVerticalCollectionView.selectedIds` in Unity? Explain its purpose and usage. | BaseVerticalCollectionView.selectedIds
public IEnumerable<int>
selectedIds
;
Description
Returns the persistent IDs of selected items in the data source, regardless of whether they are collapsed or not. Always returns an enumerable, even if no item is selected, or a
single item is selected.
In a tree, if a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a866fd172ac5 | unity_docs | xr | In Unity's 'Develop for Meta Quest workflow', what is 'Packages' and how does it work? | Unity provides multiple packages that you can use to develop for Meta Quest devices. The route you choose to develop for Meta Quest depends on whether you’re also targeting other XR platforms.
Refer to the following table to understand when to use each of Unity’s Meta Quest-compatible packages:
Package Description VR
/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b85429b188c3 | unity_docs | scripting | Show me a Unity code example for 'Write and run coroutines'. | Unity, your options are:
The
job system
The .NET
async and await
and Unity’s custom Awaitable support
## Writing coroutines
Consider the task of gradually reducing an object’s alpha (opacity) value until it becomes invisible. For the fading effect to be visible, the opacity must reduce over a sequence of frames. If y... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3fa345750d8d | unity_docs | rendering | What is `PropertyName` in Unity? Explain its purpose and usage. | PropertyName
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Represents a string as an int for efficient lookup and comparison. Use this for common PropertyNames.
Internally stores just an int to represent the string. A PropertyName can be created from a string but can not be converted... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_671e3da4f49f | github | scripting | Write a Unity C# script called Animator State Machine Util SMB | ```csharp
using UnityEngine;
using System.Collections.Generic;
namespace AnimatorStateMachineLibrary
{
public class AnimatorStateMachineUtilSMB : StateMachineBehaviour
{
public override void OnStateEnter(Animator _animator, AnimatorStateInfo _stateInfo, int _layerIndex) {
IList<AnimatorStat... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_299cf20d5597 | unity_docs | editor | Show me a Unity code example for 'Dedicated Server AssetBundles'. | through scripting. Refer to the section on AssetBundle for more information on building AssetBundles in general.
To build an AssetBundle to undergo the same Dedicated Server optimizations as discussed for the Player, specify the subtarget field in the BuildAssetBundlesParameters struct to be
StandaloneBuildSubtarget.Se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e21cb9c766f7 | unity_docs | performance | What is `Profiling.HierarchyFrameDataView.GetItemMarkerID` in Unity? Explain its purpose and usage. | HierarchyFrameDataView.GetItemMarkerID
Declaration
public int
GetItemMarkerID
(int
id
);
Parameters
Parameter
Description
id
Hierarchy item identifier.
Description
Returns Profiler marker which uniquely identifies sample name.
The Profiler uses unique identifier for each marker created during profiling se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2c4145223c8c | unity_docs | scripting | What is `Search.PropertyDatabase.Store` in Unity? Explain its purpose and usage. | PropertyDatabase.Store
Declaration
public bool
Store
(string
documentId
,
string
propertyPath
,
object
value
);
Parameters
Parameter
Description
documentId
A document identifier.
propertyPath
A property path or name.
value
The value of the property.
Returns
bool
True if the store operation succeede... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8dce6ab9fcf7 | unity_docs | scripting | What is `FilterMode.Point` in Unity? Explain its purpose and usage. | FilterMode.Point
Description
Point filtering - texture pixels become blocky up close.
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 between Point, Bilinear and Trilinear... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f522b91ce703_doc_35 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Represents an object which can receive twelve or more arguments as part of its initialization process,with the twelfth one being an object of type . Type of the twelfth argument.
Signature:
```csharp
public interface ITwelfthArgument<TTwelfthArgument>
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_660d9f1f01fc | unity_docs | scripting | What is `Progress.Report` in Unity? Explain its purpose and usage. | Progress.Report
Declaration
public static void
Report
(int
id
,
float
progress
);
Declaration
public static void
Report
(int
id
,
float
progress
,
string
description
);
Declaration
public static void
Report
(int
id
,
int
currentStep
,
int
totalSteps
);
Declaration
public static void
Report
(int
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46618048b275 | unity_docs | editor | What is `TypeCache.TypeCollection.Enumerator` in Unity? Explain its purpose and usage. | Enumerator
struct in
UnityEditor
Description
Enumerates the elements of a
TypeCollection
.
Properties
Property
Description
Current
Gets the element at the current position of the enumerator.
Public Methods
Method
Description
Dispose
Releases all resources used by the Enumerator.
MoveNext
Advances the enu... | 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.