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_30d2d9ed0068 | unity_docs | scripting | Show me a Unity C# example demonstrating `Actions.EditorAction`. | , an EditorAction temporarily overrides the currently active
EditorTool
and remains active until either cancelled or completed. The action can complete itself, or rely on user input to resolve. When the action is finished, the previously active
EditorTool
is re-enabled.
During an
EditorAction
, press
Enter
(macO... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ddc8d948a00 | unity_docs | xr | What is `Unity.IO.LowLevel.Unsafe.AsyncReadManagerRequestMetric.TotalTimeMicroseconds` in Unity? Explain its purpose and usage. | AsyncReadManagerRequestMetric.TotalTimeMicroseconds
public double
TotalTimeMicroseconds
;
Description
The total time in microseconds from the read request being added until its completion, or the time of metrics retrieval, depending whether the read has completed or not. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4904a0a69834 | unity_docs | scripting | Explain 'Verify the Unity Accelerator version' in Unity. | You can verify the Unity Accelerator version from a client machine accessing a remote Unity Accelerator instance and also from the server machine.
## Verify on a client machine
From the client, access the API agent health end point by visiting the following page from a browser:
http://[AcceleratorIP]:[AcceleratorPort... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d8880ddbee3b | github | scripting | Write a Unity C# MonoBehaviour script called Remove Objects With Tag | ```csharp
using UnityEngine;
/// <summary>
/// Removes all objects in a scene using a particular tag
/// </summary>
public class RemoveObjectsWithTag : MonoBehaviour
{
public void RemoveObjects(string tag)
{
GameObject[] taggedObjects = GameObject.FindGameObjectsWithTag(tag);
foreach (GameObj... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_ff00d474768c | unity_docs | editor | What is `GUIStyleState` in Unity? Explain its purpose and usage. | GUIStyleState
class in
UnityEngine
/
Implemented in:
UnityEngine.IMGUIModule
Description
Specialized values for the given states used by
GUIStyle
objects.
The GUIStyle contains all values for displaying GUI elements.
Properties
Property
Description
background
The background image used by GUI elements in t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1bdf1dd261fa | unity_docs | xr | What is `Experimental.GraphView.SearchWindowContext` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
SearchWindowContext
struct in
UnityEditor.Experimental.GraphView
Description
This structure includes parameters for configuring the search window.
Properties
Property
Description
requestedHeight
Requested height of the wind... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7b26c48b5ceb | unity_docs | rendering | Explain 'Material Inspector window reference' in Unity. | You can view and edit a Material asset in the Inspector window.
The Material Inspector makes it possible to do the following things:
Modify a Material or Material Variant’s Properties
Identify and change its relationships with other Materials and Material Variant
Copy and paste its Property settings
Associate it with a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b61439e38c77 | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.SearchTable`. | SearchTable
class in
UnityEditor.Search
Description
A search table configuration is used to define the columns when search results are displayed in table view.
See
DisplayMode.Table
.
```
static SearchTable CreateDecalsTableConfiguration()
{
var materialIcon = EditorGUIUtility.Load("Material Icon") as Texture;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ee3ec386c849 | unity_docs | editor | Explain 'Install Unity on offline computers' in Unity. | The Unity Download Assistant supports offline deployment.
## Before you begin
Make sure you’ve run the Download Assistant on an online computer. For more information, refer to
Install Unity using Download Assistant
. This process generates the installer files and the script that the offline computers require for the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_239da28db8ac | unity_docs | ui | In Unity's 'Click events', what is 'Examples' and how does it work? | The following example shows how to react to the ClickEvent on a colored visual element. When an element is clicked, its color will change to a new, random color.
To see the example in action, do the following:
Create a new C# script called ClickEventExampleWindow.
Copy the example code into the C# script.
Under
Window ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0691bfbf80a4 | unity_docs | math | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemCpyStride` in Unity? Explain its purpose and usage. | UnsafeUtility.MemCpyStride
Declaration
public static void
MemCpyStride
(void*
destination
,
int
destinationStride
,
void*
source
,
int
sourceStride
,
int
elementSize
,
int
count
);
Parameters
Parameter
Description
destination
A pointer to the start of the destination memory block. The memory block shoul... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ca817176efd | unity_docs | rendering | What is `Rendering.RenderTextureSubElement` in Unity? Explain its purpose and usage. | RenderTextureSubElement
enumeration
Description
Types of data that you can encapsulate within a render texture.
An enum that allows you to specify access to the different types of data that may be encapsulated within the RenderTexture. These are broadly aligned with the different types of surfaces that the underly... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_153360d28ece | unity_docs | rendering | What is `Renderer.receiveShadows` in Unity? Explain its purpose and usage. | Renderer.receiveShadows
public bool
receiveShadows
;
Description
Does this object receive shadows?
Usually objects should receive shadows, but turning this off can be useful for optimization purposes, in cases of when you know that no shadows will be needed on this particular object.
Note that receive shadows f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e88e41ee48ac | unity_docs | scripting | In Unity's 'Particle velocity', what is 'Details' and how does it work? | This effect is very useful for emitting particles from a moving object, such as dust clouds from a car, smoke from a rocket, steam from a steam train’s chimney, or any situation where the particles should initially be moving at a percentage of the speed of the object they appear to come from. This module only has an ef... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bc6bb865f715 | unity_docs | audio | In Unity's 'Search the Unity Asset Store', what is 'Types' and how does it work? | Filter
Search token
Query example Description Category
store: category=<category>
store: category=audio/music
Searches for music.
Platform
store: platform=<platform>
store: platform=standaloneosxuniversal
Searches for assets that support macOS. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e3334c063488 | github | scripting | Write a Unity C# script called Bishop | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bishop : Piece
{
public override bool[,] PossibleMoves()
{
bool[,] ret = new bool [8,8];
int i, j;
Piece p;
// UP - RIGHT
i = CurrentX + 1;
j = Curr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c5b326f2bc48 | unity_docs | scripting | In Unity's 'Rect Transform', what is 'Properties' and how does it work? | Property:
Function:
Pos (X, Y, Z)
Position of the rectangle's pivot point relative to the anchors. The pivot point is the location around which the rectangle rotates.
Width/Height
Width and height of the rectangle.
Left, Top, Right, Bottom
Positions of the rectangle's edges relative to their anchors. This can be though... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7ef555445023 | unity_docs | scripting | What is `Rendering.BatchDrawCommandProceduralIndirect.indirectArgsBufferHandle` in Unity? Explain its purpose and usage. | BatchDrawCommandProceduralIndirect.indirectArgsBufferHandle
public
GraphicsBufferHandle
indirectArgsBufferHandle
;
Description
GraphicsBufferHandle
of the
GraphicsBuffer
from which the indirect draw command will be read.
If indexBufferHandle is default then the data at indirectArgsBufferOffset in the refe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9e632fb01064 | unity_docs | scripting | Show me a Unity C# example demonstrating `Vector4.operator_add`. | 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_6f257e97ef02 | unity_docs | animation | What is `Animations.AnimationMixerPlayable` in Unity? Explain its purpose and usage. | AnimationMixerPlayable
struct in
UnityEngine.Animations
/
Implemented in:
UnityEngine.AnimationModule
Implements interfaces:
IPlayable
Description
An implementation of
IPlayable
that controls an animation mixer.
NOTE: You can use
PlayableExtensions
methods with AnimationMixerPlayable objects.
Static Prope... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b17d6b18e7ac | unity_docs | rendering | Show me a Unity C# example demonstrating `LightTransport.BufferSlice_1.UnsafeReinterpret`. | erhead is unacceptable.
Advanced scenarios where you need to bypass safety checks.
Custom type layouts that don't follow standard alignment rules.
Warning:
This method can lead to undefined behavior, memory corruption, or crashes if used incorrectly. Prefer SafeReinterpret unless you have specific performance requi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_50dc35551802 | unity_docs | rendering | In Unity's 'Include sprites in text', what is 'Create a sprite asset' and how does it work? | You create sprite assets from atlas textures. Although sprite assets and their source textures are separate entities, you must keep the source textures in the project after you’ve created the sprite assets.
To create a sprite asset:
Import the sprite atlas
.
Select the atlas and change the following texture options in ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aee9ec451fc1 | unity_docs | math | What is `PolygonCollider2D.GetPath` in Unity? Explain its purpose and usage. | PolygonCollider2D.GetPath
Declaration
public Vector2[]
GetPath
(int
index
);
Parameters
Parameter
Description
index
The index of the path to retrieve.
Returns
Vector2[]
An ordered array of the vertices (points) in the selected path.
Description
Gets a path from the Collider by its index.
A
path
is... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b815a33444a1 | unity_docs | scripting | Give me an overview of the `TextAsset` class in Unity. | TextAsset
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.CoreModule
Description
Represents a raw text or binary file asset.
You can use raw text files in your project as assets and get their contents through
this class. For more information, see
text
.
You can access the file as ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_43c2257434c0 | unity_docs | audio | What is `AudioEchoFilter.delay` in Unity? Explain its purpose and usage. | AudioEchoFilter.delay
public float
delay
;
Description
Echo delay in ms. 10 to 5000. Default = 500.
```csharp
using UnityEngine;[RequireComponent(typeof(AudioSource))]
[RequireComponent(typeof(AudioEchoFilter))]
public class Example : MonoBehaviour
{
// Set the delay on the chorus filter to the max working va... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c26ba7e41b3 | unity_docs | editor | What is `SceneManagement.StageUtility.GoToMainStage` in Unity? Explain its purpose and usage. | StageUtility.GoToMainStage
Declaration
public static void
GoToMainStage
();
Description
Navigate the Editor to the main stage.
This is equivalent to clicking the Scenes breadcrumb in the Scene view while in Prefab Mode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_995d7ba6f878 | unity_docs | scripting | What is `MonoBehaviour.OnMouseOver` in Unity? Explain its purpose and usage. | MonoBehaviour.OnMouseOver()
Description
Called every frame while the mouse is over the
Collider
.
A call to
OnMouseEnter
occurs on the first frame the mouse is over the object.
OnMouseOver is then called each frame until the mouse moves away, at which point
OnMouseExit
is called.
This event is sent to all scr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_61324bd5729a | unity_docs | rendering | In Unity's 'Control material variant properties', what is 'Override a parent property' and how does it work? | To override a parent property so the child material uses a different value, follow these steps:
Select the child material.
In the Inspector window, modify the property you want to override.
Unity displays a line to the left of the property to indicate that it’s an override.
To move the override further up the hierarchy... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_870ca501ede6 | unity_docs | ui | What is `Accessibility.AccessibilityNode.dismissed` in Unity? Explain its purpose and usage. | AccessibilityNode.dismissed
Description
Called when the user of the screen reader dismisses this node.
Return an appropriate
bool
value to indicate if the node was successfully dismissed.
On Android, subscribing to this event enables the Dismiss custom action, which is available in the TalkBack
local contex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_07ea0903d265 | unity_docs | rendering | Show me a Unity C# example demonstrating `Rendering.GraphicsSettings.TrySetCurrentRenderPipelineGlobalSettings`. | ly works at runtime. You can't use it in the Unity Editor. Calling it from the Editor results in an error log message and the method immediately returns false.
At build time, Unity inspects the
RenderPipelineGlobalSettings
and
RenderPipelineAsset
assigned in Quality settings to ensure the right resources are built.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9ae5148442d | unity_docs | rendering | What is `Search.CustomObjectIndexerAttribute.type` in Unity? Explain its purpose and usage. | CustomObjectIndexerAttribute.type
public Type
type
;
Description
Each time an object of a specific type is indexed, the registered function is called.
```csharp
[CustomObjectIndexer(typeof(Shader), version = 2)]
internal static void ShaderIndexing(CustomObjectIndexerTarget context, ObjectIndexer indexer)
{
if ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_339eb2d93a7b_doc_2 | github | scripting | What does `InitialJobData` do in this Unity script? Explain its purpose and signature. | Returns the job data for the first job run.Override this in child classes to use data other than in the first scheduled job run.
Signature:
```csharp
public virtual TData InitialJobData => default;
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_16e3baa2ff94 | unity_docs | rendering | What is `Renderer.renderingLayerMask` in Unity? Explain its purpose and usage. | Renderer.renderingLayerMask
public uint
renderingLayerMask
;
Description
Determines which rendering layer this renderer lives on, if you use a
scriptable render pipeline
.
For more information, refer to:
Rendering layers in URP
Rendering layers in HDRP
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1d9b0de9e176 | unity_docs | rendering | Explain 'Navigating the CPU Usage Profiler module' in Unity. | The CPU Usage Profiler module has some universal operations to make it easier to navigate between views.
## Focus on a selected sample
To focus on a selected sample, press the F key. If you’ve selected nothing, this shows the default zoom level.
When you change to the Hierarchy ,
Raw Hierarchy or Inverted Hierarchy
v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cf4f77bc9660 | unity_docs | scripting | What is `TerrainUtils.TerrainTileCoord` in Unity? Explain its purpose and usage. | TerrainTileCoord
struct in
UnityEngine.TerrainUtils
/
Implemented in:
UnityEngine.TerrainModule
Description
Specifies a set of 2D tile coordinates.
Properties
Property
Description
tileX
Tile X coordinate.
tileZ
Tile Z coordinate. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c6bdb72ebf30 | unity_docs | ui | In Unity's 'Bind with binding path in C# script', what is 'Bind with the binding path' and how does it work? | Create a custom Editor window in C# with a
TextField
. Set the binding path to the name property of a GameObject and make an explicit call to the
Bind()
method.
Create a project in Unity with any template.
In your
Project window
, create a folder named
bind-with-binding-path
folder to store your file.
In the
bind-with-... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e5e9d9e6cbc0 | unity_docs | scripting | In Unity's 'MultiColumnListView', what is 'Create a MultiColumnListView' and how does it work? | You can create a MultiColumnListView with UXML and C#. The following C# example creates a MultiColumnListView with two columns:
```
var multiColumnListView = new MultiColumnListView();
multiColumnListView.columns.Add(new Column { title = "Name", width = 20 });
multiColumnListView.columns.Add(new Column { title = "Power... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_385a0372f354 | unity_docs | editor | What is `UIElements.ListViewReorderMode` in Unity? Explain its purpose and usage. | ListViewReorderMode
enumeration
Description
Options to change the drag-and-drop mode for items in the ListView.
Using
Animated
will affect the layout of the ListView, by adding drag handles before every item.
Multiple item drag is only supported in the
Simple
mode.
Properties
Property
Description
Si... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7117b5fad158 | unity_docs | scripting | What is `Component.SendMessage` in Unity? Explain its purpose and usage. | Component.SendMessage
Declaration
public void
SendMessage
(string
methodName
);
Declaration
public void
SendMessage
(string
methodName
,
object
value
);
Declaration
public void
SendMessage
(string
methodName
,
object
value
,
SendMessageOptions
options
);
Declaration
public void
SendMessage
(strin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_987000cdcf04 | unity_docs | editor | Give me an overview of the `SelectionBaseAttribute` class in Unity. | SelectionBaseAttribute
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Add this attribute to a script class to mark its GameObject as a selection base object for Scene View picking.
In the Unity Scene View, when clicking to select objects, Unity will try to figure out the best object t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_70a7efb261c2 | unity_docs | scripting | What is `PlayerSettings.iOS.VisionOSManualProvisioningProfileID` in Unity? Explain its purpose and usage. | PlayerSettings.iOS.VisionOSManualProvisioningProfileID
public static string
VisionOSManualProvisioningProfileID
;
Description
A provisioning profile Universally Unique Identifier (UUID) that Xcode will use to build your visionOS app in Manual Signing mode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_78a5395ae204 | unity_docs | animation | What is `Playables.PlayableBinding` in Unity? Explain its purpose and usage. | PlayableBinding
struct in
UnityEngine.Playables
/
Implemented in:
UnityEngine.CoreModule
Description
Struct that holds information regarding an output of a PlayableAsset.
PlayableAssets specify the type of outputs it supports using PlayableBindings.
Do not create PlayableBinding objects directly. Use the provid... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f226037adf8 | unity_docs | scripting | What is `Pool.ObjectPool_1.Dispose` in Unity? Explain its purpose and usage. | ObjectPool<T0>.Dispose
Declaration
public void
Dispose
();
Description
Removes all pooled items and invokes the pool's action on destroy callback for each item in the pool.
The action on destroy callback is the delegate passed to the constructor as the optional
actionOnDestroy
parameter. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2b1a545bad49 | unity_docs | rendering | In Unity's 'Tessellation Surface Shader examples in the Built-In Render Pipeline', what is 'Tessellation & geometry shaders' and how does it work? | Surface Shaders have support for simple tessellation and displacement. When you write custom
Shader programs
, you can use the full set of DX11 shader model 5.0 features, including geometry, hull, and domain Shaders.
Current limitations of tessellation support:
Only triangle domain - no quads , no isoline tessellation.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ac76f6b1bc09 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.CollisionModule.minKillSpeed`. | ParticleSystem.CollisionModule.minKillSpeed
public float
minKillSpeed
;
Description
Kill particles whose speed falls below this threshold, after a collision.
Additional resources:
ParticleSystem.collision
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
publi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee7367a18b40 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.ForceOverLifetimeModule.yMultiplier`. | ParticleSystem.ForceOverLifetimeModule.yMultiplier
public float
yMultiplier
;
Description
Defines the y-axis multiplier.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall y-axis multiplier.
```csharp
using UnityEngine;
using System.Collections;[Re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fea24fe9d602 | unity_docs | scripting | What is `Events.UnityEventBase.SetPersistentListenerState` in Unity? Explain its purpose and usage. | UnityEventBase.SetPersistentListenerState
Declaration
public void
SetPersistentListenerState
(int
index
,
Events.UnityEventCallState
state
);
Parameters
Parameter
Description
index
Index of the listener to query.
state
State to set.
Description
Modify the execution state of a persistent listener. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8711a0726183 | unity_docs | editor | What is `Callbacks.RunAfterPackageAttribute` in Unity? Explain its purpose and usage. | RunAfterPackageAttribute
class in
UnityEditor.Callbacks
Description
Add this attribute to a callback method to mark that this callback must be run after any callbacks that are part of the specified package.
To define dependencies for a callback, use the following attributes:
RunAfterClassAttribute
,
RunBeforeCl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d205ad43f6b7 | unity_docs | editor | What is `AssetDatabase.ClearLabels` in Unity? Explain its purpose and usage. | AssetDatabase.ClearLabels
Declaration
public static void
ClearLabels
(
Object
obj
);
Parameters
Parameter
Description
obj
The asset object to remove labels from.
Description
Removes all labels attached to an asset.
```csharp
using UnityEngine;
using UnityEditor;
public class AssetDatabaseExamples : MonoB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_24464e729a94 | unity_docs | rendering | What is `TerrainData.DirtyHeightmapRegion` in Unity? Explain its purpose and usage. | TerrainData.DirtyHeightmapRegion
Declaration
public void
DirtyHeightmapRegion
(
RectInt
region
,
TerrainHeightmapSyncControl
syncControl
);
Parameters
Parameter
Description
region
The rectangular region to mark as dirty.
syncControl
Controls how CPU synchronization is performed.
Description
Marks the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_91e8c00766cf | unity_docs | animation | In Unity's 'Use curves', what is 'Save a curve preset' and how does it work? | To save your current curve as a preset:
In the
Curve Editor
, click the Settings button. The Presets panel opens.
The last curve in the list is a representation of your current edit. Click it to save the curve as a preset. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d52dff2a2d8e | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.GetCurrentCacheServerIp`. | AssetDatabase.GetCurrentCacheServerIp
Declaration
public static string
GetCurrentCacheServerIp
();
Returns
string
Returns a string representation of the current Cache Server IP address.
Description
Gets the IP address of the Cache Server currently in use by the Editor.
```csharp
using UnityEditor;
using U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7d0b35110bf6 | unity_docs | scripting | Show me a Unity C# example demonstrating `Video.VideoPlayer.url`. | layer.url
public string
url
;
Description
The file URL or web URL that the
VideoPlayer
reads content from.
In addition to URLs, this property also accepts raw paths to local files. The raw paths can either be absolute on the platform or relative to the Player root.
If the user sets both a
VideoPlayer.clip
a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_db7ded1398de | unity_docs | scripting | What is `Networking.UnityWebRequest.timeout` in Unity? Explain its purpose and usage. | UnityWebRequest.timeout
public int
timeout
;
Description
The number of seconds after which UnityWebRequest attempts to abort the request if no response is received.
The default value is
0
which means no timeout is applied and UnityWebRequest will wait until the response is received.
When the response takes lo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_813a93235c20 | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.Provider.AddIsValid`. | ets
);
Parameters
Parameter
Description
assets
List of assets to test.
Description
Given a list of assets this function returns true if
Provider.Add
is a valid task to perform on at least one of the assets in the list.
An Asset is considered to be valid for adding if it has not already been added to the ver... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6ce0ff36f070 | unity_docs | math | What are the parameters of `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemClear` in Unity? | Description Clears a block of memory, setting all bytes to zero. The MemClear method sets all bytes in a specified memory block to zero. This is useful for initializing memory without any residual data that might cause unexpected behavior. Use this method to ensure memory safety when reusing or reallocating memory bloc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e2106d625299 | unity_docs | rendering | What is `Rendering.LightShadowCasterCullingInfo` in Unity? Explain its purpose and usage. | LightShadowCasterCullingInfo
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
This structure contains the information to perform shadow caster culling for a given light.
Additional resources:
ShadowCastersCullingInfos
.
Properties
Property
Description
projectionType
The ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8d0cb3356c38_doc_2 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Deserialize JSON string to object
Signature:
```csharp
public static T FromJson<T>(string json)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_f553c39371dd | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.SearchService.EnumerateDatabases`. | SearchService.EnumerateDatabases
Declaration
public static IEnumerable<ISearchDatabase>
EnumerateDatabases
();
Returns
IEnumerable<ISearchDatabase>
Search database interfaces.
Description
Enumerate search databases.
Most of the search databases are asset and scene indexes.
```
static string EnsureDecalPr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e03301ae61b | unity_docs | physics | What is `PhysicsShapeGroup2D.AddCircle` in Unity? Explain its purpose and usage. | PhysicsShapeGroup2D.AddCircle
Declaration
public int
AddCircle
(
Vector2
center
,
float
radius
);
Parameters
Parameter
Description
center
The center point of the circle shape. This is analogous to
Collider2D.offset
.
radius
The radius of the circle defining a radius around the
center
. This is identica... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_458eaa079a25 | unity_docs | ui | In Unity's 'Brushes', what is 'Custom Brushes' and how does it work? | You can create your own custom Brushes with unique shapes or specific parameters for your needs. For example, use the heightmap Texture of a specific geological feature to define a Brush, then use the
Stamp Terrain
tool to place that feature on your Terrain.
To create a new Brush, click the
New Brush
button in the Terr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5556f2cb364 | unity_docs | editor | What is `EditorUtility.OpenPropertyEditor` in Unity? Explain its purpose and usage. | EditorUtility.OpenPropertyEditor
Declaration
public static void
OpenPropertyEditor
(
Object
obj
);
Parameters
Parameter
Description
obj
The object to open in the properties editor.
Description
Open properties editor for an Object.
Opens an Inspector-like window to show and edit the properties of an Objec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f522b91ce703_doc_14 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Represents an object which can receive three arguments as part of its initialization process.Base interface of .
Signature:
```csharp
public interface IThreeArguments
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93b75c306f97 | unity_docs | ui | Give me an overview of the `FullScreenMovieControlMode` class in Unity. | FullScreenMovieControlMode
enumeration
Description
Describes options for displaying movie playback controls.
Windows Store Apps
: OS doesn't provide a
Stop
button control because of this Unity will stop a video if
Escape
or
Back Button
is pressed if video is launched with
FullScreenMovieControlMode.Full
or... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_71a20454dbb8 | unity_docs | rendering | What is `TextureImporter.IsPlatformTextureFormatValid` in Unity? Explain its purpose and usage. | TextureImporter.IsPlatformTextureFormatValid
Declaration
public static bool
IsPlatformTextureFormatValid
(
TextureImporterType
textureType
,
BuildTarget
target
,
TextureImporterFormat
currentFormat
);
Parameters
Parameter
Description
textureType
The TextureImporterType that the importer uses.
target... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6fed451134af | unity_docs | rendering | What is `EditorUtility.UpdateGlobalShaderProperties` in Unity? Explain its purpose and usage. | EditorUtility.UpdateGlobalShaderProperties
Declaration
public static void
UpdateGlobalShaderProperties
(float
time
);
Parameters
Parameter
Description
time
Time to use. -1 to disable.
Description
Updates the global shader properties to use when rendering.
If the Editor is not in Play Mode,
Graphics.Blit
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bf4845e63956 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.CollisionModule.collidesWith`. | ParticleSystem.CollisionModule.collidesWith
public
LayerMask
collidesWith
;
Description
Control which Layers this Particle System collides with.
Additional resources:
LayerMask
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass : Mon... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e3e707304b78 | unity_docs | performance | What is `UIElements.TempMeshAllocator` in Unity? Explain its purpose and usage. | TempMeshAllocator
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Used in jobs to allocate UI Toolkit temporary meshes.
Public Methods
Method
Description
AllocateTempMesh
Allocates the specified number of vertices and indices from a temporary allocator. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4f89173004e | unity_docs | xr | What is `Rendering.ObjectIdResult` in Unity? Explain its purpose and usage. | ObjectIdResult
class in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
The results of an ObjectIdRequest, stored in ObjectIdRequest._result, containing the
ObjectIdResult.idToObjectMapping
that is needed to interpret the color-encoded object IDs that are rendered in the ObjectIdRequ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4c52845a282d | unity_docs | scripting | Explain 'Font assets' in Unity. | You can create a font asset from an imported font file.
Topic Description Introduction to font assets
Convert font to font asset before using them in your project.
Font Asset properties reference
Information about each Font Asset property.
Font Asset Creator properties reference
Information about each Font Asset Creato... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9910b660805 | unity_docs | scripting | What is `Experimental.GraphView.IDropTarget.DragLeave` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
IDropTarget.DragLeave
Declaration
public bool
DragLeave
(
UIElements.DragLeaveEvent
evt
,
IEnumerable<ISelectable>
selection
,
Experimental.GraphView.IDropTarget
leftTarget
,
Experimental.GraphView.ISelection
dragSource
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8226eaf5b558 | unity_docs | scripting | What is `Unity.Android.Gradle.RepositoriesMode` in Unity? Explain its purpose and usage. | RepositoriesMode
enumeration
Description
The repository mode configures how repositories are setup in the build.
For more information about the file, see Gradle's documentation:
Enum RepositoriesMode
Properties
Property
Description
Null
Repositories mode unset.
PreferSettings
Repositories mode PREFER_SETTING... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_642010463eab | unity_docs | rendering | What is `LightTransport.PostProcessing.IProbePostProcessor.Initialize` in Unity? Explain its purpose and usage. | IProbePostProcessor.Initialize
Declaration
public bool
Initialize
(
LightTransport.IDeviceContext
context
);
Parameters
Parameter
Description
context
Device context.
Returns
bool
True if the initialization was successful.
Description
Initialize the
IProbePostProcessor
.
Must be called before using... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a7c1e079422b | unity_docs | editor | What are the parameters of `AssetDatabase.OpenAsset` in Unity? | Returns bool Returns true if the asset opened successfully, otherwise false. Description Opens the asset with associated application. Opens asset in an external editor, texture application or modelling tool depending on what type of asset it is. ```csharp
using UnityEditor;
using UnityEngine;public class AssetDatabaseE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82d3efc07387 | unity_docs | editor | What is `EditorWindow.Show` in Unity? Explain its purpose and usage. | EditorWindow.Show
Declaration
public void
Show
();
Declaration
public void
Show
(bool
immediateDisplay
);
Parameters
Parameter
Description
immediateDisplay
Immediately display
Show
.
Description
Show the EditorWindow window.
EditorWindow.Show
displays any window that has been created.
In the script... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d258296415e8 | unity_docs | scripting | Explain 'Build and deliver for Universal Windows Platform' in Unity. | Before you build and deliver your Universal Windows Platform (UWP) application, you can learn more about build settings and deployment.
Topic Description UWP build settings reference
Reference documentation for UWP build settings.
Generate a Visual Studio C++ solution
Understand the Visual Studio C++ solution that Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fc88fb0da3fd | unity_docs | scripting | What is `TestTools.Coverage.ResetAll` in Unity? Explain its purpose and usage. | Coverage.ResetAll
Declaration
public static void
ResetAll
();
Description
Resets all coverage data.
```csharp
using UnityEngine;
using UnityEngine.TestTools;public class CoverageExample : MonoBehaviour
{
void Start()
{
// Reset all coverage data that has been captured up to this point.
Coverage.ResetAll();
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f6de5ede0c2a | unity_docs | scripting | What is `UIElements.PanelChangedEventBase_1.originPanel` in Unity? Explain its purpose and usage. | PanelChangedEventBase<T0>.originPanel
public
UIElements.IPanel
originPanel
;
Description
In the case of AttachToPanelEvent, the panel to which the event target element was attached. In the case of DetachFromPanelEvent, the panel from which the event target element is detached. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09a5f5984f73 | unity_docs | scripting | What is `Windows.WebCam.PhotoCaptureFrame.CopyRawImageDataIntoBuffer` in Unity? Explain its purpose and usage. | PhotoCaptureFrame.CopyRawImageDataIntoBuffer
Declaration
public void
CopyRawImageDataIntoBuffer
(List<byte>
byteBuffer
);
Parameters
Parameter
Description
byteBuffer
The destination byte list to which the raw captured image data will be copied to.
Description
Will copy the raw IMFMediaBuffer image data int... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cd29c5d90856 | unity_docs | physics | What is `QueryTriggerInteraction.Ignore` in Unity? Explain its purpose and usage. | QueryTriggerInteraction.Ignore
Description
Queries never report Trigger hits.
```csharp
//Create two GameObjects (e.g. a Cube) and place them near each other. Attach this script to one of them.
//Click on the GameObject with the script. Attach the other GameObject to the “My Game Object” field in the Inspector.
//M... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ab096e3a6c4f | unity_docs | scripting | What are the parameters of `Debug.Log` in Unity? | Description Logs a message to the Unity Console. Use Debug.Log to print informational messages that help you debug your application. For example, you could print a message containing a GameObject.name and information about the object’s current state. You can format messages with string concatenation: Debug.Log("Text: "... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9cf51c08f0a | unity_docs | scripting | Show me a Unity C# example demonstrating `PrimitiveType.Capsule`. | PrimitiveType.Capsule
Description
A capsule primitive.
Additional resources:
GameObject.CreatePrimitive
.
```csharp
using UnityEngine;
using System.Collections;// Creates a capsule primitivepublic class ExampleClass : MonoBehaviour
{
void Start()
{
GameObject capsule = GameObject.CreatePrimitive(PrimitiveType.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bb652610d8d0 | unity_docs | physics | Show me a Unity C# example demonstrating `ArticulationBody.AddRelativeTorque`. | ill result in only the Angular Velocity Per Second accumulator being applied.
For more information on how ForceMode affects angular velocity, see
Rigidbody.AddTorque
.
Applying a torque to an ArticulationBody wakes up that body. If the torque size is zero then the ArticulationBody does not wake up.
Unit of measuremen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5fe8e1f3c3e4 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R8_SInt` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R8_SInt
Description
A one-component, 8-bit signed integer format that has a single 8-bit R component. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_34ada6e9fcbd | unity_docs | rendering | What is `TextureFormat.RGB9e5Float` in Unity? Explain its purpose and usage. | TextureFormat.RGB9e5Float
Description
RGB HDR format, with 9 bit mantissa per channel and a 5 bit shared exponent.
Three partial-precision floating-point numbers encoded into a single 32-bit value all sharing the same 5-bit exponent (variant of s10e5, which is sign bit, 10-bit mantissa, and 5-bit biased(15) exponen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8fcab36a5831 | github | scripting | Write a Unity C# XR/VR script for AR Occlusion Quality Changer | ```csharp
using TMPro;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;
[RequireComponent(typeof(AROcclusionManager))]
public class AROcclusionQualityChanger : MonoBehaviour
{
[SerializeField]
private TMP_Dropdown depthQualityDropdown;
private AROcclusionManager occ... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_cbfc45f45155 | unity_docs | xr | What is `Networking.UnityWebRequest.method` in Unity? Explain its purpose and usage. | UnityWebRequest.method
public string
method
;
Description
Defines the HTTP verb used by this
UnityWebRequest
, such as
GET
or
POST
.
This property may be set to any non-zero-length alphabetic string, and will be used verbatim. Therefore, this property can be employed to set the UnityWebRequest to transmit a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e96038e6d2c8 | unity_docs | rendering | What are the parameters of `Texture2D.ReadPixels` in Unity? | Description Reads pixels from the current render target and writes them to a texture. This method copies a rectangular area of pixel colors from the currently active render target on the GPU (for example the screen, a RenderTexture , or a GraphicsTexture ) and writes them to a texture on the CPU at position ( destX , d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_18b6c47fdb61 | unity_docs | animation | What is `Animator.ApplyBuiltinRootMotion` in Unity? Explain its purpose and usage. | Animator.ApplyBuiltinRootMotion
Declaration
public void
ApplyBuiltinRootMotion
();
Description
Apply the default Root Motion.
Applies the default root motion. Use this in
MonoBehaviour.OnAnimatorMove
or in
StateMachineBehaviour.OnStateMove
on frames where you don't want to handle the root motion manually. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_05c7cddb7ce6 | github | scripting | Write a Unity C# UI script for Buff Basic | ```csharp
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace BuffBasic
{
public class BuffBasic : MonoBehaviour
{
[SerializeField] Text label;
public void AddBuffEffect()
{
label.text... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_37972e1c3187 | unity_docs | editor | What is `Device.SystemInfo.maxAnisotropyLevel` in Unity? Explain its purpose and usage. | SystemInfo.maxAnisotropyLevel
public static int
maxAnisotropyLevel
;
Description
This has the same functionality as
SystemInfo.maxAnisotropyLevel
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c85561d3205 | unity_docs | physics | What is `CompositeCollider2D.vertexDistance` in Unity? Explain its purpose and usage. | CompositeCollider2D.vertexDistance
public float
vertexDistance
;
Description
Controls the minimum distance allowed between generated vertices.
Controls the minimum distance allowed between generated vertices. Any vertices closer than or equal to this distance will be removed. Setting too high a distance can res... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_16d835b85170 | unity_docs | math | What is `Unity.IO.LowLevel.Unsafe.AsyncReadManagerMetricsFilters.SetSubsystemFilter` in Unity? Explain its purpose and usage. | AsyncReadManagerMetricsFilters.SetSubsystemFilter
Declaration
public void
SetSubsystemFilter
(
Unity.IO.LowLevel.Unsafe.AssetLoadingSubsystem
_subsystem
);
Declaration
public void
SetSubsystemFilter
(AssetLoadingSubsystem[]
_subsystems
);
Parameters
Parameter
Description
_subsystem
AssetLoadingSubsyste... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_17f4a755a706 | unity_docs | scripting | In Unity's 'Material variants', what is 'Similarities to prefab variants' and how does it work? | Material variants are similar to
prefab variants for GameObjects
, but with the following key differences:
You can change the parent of a material variant.
You can lock properties so child materials can’t override them. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3e9f9902823 | unity_docs | math | Show me a Unity C# example demonstrating `Vector2.SmoothDamp`. | he time it will take to reach the target. A smaller value will reach the target faster.
maxSpeed
Optionally allows you to clamp the maximum speed.
deltaTime
The time since the last call to this function. By default Time.deltaTime.
Description
Gradually changes a vector towards a desired goal over time.
The vecto... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5a0a62daf0e4 | github | scripting | Write a Unity C# script called XR Joystick | ```csharp
using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.XR.Interaction.Toolkit;
/// <summary>
/// An interactable joystick that can move side to side, and forward and back by a direct interactor
/// </summary>
public class XRJoystick : XRBaseInteractable
{
public enum JoystickType
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_d60109b9ccf5 | unity_docs | ui | Explain 'Bind without the binding path' in Unity. | Version
: 2021.3+
You can call
BindProperty()
to bind an element to a SerializedProperty object directly, instead of with the binding path. This example demonstrates how to bind with
BindProperty()
.
## Example overview
This example creates a custom Editor window to change the name of a
GameObject
.
You can find the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d3c2e2550c71 | unity_docs | scripting | What is `Keyframe.outWeight` in Unity? Explain its purpose and usage. | Keyframe.outWeight
public float
outWeight
;
Description
Sets the outgoing weight for this key. The outgoing weight affects the slope of the curve from this key to the next key.
The weight is a value between 0 and 1. Set
weightedMode
to
WeightedMode.Out
or
WeightedMode.Both
to include weight when calculati... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_53c3aa4f2dc0 | unity_docs | scripting | What is `Tools.handleRect` in Unity? Explain its purpose and usage. | Tools.handleRect
public static
Rect
handleRect
;
Description
The rectangle used for the rect tool.
The rectangle is relative to the
handlePosition
and is rotated around the
handleRectRotation
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_052a4da0a8a3 | unity_docs | scripting | Show me a Unity C# example demonstrating `InspectorNameAttribute`. | InspectorNameAttribute
class in
UnityEngine
/
Inherits from:
PropertyAttribute
/
Implemented in:
UnityEngine.CoreModule
Description
Use this attribute on enum value declarations to change the display name shown in the Inspector.
Additional resources:
SerializedProperty.enumDisplayNames
```csharp
using Unity... | 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.