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_b7277c5bfded | unity_docs | rendering | What is `ComputeShader.SetKeyword` in Unity? Explain its purpose and usage. | ComputeShader.SetKeyword
Declaration
public void
SetKeyword
(ref
Rendering.LocalKeyword
keyword
,
bool
value
);
Parameters
Parameter
Description
keyword
The
LocalKeyword
keyword to enable or disable.
value
The desired keyword state.
Description
Sets the state of a local shader keyword for this comp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5f25674ee8cc | github | scripting | Write a Unity C# MonoBehaviour script called Test | ```csharp
using UnityEngine;
namespace BcoffeeDev.Patterns.Samples
{
public class Test : MonoBehaviour
{
private void Start()
{
SampleSingleton.Instance.HelloWorld();
}
}
}
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_6c459c79b68f | unity_docs | math | What is `AnimatedValues.AnimQuaternion.ctor` in Unity? Explain its purpose and usage. | AnimQuaternion Constructor
Declaration
public
AnimQuaternion
(
Quaternion
value
);
Declaration
public
AnimQuaternion
(
Quaternion
value
,
Events.UnityAction
callback
);
Parameters
Parameter
Description
value
Start Value.
Description
Constructor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_24a20a26ba52 | unity_docs | animation | What is `Animations.AnimatorController.AddEffectiveStateMachineBehaviour` in Unity? Explain its purpose and usage. | AnimatorController.AddEffectiveStateMachineBehaviour
Declaration
public T
AddEffectiveStateMachineBehaviour
(
Animations.AnimatorState
state
,
int
layerIndex
);
Parameters
Parameter
Description
state
The AnimatorState to add the Behaviour to.
layerIndex
The layer index.
Description
Adds a state machine... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_18ae05e9e994 | unity_docs | editor | Show me a Unity C# example demonstrating `ObjectFactory.PlaceGameObject`. | initialized.
parent
An optional GameObject to be set as the parent.
Description
Place the given GameObject in the Scene View using the same preferences as built-in Unity GameObjects.
Use this method to create GameObjects centered in the Scene View or at world origin, depending on user preference. This method also ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_19ab63932279 | unity_docs | scripting | Explain 'Remove imported assets from a project' in Unity. | When you import an
asset package
from the
Asset Store
, the Unity Package Manager places the package’s assets in the Assets directory in your project.
You can remove assets from a project if you know the assets aren’t in use. You might consider this action to unclutter your project directory or to free up space on your... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_20950e68f646 | unity_docs | scripting | Give me an overview of the `WebGLClientBrowserType` class in Unity. | WebGLClientBrowserType
enumeration
Description
An enum containing the supported client web browsers.
This enum is used within the WebGL platform to determine which browser to load the web application on.
Properties
Property
Description
Default
The system's default browser will be launched for the web applicati... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abb28a553f1f | unity_docs | scripting | What is `Overlays.ToolbarOverlay.toolbarElements` in Unity? Explain its purpose and usage. | ToolbarOverlay.toolbarElements
public IEnumerable<string>
toolbarElements
;
Description
Use
toolbarElements
to specify the contents of this
Overlay
.
See
ICreateToolbar
for more information. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_580e261e6bfc | unity_docs | physics | What is `PhysicsVisualizationSettings.SetShowSleepingBodies` in Unity? Explain its purpose and usage. | PhysicsVisualizationSettings.SetShowSleepingBodies
Declaration
public static void
SetShowSleepingBodies
(bool
show
);
Description
Should sleeping Rigidbodies and Articulation Bodies be considered by the display filter.
Additional resources:
Rigidbody.IsSleeping
,
ArticulationBody.IsSleeping
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce16fb56ac2c | unity_docs | scripting | What is `ModelImporter.isTangentImportSupported` in Unity? Explain its purpose and usage. | ModelImporter.isTangentImportSupported
public bool
isTangentImportSupported
;
Description
Is import of tangents supported by this importer.
Additional resources:
tangentImportMode
,
ModelImporterTangentSpaceMode
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_41e7027c8da3 | unity_docs | scripting | What is `ModelImporter.bakeAxisConversion` in Unity? Explain its purpose and usage. | ModelImporter.bakeAxisConversion
public bool
bakeAxisConversion
;
Description
Computes the axis conversion on geometry and animation for Models defined in an axis system that differs from Unity's (left handed, Z forward, Y-up).
When enabled, Unity transforms the geometry and animation data in order to convert... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_831ca87f87c2 | unity_docs | rendering | In Unity's 'Search provider references', what is 'Search files and presets' and how does it work? | The following search providers allow you to search files and presets:
Provider Token Description
Search files and presets
N/A
An overview of searching files and presets.
Search for files find Search files in the project.
Search presets preset Search Presets in the project. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad0acaeaa473 | unity_docs | scripting | What are the parameters of `HandleUtility.DistanceToCone` in Unity? | Returns float Distance from mouse to cone in pixels. Description Returns the distance in pixels from the mouse pointer to a cone. Calculates the screen space distance from the mouse pointer to a cone at given world
space position with the given rotation and size . Returns zero when mouse pointer is directly over the co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b31edc1a1058 | unity_docs | rendering | What is `ParticleSystemCullingMode` in Unity? Explain its purpose and usage. | ParticleSystemCullingMode
enumeration
Description
The action to perform when the Particle System is offscreen.
Properties
Property
Description
Automatic
For looping effects, the simulation is paused when offscreen, and for one-shot effects, the simulation will continue playing.
PauseAndCatchup
Pause the Partic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_152d6b546869 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.DisplayMode.List`. | DisplayMode.List
Description
Display as a list view.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Search;
static class Example_ISearchView_displayMode
{
[MenuItem("Examples/ISearchView/displayMode")]
public static void Run()
{
// SearchService can open a SearchView.
var view = SearchServi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_101f7077e4de | unity_docs | editor | What is `StaticEditorFlags.OccludeeStatic` in Unity? Explain its purpose and usage. | StaticEditorFlags.OccludeeStatic
Description
Mark the GameObject as a Static Occludee in the occlusion culling system.
For more information, see the documentation on
the Occlusion Culling system
.
```csharp
using UnityEngine;
using UnityEditor;
public class StaticEditorFlagsExample
{
[MenuItem("Examples/Create G... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eed4ec04da3e | unity_docs | scripting | What is `GridLayout.LocalToCellInterpolated` in Unity? Explain its purpose and usage. | GridLayout.LocalToCellInterpolated
Declaration
public
Vector3
LocalToCellInterpolated
(
Vector3
localPosition
);
Parameters
Parameter
Description
localPosition
Local Position to convert.
Returns
Vector3
Interpolated cell position of the local position.
Description
Converts a local position to cell... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f1281b571890 | unity_docs | ui | Show me a Unity C# example demonstrating `EditorWindow.Focus`. | indow.Focus
Declaration
public void
Focus
();
Description
Moves keyboard focus to another EditorWindow.
The
Focus
public method controls which window is
active for use of the keyboard. In the examples below
the active EditorWindow keyboard is changed to a different
EditorWindow keyboard.
Additional resourc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d5fd6c615c7 | unity_docs | scripting | What is `PackageManager.PackageInfo.datePublished` in Unity? Explain its purpose and usage. | PackageInfo.datePublished
public Nullable<DateTime>
datePublished
;
Description
The date and time at which the package was published.
This property only has a valid value for packages that have been downloaded from the cloud (i.e. those packages whose
PackageInfo.source
is
PackageSource.Registry
). For pack... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c85465874eb | unity_docs | physics | What is `Rigidbody2D.SlideMovement.startPosition` in Unity? Explain its purpose and usage. | Rigidbody2D.SlideMovement.startPosition
public
Vector2
startPosition
;
Description
The start position to slide the
Rigidbody2D
from.
This is used when the
Rigidbody2D.SlideMovement.useStartPosition
is true and overrides using the current
Rigidbody2D.position
.
Additional resources:
Rigidbody2D.SlideMove... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b5504f11c3d5 | unity_docs | editor | What are the parameters of `EditorUtility.DisplayDialogComplex` in Unity? | Returns int Returns the ID of a button. IDs are 0, 1, or 2 and they correspond to the ok , cancel and alt buttons respectively. An ID of 1, which corresponds to cancel , returns if the dialog is closed or the user presses the Escape key. Description Displays a modal dialog with three buttons. Use it for displaying mess... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c93e2b32cb33 | unity_docs | rendering | What is `ObjectChangeKind.DestroyAssetObject` in Unity? Explain its purpose and usage. | ObjectChangeKind.DestroyAssetObject
Description
A change of this type indicates that an asset object has been destroyed. This happens for example when
Undo.DestroyObjectImmediate
is used with an instance of an asset (e.g.
Texture
). Note that this only covers destruction of asset objects in memory and not deletio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d5f9d370f872_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Use this class as a central manager to configure locomotion control schemes and configuration preferences.Input bindings will often overlap between different locomotion methods, and this class can be used toset binding masks which are used to determine which bindings of an action to enable and which to ignore.Teleport ... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
gh_f05e87c09386 | github | scripting | Write a Unity C# script called Triangulator | ```csharp
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace EzySlice {
/**
* Contains static functionality for performing Triangulation on arbitrary vertices.
* Read the individual function descriptions for specific details.
*/
public sealed ... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_08e67ab9dcc3 | unity_docs | physics | What is `ArticulationBody.excludeLayers` in Unity? Explain its purpose and usage. | ArticulationBody.excludeLayers
public
LayerMask
excludeLayers
;
Description
The additional layers that all
Collider
s attached to this
ArticulationBody
should exclude when deciding if the
Collider
can come into contact with another
Collider
.
The Layer Collision Matrix defines which layers can contact ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_74b9641924d5 | unity_docs | rendering | What is `Terrain.shadowCastingMode` in Unity? Explain its purpose and usage. | Terrain.shadowCastingMode
public
Rendering.ShadowCastingMode
shadowCastingMode
;
Description
Allows you to set the shadow casting mode for the terrain.
ShadowCastingMode
enum defines how and if shadows are cast from this object.
Typically shadows are either cast or not, but it's also possible to make shadows... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_166d234ef79f | unity_docs | rendering | What is `ComputeBuffer` in Unity? Explain its purpose and usage. | ComputeBuffer
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
GPU data buffer, mostly for use with compute shaders.
ComputeShader
programs often need arbitrary data to be read & written into memory buffers.
ComputeBuffer class is exactly for that - you can create & fill them from scri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2784d4fe8f9f | unity_docs | physics | Explain 'Collider surface bounciness' in Unity. | In physics, the bounciness of a surface is called the “coefficient of restitution”. The coefficient of restitution is represented as a number between 0 and 1, which defines how much speed an object retains in the opposite direction along the line of impact after a
collision
.
In PhysX, the Physic Material asset’s Bounc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2c81d42949d6 | unity_docs | rendering | In Unity's 'iOS Player settings', what is 'Icon' and how does it work? | Use the Icon settings to customize the branding for your application on the Apple Store.
You can upload and assign the following types of custom icons for each iOS device:
Setting Description Application icons
The main device icons for your application.
Spotlight icons
Icons that appears in spotlight search results.
Se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d92926d55b01 | unity_docs | audio | What is `AudioSettings.speakerMode` in Unity? Explain its purpose and usage. | AudioSettings.speakerMode
public static
AudioSpeakerMode
speakerMode
;
Description
AudioSettings.speakerMode
is deprecated. Use
AudioSettings.GetConfiguration
and
AudioSettings.Reset
to adjust audio settings instead. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3431544627a5 | unity_docs | rendering | What is `TerrainTools.TerrainPaintUtility` in Unity? Explain its purpose and usage. | TerrainPaintUtility
class in
UnityEngine.TerrainTools
/
Implemented in:
UnityEngine.TerrainModule
Description
A set of utility functions for custom terrain paint tools.
Static Methods
Method
Description
BeginPaintHeightmap
Helper function to set up a PaintContext for modifying the heightmap of one or more Te... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee076cbcbd20 | unity_docs | scripting | Show me a Unity C# example demonstrating `Animator.GetCurrentAnimatorClipInfo`. | Animator.GetCurrentAnimatorClipInfo
Declaration
public AnimatorClipInfo[]
GetCurrentAnimatorClipInfo
(int
layerIndex
);
Parameters
Parameter
Description
layerIndex
The layer index.
Returns
AnimatorClipInfo[]
An array of all the
AnimatorClipInfo
in the current state.
Description
Returns an array of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e6019e6508aa | unity_docs | scripting | What is `ExposedPropertyResolver` in Unity? Explain its purpose and usage. | ExposedPropertyResolver
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Object that is used to resolve references to an ExposedReference field.
This object is used by ExposedReference fields to resolve their values at runtime.
See also:
•
FrameData
– You can find the ExposedPropert... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b3a93f85f172 | unity_docs | scripting | What is `Event.functionKey` in Unity? Explain its purpose and usage. | Event.functionKey
public bool
functionKey
;
Description
Is the current keypress a function key? (Read Only)
Returns true if the current keypress is an arrow key, page up, page down, backspace, etc. key.
If this key needs special processing in order to work in text editing,
functionKey
is on.
```csharp
using ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9c70496af16 | unity_docs | performance | What is `Unity.Jobs.IJobExtensions.EarlyJobInit` in Unity? Explain its purpose and usage. | IJobExtensions.EarlyJobInit
Declaration
public static void
EarlyJobInit
();
Description
Gathers and caches reflection data for the internal job system's managed bindings.
Unity is responsible for calling this method: don't call it yourself. When the Jobs package is included in the project, Unity generates
code... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e3f72e546a08 | unity_docs | scripting | What are the parameters of `Animator.SetIKPositionWeight` in Unity? | Description Sets the translative weight of an IK goal (0 = at the original animation before IK, 1 = at the goal). An IK goal is a target position and rotation for a specific body part. Unity can calculate how to move the part toward the target from the starting point (ie, the current position and rotation obtained from... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e4e1da97aa74 | unity_docs | rendering | What is `RenderTextureDescriptor.colorFormat` in Unity? Explain its purpose and usage. | RenderTextureDescriptor.colorFormat
public
RenderTextureFormat
colorFormat
;
Description
The format of the RenderTarget is expressed as a
RenderTextureFormat
. Internally, this format is stored as a
GraphicsFormat
compatible with the current system (see
SystemInfo.GetCompatibleFormat
). Therefore, if you s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3f3b775012b8 | unity_docs | input | What is `TouchPhase.Moved` in Unity? Explain its purpose and usage. | TouchPhase.Moved
Description
A finger moved on the screen.
```csharp
//Attach this script to an empty GameObject
//Create some UI Text by going to Create>UI>Text.
//Drag this GameObject into the Text field of your GameObject’s Inspector window.using UnityEngine;
using System.Collections;
using UnityEngine.UI;public... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef96f34ea830 | unity_docs | animation | What is `AnimationCurve` in Unity? Explain its purpose and usage. | AnimationCurve
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Store a collection of Keyframes that can be evaluated over time.
Properties
Property
Description
keys
All keys defined in the animation curve.
length
The number of keys in the curve. (Read Only)
postWrapMode
The behavi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_14fee990ae89 | unity_docs | editor | In Unity's 'Cloud Diagnostics', what is 'Compatible with Unity' and how does it work? | These package versions are available in Unity version 6000.0:
Documentation location:
State
Versions available:
com.unity.services.cloud-diagnostics@2.0 released 2.0.7
com.unity.services.cloud-diagnostics@1.0 released 1.0.11, 1.0.12 | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d617f3773977 | unity_docs | xr | What is `Unity.Hierarchy.HierarchyFlattened` in Unity? Explain its purpose and usage. | HierarchyFlattened
class in
Unity.Hierarchy
/
Implemented in:
UnityEngine.HierarchyCoreModule
Description
Represents a read-only array of
HierarchyFlattenedNode
over a
Hierarchy
. Used as an acceleration structure for query purposes.
Querying information about nodes completes much faster than the same me... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_630e54859c5b | unity_docs | math | What is `Mathf.CorrelatedColorTemperatureToRGB` in Unity? Explain its purpose and usage. | Mathf.CorrelatedColorTemperatureToRGB
Declaration
public static
Color
CorrelatedColorTemperatureToRGB
(float
kelvin
);
Parameters
Parameter
Description
kelvin
Temperature in Kelvin. Range 1000 to 40000 Kelvin.
Returns
Color
Correlated Color Temperature as floating point RGB color.
Description
Conv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5ddf6cb041e6 | unity_docs | rendering | What is `Graphics.DrawTexture` in Unity? Explain its purpose and usage. | Graphics.DrawTexture
Declaration
public static void
DrawTexture
(
Rect
screenRect
,
Texture
texture
,
Material
mat
= null,
int
pass
= -1);
Declaration
public static void
DrawTexture
(
Rect
screenRect
,
Texture
texture
,
int
leftBorder
,
int
rightBorder
,
int
topBorder
,
int
bottomBorder
,
Ma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c516638c5f1f | unity_docs | scripting | In Unity's 'Package Manager troubleshooting', what is 'Package-specific issues' and how does it work? | If a specific package has a problem when loading or installing (for example, when determining which package versions to load), the error icon (
) appears in the
list panel
next to the compromised package
(A)
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a4fbbb9ecd93 | unity_docs | scripting | Explain 'Unity Launcher Manifest' in Unity. | A Unity Launcher Manifest configures how the application looks and behaves before the application launches. For example, it contains the application’s icon, name, and install location. The Unity Launcher Manifest is a Unity-specific concept for Android development and you can overwrite it to integrate Unity as a compon... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4add256fd595 | unity_docs | audio | What is `Networking.UnityWebRequest.ctor` in Unity? Explain its purpose and usage. | UnityWebRequest Constructor
Declaration
public
UnityWebRequest
();
Declaration
public
UnityWebRequest
(string
url
);
Declaration
public
UnityWebRequest
(Uri
uri
);
Declaration
public
UnityWebRequest
(string
url
,
string
method
);
Declaration
public
UnityWebRequest
(Uri
uri
,
string
method
);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d1ab96fdbd00 | unity_docs | math | What is `AI.NavMeshBuilder.UpdateNavMeshDataAsync` in Unity? Explain its purpose and usage. | NavMeshBuilder.UpdateNavMeshDataAsync
Declaration
public static
AsyncOperation
UpdateNavMeshDataAsync
(
AI.NavMeshData
data
,
AI.NavMeshBuildSettings
buildSettings
,
List<NavMeshBuildSource>
sources
,
Bounds
localBounds
);
Parameters
Parameter
Description
data
The NavMeshData to update.
buildSetti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e3e399170068 | unity_docs | rendering | Explain 'Import a texture' in Unity. | A texture is a bitmap image. You can create textures in a digital content creation application, such as Photoshop, and import them into Unity.
In a 3D Project, Unity imports image and movie files in the Assets folder as Textures. In a 2D Project, Unity imports image and movie files in the Assets folder as
Sprites
.
As ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4f00fdd0bcee | unity_docs | scripting | Show me a Unity C# example demonstrating `Profiling.Profiler.enableBinaryLog`. | Use
Profiler.maxUsedMemory
to raise the buffer memory.
Note:
In the following example, on the WebGL platform, the log file is outputted to a path like the following:
/idbfs/some-hash/profiler.raw
. To find this file, use your browser's developer tools. You can also
use
File.Open
with the same path that you used ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec5d612b4885 | unity_docs | rendering | What is `Rendering.RayTracingAccelerationStructure.BuildSettings.buildFlags` in Unity? Explain its purpose and usage. | RayTracingAccelerationStructure.BuildSettings.buildFlags
public
Rendering.RayTracingAccelerationStructureBuildFlags
buildFlags
;
Description
The
build flags
Unity uses to build a
RayTracingAccelerationStructure
.
For acceleration structure implementations that use a two-level hierarchy, for example DirectX... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31828d384bfa | unity_docs | animation | What is `Animations.TransformStreamHandle.IsResolved` in Unity? Explain its purpose and usage. | TransformStreamHandle.IsResolved
Declaration
public bool
IsResolved
(
Animations.AnimationStream
stream
);
Parameters
Parameter
Description
stream
The
AnimationStream
that holds the animated values.
Returns
bool
Returns
true
if the handle is resolved,
false
otherwise.
Description
Returns wheth... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d613392778c7 | unity_docs | scripting | What is `Video.VideoClip.length` in Unity? Explain its purpose and usage. | VideoClip.length
public double
length
;
Description
The length of the video clip in seconds. (Read Only).
You can use this property to ensure any events, sounds, visual effects, logic etc. you want to trigger during the video happen within the time limits of the video.
Note
: The VideoClip can return an inaccu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_321a280e6093 | unity_docs | animation | What is `ModelImporter.humanoidOversampling` in Unity? Explain its purpose and usage. | ModelImporter.humanoidOversampling
public
ModelImporterHumanoidOversampling
humanoidOversampling
;
Description
Controls how much oversampling is used when importing humanoid animations for retargeting.
Humanoid retargeting implies resampling animations at import. By default, the sampling rate of the imported ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1fe183d4357f | unity_docs | rendering | What is `UIElements.DynamicAtlasSettings.customFilter` in Unity? Explain its purpose and usage. | DynamicAtlasSettings.customFilter
public
UIElements.DynamicAtlasCustomFilter
customFilter
;
Description
When a delegate is assigned, the dynamic atlas system calls it to determine whether or not a texture can be added to the atlas. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_711114a4185c | unity_docs | rendering | What is `ParticleSystem.ShapeModule.textureColorAffectsParticles` in Unity? Explain its purpose and usage. | ParticleSystem.ShapeModule.textureColorAffectsParticles
public bool
textureColorAffectsParticles
;
Description
When enabled, the system applies the RGB channels of the Texture to the particle color when the particle spawns.
Additional resources:
ParticleSystem.ShapeModule.texture
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_04a7eb45237c | unity_docs | math | What are the parameters of `TerrainData.GetInterpolatedHeights` in Unity? | Description Gets an array of terrain height values using the normalized x,y coordinates. The function returns a two-dimensional array of size [yCount, xCount]. Each returned value is an interpolation between the four neighboring Terrain height samples, based on where the sampling point is located within the quad of the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f959dda5043 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.GetUnusedAssetBundleNames`. | 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_fa64289f8f97 | unity_docs | rendering | Show me a Unity C# example demonstrating `Rendering.ScriptableCullingParameters.cullingOptions`. | leCullingParameters
struct. You can override these values before performing the culling operation.
The following example demonstrates how to retrieve a ScriptableCullingParameters object from a Camera, disable occlusion culling on the ScriptableCullingParameters object by unsetting the CullingOptions.OcclusionCull fla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f58a0180dd08 | unity_docs | scripting | What is `UIElements.BaseTreeViewController.TryRemoveItem` in Unity? Explain its purpose and usage. | BaseTreeViewController.TryRemoveItem
Declaration
public bool
TryRemoveItem
(int
id
,
bool
rebuildTree
);
Parameters
Parameter
Description
id
The item id.
rebuildTree
Whether to refresh the tree data. Set to <c>false</c> when doing multiple operations and call <see cref="BaseVerticalCollectionView.RefreshI... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_60393fb06073 | unity_docs | animation | What is `AnimatorOverrideController.runtimeAnimatorController` in Unity? Explain its purpose and usage. | AnimatorOverrideController.runtimeAnimatorController
public
RuntimeAnimatorController
runtimeAnimatorController
;
Description
The Runtime Animator Controller that the Animator Override Controller overrides.
Note: Animator Override Controllers cannot be nested, which means you cannot supply an Animator Overrid... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8e03d6b2322e | unity_docs | audio | Explain 'Audio' in Unity. | Unity’s audio features include full 3D spatial sound, real-time mixing and mastering, hierarchies of mixers, snapshots, and predefined effects. Read this section to learn about audio in Unity, including clips, sources, listeners, importing, and sound settings.
Topic Description Audio overview
An overview of the theory ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6e68b2a6b2ce | unity_docs | rendering | Show me a Unity code example for 'ShaderLab: legacy texture combining'. | After the basic vertex lighting has been calculated, textures are applied. In ShaderLab this is done using SetTexture command.
Fixed function texturing is the place to do old-style combiner effects. You can have multiple SetTexture commands inside a pass - all textures are applied in sequence, like layers in a painting... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_59b484e3f948 | unity_docs | rendering | What is `Windows.WebCam.WebCamMode` in Unity? Explain its purpose and usage. | WebCamMode
enumeration
Description
Describes the active mode of the Web Camera resource.
The Web Camera resource can only be in one mode at any given time.
Properties
Property
Description
None
Resource is not in use.
PhotoMode
Resource is in Photo Mode.
VideoMode
Resource is in Video Mode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_300d273825d1 | unity_docs | scripting | What is `PrefabUtility.ApplyPrefabInstance` in Unity? Explain its purpose and usage. | PrefabUtility.ApplyPrefabInstance
Declaration
public static void
ApplyPrefabInstance
(
GameObject
instanceRoot
,
InteractionMode
action
);
Parameters
Parameter
Description
instanceRoot
The root of the given Prefab instance.
action
The interaction mode for this action.
Description
Applies all override... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_71dfd66dff6d | unity_docs | scripting | What is `UIElements.StyleSheet` in Unity? Explain its purpose and usage. | StyleSheet
class in
UnityEngine.UIElements
/
Inherits from:
ScriptableObject
/
Implemented in:
UnityEngine.UIElementsModule
Description
Style sheets are applied to visual elements in order to control the layout and visual appearance of the user interface.
The
StyleSheet
class holds the imported data of ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cd30e537bf07 | unity_docs | scripting | In Unity's 'Awaitable code example reference', what is 'Frame coroutines' and how does it work? | You can use the frame-related async methods in the Awaitable class to create asynchronous Unity coroutines as an alternative to iterator-based coroutines:
```csharp
async Awaitable SampleSchedulingJobsForNextFrame()
{
// Wait until end of frame to avoid competing over resources with other Unity subsystems
await Await... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_982fb5a3a477 | unity_docs | audio | In Unity's 'Audio Low Pass Filter', what is 'Properties' and how does it work? | Property:
Function:
Cutoff Frequency
Lowpass cutoff frequency in Hertz (range 0.0 to 22000.0, default = 5000.0).
Lowpass Resonance Q
Lowpass resonance quality value (range 1.0 to 10.0, default = 1.0). | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a99c4aacb031 | unity_docs | editor | Explain 'Set up live debugging for Unity' in Unity. | Learn how to set up Visual Studio or WinDbg to debug your application or the Unity Editor as it runs. This type of debugging is called live debugging.
Live debugging is an effective way to identify and resolve issues as they occur during application runtime.
If you prefer to use crash dump files to debug your applicati... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_478a5283bfce | unity_docs | input | What is `WebGLInput.captureAllKeyboardInput` in Unity? Explain its purpose and usage. | WebGLInput.captureAllKeyboardInput
public static bool
captureAllKeyboardInput
;
Description
Capture all keyboard inputs.
This property determines whether keyboard inputs are captured by WebGL. If this is enabled (default), all inputs will be received by the WebGL canvas regardless of focus, and other elements i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d0765af41556 | unity_docs | audio | What is `Networking.DownloadHandlerAudioClip.streamAudio` in Unity? Explain its purpose and usage. | DownloadHandlerAudioClip.streamAudio
public bool
streamAudio
;
Description
Create streaming
AudioClip
.
Creates an AudioClip that can begin playback without needing the whole file to be downloaded. After starting the download, you must perform checks to determine that enough of your file has downloaded before ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fb2b3b29b7ce | unity_docs | scripting | What is `Unity.IntegerTime.DiscreteTime.operator_DiscreteTime` in Unity? Explain its purpose and usage. | DiscreteTime.RationalTime
Parameters
Parameter
Description
t
The DiscreteTime parameter.
Description
Converts a DiscreteTime to a RationalTime representation. This conversion is always lossless. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65037326c0ff | unity_docs | scripting | What is `UIElements.TreeViewItemData_1.ctor` in Unity? Explain its purpose and usage. | TreeViewItemData<T0> Constructor
Declaration
public
TreeViewItemData<T0>
(int
id
,
T
data
,
List<TreeViewItemData<T>>
children
);
Parameters
Parameter
Description
id
The item id.
data
The item data.
children
The item's children.
Description
Creates a TreeViewItemData_1 with all required parameters. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_012b38b65b55 | unity_docs | scripting | What is `Rendering.ReflectionProbeClearFlags.SolidColor` in Unity? Explain its purpose and usage. | ReflectionProbeClearFlags.SolidColor
Description
Clear with a background color.
Additional resources:
ReflectionProbe.clearFlags
property.
```csharp
using UnityEngine;
using System.Collections;
public class ExampleScript : MonoBehaviour
{
void Start()
{
ReflectionProbe probe = GetComponent<ReflectionProbe>();... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a402b0287d7f | unity_docs | scripting | What is `IMGUI.Controls.TreeView.SortItemIDsInRowOrder` in Unity? Explain its purpose and usage. | TreeView.SortItemIDsInRowOrder
Declaration
protected IList<int>
SortItemIDsInRowOrder
(IList<int>
ids
);
Parameters
Parameter
Description
ids
TreeViewItem IDs.
Description
Returns a list sorted in the order in which they are shown in the TreeView.
This can be useful when drag-and-dropping a multiselection... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1b1c0ce3e28 | unity_docs | editor | What is `PlayerSettings.WSA.certificatePath` in Unity? Explain its purpose and usage. | PlayerSettings.WSA.certificatePath
public static string
certificatePath
;
Description
The file path for the current Universal Windows Platform certificate.
In the Editor, Unity displays this under
Certificate
in
UWP Player Settings
. Read-only. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f44e03061bbb | unity_docs | editor | What are the parameters of `AssetDatabase.RemoveAssetBundleName` in Unity? | Description Remove the AssetBundle name from the Asset Database. ```csharp
using UnityEditor;
using UnityEngine;public class AssetDatabaseExamples : MonoBehaviour
{
[MenuItem("AssetDatabase/Remove Bundle Name")]
static void RemoveAssetBundleNameExample()
{
//Remove Asset Bundle name that is on Cube.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec0676992dad | unity_docs | scripting | What is `Unity.Properties.TypeUtility.CanBeInstantiated` in Unity? Explain its purpose and usage. | TypeUtility.CanBeInstantiated
Declaration
public static bool
CanBeInstantiated
(Type
type
);
Parameters
Parameter
Description
type
The type to query.
Returns
bool
true
if the given type is instantiatable.
Description
Returns
true
if the specified type is instantiatable.
Instantiatable is defin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2a5e724f2495 | unity_docs | rendering | In Unity's 'Deferred rendering path in the Built-In Render Pipeline', what is 'Implementation details' and how does it work? | Objects with Shaders that do not support deferred shading are rendered after deferred shading is complete, using the
forward rendering
path.
The default layout of the render targets (RT0 - RT4) in the G-buffer is listed below. Data types are placed in the various channels of each render target. The channels used are sh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52d2b6a081f7 | unity_docs | ui | What is `GUISkin.verticalSliderThumb` in Unity? Explain its purpose and usage. | GUISkin.verticalSliderThumb
public
GUIStyle
verticalSliderThumb
;
Description
Style used by default for the thumb that is dragged in
GUI.VerticalSlider
controls.
The padding property is used to determine the size of the thumb.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73487f550752 | unity_docs | scripting | What is `UIElements.MultiColumnListView.ctor` in Unity? Explain its purpose and usage. | MultiColumnListView Constructor
Declaration
public
MultiColumnListView
();
Description
Initializes a MultiColumnListView with an empty header.
Declaration
public
MultiColumnListView
(
UIElements.Columns
columns
);
Parameters
Parameter
Description
columns
Column definitions used to initialize the he... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_187c8d9ff04e | unity_docs | scripting | What is `Experimental.Rendering.ScriptableRuntimeReflectionSystem` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ScriptableRuntimeReflectionSystem
class in
UnityEngine.Experimental.Rendering
/
Implemented in:
UnityEngine.CoreModule
Implements interfaces:
IScriptableRuntimeReflectionSystem
Description
Empty implementation of
IScriptabl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3acbb57cf8a7 | unity_docs | physics | What is `PointEffector2D` in Unity? Explain its purpose and usage. | PointEffector2D
class in
UnityEngine
/
Inherits from:
Effector2D
/
Implemented in:
UnityEngine.Physics2DModule
Description
Applies forces to attract/repulse against a point.
When the source
Collider2D
is a trigger, the effector will apply forces whenever the target
Collider2D
overlaps the source. When the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af7988d2fd7d | unity_docs | physics | Show me a Unity C# example demonstrating `GUILayout.BeginScrollView`. | sition. Feed this back into the variable you pass in, as shown in the example.
Description
Begin an automatically laid out scrollview.
Automatically laid out scrollviews will take whatever content you have inside them and display normally. If it doesn't fit, scrollbars will appear. A call to BeginScrollView must a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b16ef64c1e0e | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.Pause`. | ();
Declaration
public void
Pause
(bool
withChildren
= true);
Parameters
Parameter
Description
withChildren
Pause all child Particle Systems as well.
Description
Pauses the system so no new particles are emitted and the existing particles are not updated.
Additional resources:
Play
,
Stop
functions.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bc51e2f0ccbd | unity_docs | xr | What is `PlayerSettings.allowHDRDisplaySupport` in Unity? Explain its purpose and usage. | PlayerSettings.allowHDRDisplaySupport
public static bool
allowHDRDisplaySupport
;
Description
Prepare the application to encode images for an HDR display.
When you enable
allowHDRDisplaySupport
, the application build includes all the resources, such as shaders, that are required to correctly encode the final... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e45d9973da4 | unity_docs | scripting | Show me a Unity C# example demonstrating `Rendering.PIX.BeginGPUCapture`. | PIX.BeginGPUCapture
Declaration
public static void
BeginGPUCapture
();
Description
Begins a GPU frame capture in PIX. If not running via PIX, or as a development build, then it has no effect.
```csharp
using UnityEngine;
using UnityEngine.Rendering;public class PixControl : MonoBehaviour
{
public int frameCapt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_55574340abb4 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.ExternalForcesModule.enabled`. | ParticleSystem.ExternalForcesModule.enabled
public bool
enabled
;
Description
Specifies whether the ExternalForcesModule is enabled or disabled.
Additional resources:
ParticleSystem.externalForces
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62dc311d3090 | unity_docs | rendering | What is `ParticleSystemRenderer.cameraVelocityScale` in Unity? Explain its purpose and usage. | ParticleSystemRenderer.cameraVelocityScale
public float
cameraVelocityScale
;
Description
How much do the particles stretch depending on the
Camera
's speed.
Use this to make particles become larger if the viewing Camera has a large speed.
```csharp
using UnityEngine;
using System.Collections;[RequireComponen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b6a2613b8fa5 | unity_docs | scripting | What is `Bounds.Intersects` in Unity? Explain its purpose and usage. | Bounds.Intersects
Declaration
public bool
Intersects
(
Bounds
bounds
);
Description
Does another bounding box intersect with this bounding box?
Check if the bounding box comes into contact with another bounding box. This returns a Boolean that is set to true if there is an intersection between bounds. Two bou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_00abda469e32 | unity_docs | scripting | What is `SystemLanguage.Russian` in Unity? Explain its purpose and usage. | SystemLanguage.Russian
Description
Russian.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Russian language
if (Application.systemLanguage == SystemLanguage.Russian)
{
//Outputs into console that the system is Russi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9bdcc68ef9d8 | unity_docs | rendering | In Unity's 'Search GameObjects with the Hierarchy search provider', what is 'Layers' and how does it work? | Find GameObjects by their built-in or user-defined layer.
```
h: layer=<layer ID>
```
For example: Find all GameObjects in the Water layer, whose ID is
4
:
```
h: layer=4
```
The visual query builder shows all available layers, including the built-in ones. If you want to use a textual query, you can find the layer ID a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b65a04719ee6 | unity_docs | scripting | What is `Caching.ClearCache` in Unity? Explain its purpose and usage. | Caching.ClearCache
Declaration
public static bool
ClearCache
();
Declaration
public static bool
ClearCache
(int
expiration
);
Parameters
Parameter
Description
expiration
The number of seconds that AssetBundles may remain unused in the cache.
Returns
bool
True when cache clearing succeeded, false if c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ca913765867f | unity_docs | networking | What is `Networking.PlayerConnection.IConnectionState.connectedToTarget` in Unity? Explain its purpose and usage. | IConnectionState.connectedToTarget
public
Networking.PlayerConnection.ConnectionTarget
connectedToTarget
;
Description
Supplies the type of the established connection, as in whether the target is a Player or an Editor.
ConnectionTarget.None could only be true from within a Player, because the Editor will alwa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_775da1d91d9a | unity_docs | rendering | What is `Shader.SetGlobalRayTracingAccelerationStructure` in Unity? Explain its purpose and usage. | Shader.SetGlobalRayTracingAccelerationStructure
Declaration
public static void
SetGlobalRayTracingAccelerationStructure
(string
name
,
Rendering.RayTracingAccelerationStructure
value
);
Declaration
public static void
SetGlobalRayTracingAccelerationStructure
(int
nameID
,
Rendering.RayTracingAccelerationSt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_519e6c4f0f82 | unity_docs | editor | In Unity's 'Asset package Asset Store publishing workflow', what is 'Publish an asset package to the Asset Store' and how does it work? | To create and publish assets as an asset package (.unitypackage
), do the following:
In the publisher portal,
create a package draft
.
In the Unity Editor:
Validate assets
.
Upload assets
.
In the publisher portal:
Submit a package for approval
.
Check the status of an Asset Store package submission
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c23d055f86e8 | unity_docs | scripting | What is `UIElements.BaseVerticalCollectionView.RemoveFromSelection` in Unity? Explain its purpose and usage. | BaseVerticalCollectionView.RemoveFromSelection
Declaration
public void
RemoveFromSelection
(int
index
);
Parameters
Parameter
Description
index
The item index.
Description
Removes an item from the collection of selected items. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b5bc8b296cee | unity_docs | scripting | What is `ShortcutManagement.ShortcutBindingChangedEventArgs.ctor` in Unity? Explain its purpose and usage. | ShortcutBindingChangedEventArgs Constructor
Declaration
public
ShortcutBindingChangedEventArgs
(string
shortcutId
,
ShortcutManagement.ShortcutBinding
oldBinding
,
ShortcutManagement.ShortcutBinding
newBinding
);
Parameters
Parameter
Description
shortcutId
The ID of the shortcut that had its binding ch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_786d9946f32a | unity_docs | rendering | Explain 'Play Asset Delivery' in Unity. | Play Asset Delivery (PAD) is the asset splitting solution for the
Android App Bundle
(AAB) publishing format. PAD uses asset packs to store additional assets such as textures, sounds, and meshes. Google hosts and serves asset packs on Google Play, which means you don’t need to create a content delivery network to send ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_80a529aa7265 | unity_docs | scripting | What is `UICharInfo` in Unity? Explain its purpose and usage. | UICharInfo
struct in
UnityEngine
/
Implemented in:
UnityEngine.TextRenderingModule
Description
Class that specifies some information about a renderable character.
Properties
Property
Description
charWidth
Character width.
cursorPos
Position of the character cursor in local (text generated) space. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2edc493f9cf | unity_docs | scripting | What are the parameters of `Mesh.GetVertexAttributeStream` in Unity? | Returns int Stream index of the data attribute, or -1 if it is not present. Description Gets the vertex buffer stream index of a specific vertex data attribute on this Mesh. Meshes usually use a single vertex buffer stream, but it is possible to set up a vertex layout where attributes
use different vertex buffers (see ... | 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.