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_0f1e1def3c6a | unity_docs | rendering | What is `Device.SystemInfo.copyTextureSupport` in Unity? Explain its purpose and usage. | SystemInfo.copyTextureSupport
public static
Rendering.CopyTextureSupport
copyTextureSupport
;
Description
This has the same functionality as
SystemInfo.copyTextureSupport
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ec8d8a49b839 | unity_docs | rendering | Explain 'Specular' in Unity. | Note.
Unity 5 introduced the
Standard Shader
which replaces this
shader
.
## Specular Properties
Specular computes the same simple (Lambertian) lighting as Diffuse, plus a viewer dependent specular highlight. This is called the Blinn-Phong lighting model. It has a specular highlight that is dependent on surface angle... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_86f036006271 | unity_docs | scripting | What is `ParticleSystem.Play` in Unity? Explain its purpose and usage. | ParticleSystem.Play
Declaration
public void
Play
();
Declaration
public void
Play
(bool
withChildren
= true);
Parameters
Parameter
Description
withChildren
Play all child Particle Systems as well.
Description
Starts the Particle System.
Sets the Particle Systems into play mode and enables emitting (... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_64e17498b302 | unity_docs | animation | Give me an overview of the `AnimatorStateInfo` class in Unity. | AnimatorStateInfo
struct in
UnityEngine
/
Implemented in:
UnityEngine.AnimationModule
Description
Information about the current or next state.
Properties
Property
Description
fullPathHash
The full path hash for this state.
length
Current duration of the state.
loop
Is the state looping.
normalizedTime
Nor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a2a99f3a4cf4 | unity_docs | animation | What is `AnimationUtility.GetObjectReferenceCurveBindings` in Unity? Explain its purpose and usage. | AnimationUtility.GetObjectReferenceCurveBindings
Declaration
public static EditorCurveBinding[]
GetObjectReferenceCurveBindings
(
AnimationClip
clip
);
Description
Retrieves the object reference curve bindings stored in the animation clip.
Use this method to find which object reference properties are animatab... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd7f5df3c1d7 | unity_docs | physics | What is `Rigidbody2D.ClosestPoint` in Unity? Explain its purpose and usage. | Rigidbody2D.ClosestPoint
Declaration
public
Vector2
ClosestPoint
(
Vector2
position
);
Parameters
Parameter
Description
position
The position from which to find the closest point on this Rigidbody.
Returns
Vector2
A point on the perimeter of a Collider attached to this rigidbody that is closest to the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ba0b8badb119 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddShellScriptBuildPhaseBeforeTargetPostprocess`. | es.
Returns
string
Returns the GUID of the new phase.
Description
Creates a new copy shell script phase for a given target.
If a shell script build phase with the same name,
shellPath
,
shellScript
, and
inputPaths
is already configured for the target, the function returns the existing phase. The new phase... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dd06cbadf20f | unity_docs | scripting | What is `Experimental.GraphView.GraphElement.OnSelected` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphElement.OnSelected
Declaration
public void
OnSelected
();
Description
Called when the GraphElement is selected. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3c0db48e0fa7 | unity_docs | animation | What is `Animations.CurveFilterOptions.unrollRotation` in Unity? Explain its purpose and usage. | CurveFilterOptions.unrollRotation
public bool
unrollRotation
;
Description
Whether to apply rotation unrolling. This option is enabled by default.
Enable this option to unroll rotation curves. This results in rotation curves with keys set to all values rather than being set between -180 and 180 degrees. Unrolli... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7e23523c0c22 | github | scripting | Write a Unity C# UI script for Test Script | ```csharp
using UnityEngine;
public class TestScript : MonoBehaviour {
//Button without any parameter
[InspectButton("My Function")]
public void TestMethod() {
Debug.Log("Button pressed");
}
//Buttons with supported primative parameters
[InspectButton]
public void TestMeth... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_5cc22395a4f5 | unity_docs | ui | Show me a Unity C# example demonstrating `GUISkin.verticalScrollbarUpButton`. | GUISkin.verticalScrollbarUpButton
public
GUIStyle
verticalScrollbarUpButton
;
Description
Style used by default for the up button on
GUI.VerticalScrollbar
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the vertical scrollbar
// up button of the current GUISk... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6910d9d9a9ea_doc_24 | github | scripting | What does `OnTriggerExitAsObservable` do in this Unity script? Explain its purpose and signature. | OnTriggerExit is called when the Collider other has stopped touching the trigger.
Signature:
```csharp
public static IObservable<Collider> OnTriggerExitAsObservable(this Component component)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_d9430f2e8f9c | unity_docs | math | What is `Unity.Collections.NativeArray_1.ReadOnly.Reinterpret` in Unity? Explain its purpose and usage. | NativeArray<T0>.Reinterpret
Declaration
public ReadOnly<U>
Reinterpret
();
Returns
ReadOnly<U>
An alias of the
ReadOnly
, but reinterpreted as the target type.
Description
Reinterpret a
ReadOnly
with a different data type (type punning).
The sizes of
T
and
U
must match. You can use this method to c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d86eb5410ee | unity_docs | scripting | Give me an overview of the `ImagePosition` class in Unity. | ImagePosition
enumeration
Description
How image and text is placed inside
GUIStyle
.
Properties
Property
Description
ImageLeft
Image is to the left of the text.
ImageAbove
Image is above the text.
ImageOnly
Only the image is displayed.
TextOnly
Only the text is displayed. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_1ad72fcf5e5b | github | scripting | Write a Unity C# MonoBehaviour script called Event Link | ```csharp
using Hudossay.AttributeEvents.Assets.Runtime.GameEvents;
using System;
using UnityEngine;
namespace Hudossay.AttributeEvents.Assets.Runtime.EventLinks
{
/// <summary>
/// Links one event from broadcaster GameObject to one method from listener GameObject's MoonoBehaviour.
/// </summary>
publi... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_b4e7afb62c4b | unity_docs | rendering | Show me a Unity code example for 'Set the Rendering Mode in the Standard Shader using a script'. | o change the Rendering Mode of a Material, but you can make the same changes in your code.
To see the changes that Unity makes when you change the
Rendering Mode
:
Download the source code for Unity’s built-in
shaders
. See
Make your own shader
for instructions.
Open the file
StandardShaderGUI.cs
.
Locate the area of t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fcda6d7c290f | unity_docs | physics | What are the parameters of `PhysicsScene2D.OverlapCapsule` in Unity? | Returns Collider2D The collider overlapping the capsule. Description Checks a capsule against Colliders in the PhysicsScene2D, returning the first intersection only. An "OverlapCapsule" is conceptually like looking at the Scene through a capsule shape to determine what can be seen. Any Collider2D seen can be detected a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e202f25cb81e | unity_docs | scripting | What is `MonoBehaviour.OnAnimatorIK` in Unity? Explain its purpose and usage. | MonoBehaviour.OnAnimatorIK(int)
Parameters
Parameter
Description
layerIndex
The index of the layer on which the IK solver is called.
Description
Callback for setting up animation IK (inverse kinematics).
OnAnimatorIK
is called by the
Animator
component immediately before it updates its internal IK system. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35eabdbce3fe | unity_docs | rendering | What is `DestroyAssetObjectEventArgs` in Unity? Explain its purpose and usage. | DestroyAssetObjectEventArgs
struct in
UnityEditor
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... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9de9799cd05d | unity_docs | scripting | What is `UIElements.FloatField.ctor` in Unity? Explain its purpose and usage. | FloatField Constructor
Declaration
public
FloatField
();
Description
Constructor.
Declaration
public
FloatField
(int
maxLength
);
Parameters
Parameter
Description
maxLength
Maximum number of characters the field can take.
Description
Constructor.
Declaration
public
FloatField
(string
label
,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5f69177bbc2e | unity_docs | math | What is `AndroidJNI.CallStaticIntMethodUnsafe` in Unity? Explain its purpose and usage. | AndroidJNI.CallStaticIntMethodUnsafe
Declaration
public static int
CallStaticIntMethodUnsafe
(IntPtr
clazz
,
IntPtr
methodID
,
jvalue*
args
);
Description
Invokes the specified
methodID
static method on a Java object, optionally passing in an array of arguments (
args
).
Additional resources:
Java Native ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a41f3660b3e2 | unity_docs | ui | What is `GUIStyle.wordWrap` in Unity? Explain its purpose and usage. | GUIStyle.wordWrap
public bool
wordWrap
;
Description
Should the text be wordwrapped?
This will cause any text contrained to be wordwrapped to fit within the width of a control.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void OnGUI()
{
GUI.skin.button.wordWrap = true;
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e5fcb69e3718 | unity_docs | scripting | In Unity's 'ToolbarButton', what is 'Inherited UXML attributes' and how does it work? | This element inherits the following attributes from its base class:
Name Type Description
binding-path string Path of the target property to be bound.
display-tooltip-when-elided boolean When true, a tooltip displays the full version of elided text, and also if a tooltip had been previously provided, it will be overwri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_71b248ec2f73 | unity_docs | scripting | Give me an overview of the `WebCamTexture` class in Unity. | WebCamTexture
class in
UnityEngine
/
Inherits from:
Texture
/
Implemented in:
UnityEngine.AudioModule
Description
WebCam Textures are textures onto which the live video input is rendered.
On Android, iOS, and WebGL platforms,
WebCamTexture
requires the camera permission.
On Android, you can request it at ru... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_32d4f71f6c66 | unity_docs | physics | What is `Collision2D.enabled` in Unity? Explain its purpose and usage. | Collision2D.enabled
public bool
enabled
;
Description
Indicates whether the collision response or reaction is enabled or disabled.
Certain features can disable collision responses which means you still get the collision callback but no response or reaction happens. For example, two boxes going through each othe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8648fa0b0f30 | unity_docs | rendering | What is `Rendering.ShaderSnippetData` in Unity? Explain its purpose and usage. | ShaderSnippetData
struct in
UnityEditor.Rendering
Description
Collection of properties about the specific shader code being compiled.
Properties
Property
Description
pass
An opaque identifier for the pass being compiled.
passName
Shader pass name.
passType
Shader pass type for Unity's lighting pipeline.
sha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_177a66e54bc5 | unity_docs | editor | What is `PackageManager.Events` in Unity? Explain its purpose and usage. | Events
class in
UnityEditor.PackageManager
Description
An Interface for accessing the package manager events.
Events
Event
Description
registeredPackages
Event raised after applying changes to the registered packages list.
registeringPackages
Event raised before applying changes to the registered packages li... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31b5f7b02649 | unity_docs | physics | What is `UIElements.Binding` in Unity? Explain its purpose and usage. | Binding
class in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Base class for defining a binding.
Properties
Property
Description
isDirty
When set to true, the binding instance updates during the next update cycle.
When set to false, the binding instance updates only... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_54cb2444665a | unity_docs | ui | In Unity's 'Control textures of the dynamic atlas', what is 'Apply built-in filters' and how does it work? | The dynamic atlas texture starts from a specified minimum size, and grows as needed, doubling horizontally or vertically, up to a specified maximum size. You can define the
minimum and maximum atlas sizes
in the Panel Settings asset. You can also use the filters in the dynamic atlas to decide whether to add a sub-textu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9db883a8c0c2 | unity_docs | editor | What is `EditorGUI.actionKey` in Unity? Explain its purpose and usage. | EditorGUI.actionKey
public static bool
actionKey
;
Description
Is the platform-dependent "action" modifier key held down? (Read Only)
The key is Command on macOS, Control on Windows.
Action Key usage, key not pressed/key pressed.
```csharp
using UnityEngine;
using UnityEditor;
// Shows a password field with s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e268b0beb3ed | unity_docs | scripting | What is `UIElements.MinMaxSlider` in Unity? Explain its purpose and usage. | MinMaxSlider
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.BaseField_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
A min/max slider containing a representation of a range. For more information, refer to
UXML element MinMaxSlider
.
The MinMaxSlider manages navigation events in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_983cb9579222_doc_9 | github | scripting | What does `LogMessage` do in this Unity script? Explain its purpose and signature. | Log wrapper for all debug logs of this class.Message to be logged.
Signature:
```csharp
private static void LogMessage(string message)
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_51f05ca6cffc | unity_docs | physics | What is `ContactPoint2D` in Unity? Explain its purpose and usage. | ContactPoint2D
struct in
UnityEngine
/
Implemented in:
UnityEngine.Physics2DModule
Description
Details about a specific point of contact involved in a 2D physics collision.
A contact point describes a point of intersection between two
Collider2D
.
ContactPoint2D
can only exist on
Collider2D
that are not se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af1d67272b67 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUIUtility.CommandEvent`. | EditorGUIUtility.CommandEvent
Declaration
public static
Event
CommandEvent
(string
commandName
);
Parameters
Parameter
Description
commandName
The command to be sent.
Description
Creates an event that can be sent to another window.
```csharp
// Sends a paste event to an EditorWindow, as if Paste
// was ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e52b09c6020 | unity_docs | xr | What is `ObjectChangeEventStream.GetChangeSceneEvent` in Unity? Explain its purpose and usage. | ObjectChangeEventStream.GetChangeSceneEvent
Declaration
public void
GetChangeSceneEvent
(int
eventIdx
,
out
ChangeSceneEventArgs
data
);
Parameters
Parameter
Description
eventIdx
The index of the event to get the data for.
Description
Retrieves the event data at the given index as a
ChangeSceneEventArg... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a7fc006c334 | unity_docs | scripting | What is `PackageManager.VersionsInfo.recommended` in Unity? Explain its purpose and usage. | VersionsInfo.recommended
public string
recommended
;
Description
A version of the package recommended to use with the current version of Unity. If there is no recommended version, then this property is an empty string. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_935ff543f6d2 | unity_docs | rendering | What is `TextureImporterCubemapConvolution.Specular` in Unity? Explain its purpose and usage. | TextureImporterCubemapConvolution.Specular
Description
Specular convolution (aka Prefiltered Environment Map).
Each pixel of this
Cubemap
texture is replaced with the integral of incident illumination towards corresponding direction weighted with the Phong lobe. Each mipmap is convolved with varying Phong exponen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_deda46fe5556 | unity_docs | editor | What is `Search.SearchIndexer.SetMetaInfo` in Unity? Explain its purpose and usage. | SearchIndexer.SetMetaInfo
Declaration
public void
SetMetaInfo
(string
documentId
,
string
metadata
);
Parameters
Parameter
Description
documentId
Id of a document.
metadata
Metadata to bind to that document.
Description
Set arbiraty metadata on a specific document.
```csharp
using System.IO;
using Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_efff56ba87ac | unity_docs | scripting | What is `Experimental.GraphView.Attacher.alignment` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Attacher.alignment
public
SpriteAlignment
alignment
;
Description
Relative alignment between the attached element and the target. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b6220980463 | unity_docs | rendering | What is `LOD.ctor` in Unity? Explain its purpose and usage. | LOD Constructor
Declaration
public
LOD
(float
screenRelativeTransitionHeight
,
Renderer[]
renderers
);
Parameters
Parameter
Description
screenRelativeTransitionHeight
The screen relative height to use for the transition [0-1].
renderers
An array of renderers to use for this LOD level.
Description
Constr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_122f72ee9226 | unity_docs | scripting | Show me a Unity C# example demonstrating `Vector3.operator_divide`. | Vector3.operator /
public static
Vector3
operator /
(
Vector3
a
,
float
d
);
Description
Divides a vector by a number.
Divides each component of
a
by a number
d
.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void Example()
{
// make the vector twi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8ba2c49edc8f | unity_docs | scripting | In Unity's 'Rotation Constraint component', what is 'Properties' and how does it work? | Property Description Activate
After you rotate the constrained GameObject and its source GameObjects, click Activate to save this information.
Activate
saves the current offset from the source GameObjects in
Rotation At Rest and Rotation Offset
then enables
Is Active and Lock
.
Zero
Sets the rotation of the constrained... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c61ae0c17ce4_doc_1 | github | scripting | What does `GoBack` do in this Unity script? Explain its purpose and signature. | Switches to the menu set as `backMenu` unless it is `null`.
Signature:
```csharp
public void GoBack()
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_a21f0daad83e | unity_docs | rendering | In Unity's 'Introduction to post-processing', what is 'Render pipeline compatibility' and how does it work? | Which post-processing effects are available and how you apply them depend on which
render pipeline
you are using. A post-processing solution from one render pipeline is not compatible with other render pipelines.
This table contains information about which of Unity’s post-processing solutions are compatible with each o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1847c31ac22f | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.VersionControlObject.OnDeactivate`. | te
();
Description
Called when your version control system is deactivated.
This happens when the user selects a different VCS from Version Control settings window, or if it gets deactivated from script, or when the Editor is closed.
Unity calls this method to inform
VersionControlObject
that it's no longer activ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cbb0ff2e71eb | unity_docs | rendering | Show me a Unity code example for 'Fallback block in ShaderLab reference'. | place a Fallback block inside a Shader block.
Signature Function Fallback "<name>"
If no compatible SubShaders are found, use the named Shader object.
Fallback Off
Do not use a fallback Shader object in place of this one. If no compatible SubShaders are found, display the
error shader
.
## Example
This example code d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f177a7a2fc1c | unity_docs | math | What are the parameters of `Mathf.LerpAngle` in Unity? | Returns float Returns the interpolated float result between angle a and angle b , based on the interpolation value t . Description Same as Lerp but makes sure the values interpolate correctly when they wrap around 360 degrees. This method returns the shortest path between the specified angles. This method wraps around ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee3527183a8d | unity_docs | physics | Give me an overview of the `CharacterJoint` class in Unity. | CharacterJoint
class in
UnityEngine
/
Inherits from:
Joint
/
Implemented in:
UnityEngine.PhysicsModule
Description
Character Joints are mainly used for Ragdoll effects.
They are an extended ball-socket joint which allows you to limit the joint on each axis.
Properties
Property
Description
enableProjectio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73dfb905a544 | unity_docs | audio | What is `AudioImporterSampleSettings.preloadAudioData` in Unity? Explain its purpose and usage. | AudioImporterSampleSettings.preloadAudioData
public bool
preloadAudioData
;
Description
Preloads audio data of the clip when the clip asset is loaded. When this flag is off, scripts have to call AudioClip.LoadAudioData() to load the data before the clip can be played. Properties like length, channels and format ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_08d14346d92f | github | scripting | Write a Unity C# XR/VR script for Clipboard Manager | ```csharp
// Copyright 2020 The Tilt Brush Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4b2b3df272cf | unity_docs | rendering | Explain 'Image import settings' in Unity. | After you have imported an image to your project, for the most intuitive results, it’s recommended that you apply certain import settings for Textures,
Sprites
, and Vector images before you use them as a background for a
visual element
in the UI Builder.
## Texture
The recommended import settings for a Texture image... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_612d41cd20ed | unity_docs | physics | What are the parameters of `Physics.RaycastNonAlloc` in Unity? | Returns int The amount of hits stored into the results buffer. Description Cast a ray through the Scene and store the hits into the buffer. Like Physics.RaycastAll , but generates no garbage. The raycast query ends when there are no more hits and/or the results buffer is full. The order of the results is undefined. Whe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2238297f3208 | unity_docs | scripting | What is `QualitySettings.terrainPixelError` in Unity? Explain its purpose and usage. | QualitySettings.terrainPixelError
public static float
terrainPixelError
;
Description
Value set to
Terrain.heightmapPixelError
if
TerrainQualityOverrides.PixelError
is set in
terrainQualityOverrides
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_72ae534feca6 | unity_docs | scripting | Explain 'IL2CPP scripting backend for UWP' in Unity. | IL2CPP is the only
scripting backend
Unity supports to build Universal Windows Platform (UWP) applications. When you build a project using IL2CPP , Unity converts the Microsoft Intermediate Language code from your scripts into C++ before creating a native binary file. For more information on IL2CPP, refer to
IL2CPP ove... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c3fc98af1d41 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUI.ProgressBar`. | ic static void
ProgressBar
(
Rect
position
,
float
value
,
string
text
);
Parameters
Parameter
Description
totalPosition
Rectangle on the screen to use in total for both the control.
value
Value that is shown.
Description
Makes a progress bar.
Value goes from 0 to 1, where 0 means 0% of the bar filled ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4bbcba4d2215 | unity_docs | physics | What is `PhysicsMaterial2D.GetCombinedValues` in Unity? Explain its purpose and usage. | PhysicsMaterial2D.GetCombinedValues
Declaration
public static float
GetCombinedValues
(float
valueA
,
float
valueB
,
PhysicsMaterialCombine2D
materialCombineA
,
PhysicsMaterialCombine2D
materialCombineB
);
Parameters
Parameter
Description
valueA
Friction or bounciness value used by one
Collider2D
.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_51c95539df91 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.RemoveElement` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.RemoveElement
Declaration
public void
RemoveElement
(
Experimental.GraphView.GraphElement
graphElement
);
Parameters
Parameter
Description
graphElement
Element to remove.
Description
Remove element from the g... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a0af3791ad4a | unity_docs | scripting | What is `Experimental.GraphView.IconBadge.visualStyle` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
IconBadge.visualStyle
public string
visualStyle
;
Description
The visual style for the badge. Built-in values are "error" and "comment". | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5fa09becb9b5 | unity_docs | rendering | Show me a Unity code example for 'Shader keywords workflow'. | lowing steps:
Declare a shader keyword, or a set of shader keywords.
Use an if statement to branch the shader code depending on the state of the keyword.
Toggle the shader keyword to control which branch is active.
## Declare a shader keyword
Declare a shader keyword, or a set of shader keywords, using a
#pragma
stat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0dc0e3e260d2 | unity_docs | animation | What is `Animations.AnimatorController.parameters` in Unity? Explain its purpose and usage. | AnimatorController.parameters
public AnimatorControllerParameter[]
parameters
;
Description
Parameters are used to communicate between scripting and the controller. They are used to drive transitions and blendtrees for example.
It's important to note that the AnimatorControllerParameters are returned as a copy.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1fb461fb3123 | unity_docs | rendering | In Unity's 'Create samples for packages', what is 'Location of sample files' and how does it work? | You can add your sample assets under subfolders of the
Samples~
folder of your package. For example, a package with shader samples might look something like this:
```
MyPackage
├── package.json
└── Samples~
├── SamplesHDRP
│ ├── Textures
│ | ├── MossyRock.bmp
│ | └── SandyRock.bmp
│ └── Shader
│ ├── Lit Texture... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d00fc0fa9778 | unity_docs | editor | What is `SceneManagement.PrefabStage.openedFromInstanceRoot` in Unity? Explain its purpose and usage. | PrefabStage.openedFromInstanceRoot
public
GameObject
openedFromInstanceRoot
;
Description
The root of the Prefab instance that you opened Prefab Mode through.
This is null if you did not open the Prefab Stage via a Prefab instance. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_58097b89d714 | unity_docs | scripting | Explain 'Assign tags to GameObjects' in Unity. | A tag is a reference word which you can assign to one or more
GameObjects
. For example, you might define “Player” tags for player-controlled characters and an “Enemy” tag for non-player-controlled characters. You might define items the player can collect in a Scene with a “Collectable” tag. You can use any word you wa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a306f5c5ac3c | unity_docs | rendering | Explain 'Enable shadows' in Unity. | Each Light in a scene can cast the following types of shadows:
Real-time shadows
. Unity stores the shadows cast from each Light in
shadow map textures
. The textures update each frame; shadows move when the lights move.
Baked shadows. The Unity lightmapper stores the shadows received by each GameObject in static light... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dd094580004f | unity_docs | scripting | What is `PackageManager.PackageInfo.isDeprecated` in Unity? Explain its purpose and usage. | PackageInfo.isDeprecated
public bool
isDeprecated
;
Description
Set to `true` if the package version that this instance represents is deprecated.
Additional resources: PackageInfo.deprecated for the deprecation message.
Additional resources:
VersionsInfo.deprecated
for the list of all deprecated versions. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_398cd75058d8 | unity_docs | editor | Show me a Unity code example for 'Create list and tree views'. | ple creates in this
GitHub repository
.
## Create the data in C#
Create data in a C# script that’s made up of two groups of planets and the
root nodes
for the tree view.
Create a project in Unity with any template.
In your
Project window
, create a folder named
Editor
.
In the Editor folder, create a C# script named
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d346a6c128c3 | unity_docs | audio | Explain 'Audio High Pass Filter' in Unity. | The
Audio High Pass Filter
passes high frequencies of an AudioSource and cuts off signals with frequencies lower than the
Cutoff Frequency
.
## Properties
Property:
Function:
Cutoff Frequency
Highpass cutoff frequency in Hertz (range 10.0 to 22000.0, default = 5000.0).
Highpass Resonance Q
Highpass resonance quality ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ffe316456d75 | unity_docs | physics | What is `MonoBehaviour.OnParticleTrigger` in Unity? Explain its purpose and usage. | MonoBehaviour.OnParticleTrigger()
Description
OnParticleTrigger is called when any particles in a Particle System meet the conditions in the trigger module.
This can be used to kill or modify particles that are inside or outside a collision volume.
```csharp
using UnityEngine;
using System.Collections;
using Syst... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2c0df152b19e | unity_docs | scripting | Show me a Unity C# example demonstrating `Collider.enabled`. | Collider.enabled
public bool
enabled
;
Description
Enabled Colliders will collide with other Colliders, disabled Colliders won't.
This is shown as the small checkbox in the inspector of the Colliders. It decides if a GameObject can collide with other Colliders.
```csharp
//This example enables and disables the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_81b1d86daf25 | unity_docs | scripting | Explain 'Automated plug-in integration' in Unity. | Unity supports automated
plug-in
integration and copies files with the following extensions to the generated Xcode project:.a
,.m
,.mm
,.c
,.cpp
,.h
,.swift
.
To enable automated plug-in integration, enable iOS plug-ins in the Plug-in
Inspector
.
If you place files with these extensions in the
Assets/Plugins/iOS
folder... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_05359cc78503 | unity_docs | scripting | What are the parameters of `LightTransport.RadeonRaysContext.IsCompleted` in Unity? | Returns bool True if the asynchronous operation has completed. Description Returns true if the asynchronous operation completed. This method returns immediately and does not wait for the operation to complete. Use Flush to force the device implementation to start processing commands. Use IDeviceContext.Wait to busy-wai... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d71db69c8bf4 | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.PropertyDatabase.Store`. | PropertyDatabase.Store
Declaration
public bool
Store
(string
documentId
,
string
propertyPath
,
object
value
);
Parameters
Parameter
Description
documentId
A document identifier.
propertyPath
A property path or name.
value
The value of the property.
Returns
bool
True if the store operation succeede... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d110e9c95e4d | unity_docs | scripting | In Unity's 'ObjectField', what is 'Example' and how does it work? | The following UXML example creates an ObjectField:
```
<UXML xmlns="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements">
<uie:ObjectField label="UXML Field" name="the-uxml-field" />
</UXML>
```
The following C# example illustrates some of the customizable functionalities of the MinMaxSlider:
```
/// <sample>
//... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af66a32fccbf | unity_docs | scripting | What is `UIElements.Toggle.checkmarkUssClassName` in Unity? Explain its purpose and usage. | Toggle.checkmarkUssClassName
public static string
checkmarkUssClassName
;
Description
USS class name of Images in Toggle elements.
Unity adds this USS class to the Image sub-element of the
Toggle
that contains the checkmark image. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_73729a344392 | unity_docs | scripting | In Unity's 'Constraint components introduction', what is 'Setting Constraint properties' and how does it work? | Use the
Inspector window
to change common properties in a Constraint.
Use Weight to vary the influence of a Constraint. A weight of 1 causes the Constraint to update a GameObject at the same rate as its source GameObjects. A weight of 0 removes the effect of the Constraint completely. Each source GameObject also has an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13f0bce0dc38 | unity_docs | performance | What is `Profiling.ProfilerArea.UI` in Unity? Explain its purpose and usage. | ProfilerArea.UI
Description
UI statistics.
NOTE: Collecting UI samples adds a particularly high amount of profiling overhead. Consider turning this area off when you don't need it. See
Profiler.SetAreaEnabled
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_71520600fe9b | unity_docs | rendering | Show me a Unity code example for 'Building plug-ins for desktop platforms'. | For more information about working with Xcode, refer to
Apple’s documentation on Xcode
.
## Requirements
You can build your plug-in as a universal binary that’s compatible with 64-bit architectures. Alternatively, you can provide separate dylib files.
If you are using C++ (.cpp
) or Objective-C (.mm
) to implement th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b184d833f5dd | unity_docs | scripting | What is `Experimental.GraphView.PlacematContainer.ctor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
PlacematContainer Constructor
Declaration
public
PlacematContainer
(
Experimental.GraphView.GraphView
graphView
);
Parameters
Parameter
Description
graphView
The GraphView that uses this PlacematContainer.
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e6fb4c9925a1 | unity_docs | rendering | What is `Rendering.VideoShadersIncludeMode.Referenced` in Unity? Explain its purpose and usage. | VideoShadersIncludeMode.Referenced
Description
Include video shaders in builds when referenced by scenes.
If a
VideoPlayer
or
VideoClip
is in a scene, video shaders are included in the build.
Note:
Class references are not inspected during the build. If you create a
VideoPlayer
through scripting and you are ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1e4cedc84404 | unity_docs | editor | What is `Device.SystemInfo.graphicsDeviceName` in Unity? Explain its purpose and usage. | SystemInfo.graphicsDeviceName
public static string
graphicsDeviceName
;
Description
This has the same functionality as
SystemInfo.graphicsDeviceName
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_ba4a51a8c8f1 | unity_docs | rendering | What is `Material.SetPropertyLock` in Unity? Explain its purpose and usage. | Material.SetPropertyLock
Declaration
public void
SetPropertyLock
(string
name
,
bool
value
);
Declaration
public void
SetPropertyLock
(int
nameID
,
bool
value
);
Parameters
Parameter
Description
nameID
Property name ID, use
Shader.PropertyToID
to get it.
name
Property name, e.g. "_SrcBlend".
val... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5f0bbb4a5eb2 | unity_docs | editor | Give me an overview of the `ChangeSceneEventArgs` class in Unity. | ChangeSceneEventArgs
struct in
UnityEditor
Description
A change of this type indicates that an open scene has been changed ("dirtied") without any more specific information available. This happens for example when
EditorSceneManager.MarkSceneDirty
is used.
Properties
Property
Description
scene
The Scene that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1da648c292ca | unity_docs | editor | What is `UIElements.EditorTextRenderingMode` in Unity? Explain its purpose and usage. | EditorTextRenderingMode
enumeration
Description
Defines how the editor rendering the text by default
Properties
Property
Description
SDF
Sdf is using a single FontAsset is needed to render multiple resulting fontsize
Bitmap
Every font size needed is creating a new FontAsset to be as sharp as possible. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a287a0ac827b | unity_docs | scripting | What is `ParticleSystem.CollisionModule.lifetimeLoss` in Unity? Explain its purpose and usage. | ParticleSystem.CollisionModule.lifetimeLoss
public
ParticleSystem.MinMaxCurve
lifetimeLoss
;
Description
How much a collision reduces a particle's lifetime.
Additional resources:
ParticleSystem.collision
,
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(Particl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_49782246e25b | unity_docs | scripting | Explain 'Video playback in Web' in Unity. | Unity Web supports video playback using the VideoPlayer API. This page provides information only about the video playback capabilities that Web supports. To learn how to use video with your Unity application, refer to the
Video Player
.
## Video player
You can use the Video Player component to control how to time vid... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c25685b50b8a | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.IsBlittable` in Unity? Explain its purpose and usage. | UnsafeUtility.IsBlittable
Declaration
public static bool
IsBlittable
();
Declaration
public static bool
IsBlittable
(Type
type
);
Parameters
Parameter
Description
type
The
System.Type
of a struct.
Returns
bool
True if struct is blittable, otherwise false.
Description
Gets whether a struct is bl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8142356b12d8 | unity_docs | scripting | What is `Search.SearchIndexer.SkipEntry` in Unity? Explain its purpose and usage. | SearchIndexer.SkipEntry
Declaration
public bool
SkipEntry
(string
document
,
bool
checkRoots
);
Parameters
Parameter
Description
document
Path of a document.
checkRoots
Check Roots.
Returns
bool
Returns true if the document doesn't need to be indexed.
Description
Called when the index is built to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_106bf8b56106 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUILayout.BeginFadeGroup`. | EditorGUILayout.BeginFadeGroup
Declaration
public static bool
BeginFadeGroup
(float
value
);
Parameters
Parameter
Description
value
A value between 0 and 1, 0 being hidden, and 1 being fully visible.
Returns
bool
If the group is visible or not.
Description
Begins a group that can be be hidden/shown a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f068976de186 | unity_docs | math | What is `Material.SetMatrixArray` in Unity? Explain its purpose and usage. | Material.SetMatrixArray
Declaration
public void
SetMatrixArray
(string
name
,
Matrix4x4[]
values
);
Declaration
public void
SetMatrixArray
(int
nameID
,
Matrix4x4[]
values
);
Declaration
public void
SetMatrixArray
(string
name
,
List<Matrix4x4>
values
);
Declaration
public void
SetMatrixArray
(int... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_24ba43c97cb9 | unity_docs | rendering | What is `ShaderPrecisionModel.PlatformDefault` in Unity? Explain its purpose and usage. | ShaderPrecisionModel.PlatformDefault
Description
Use the target platform defaults. The default sampler precision is half precision on mobile targets and full precision elsewhere. Also, shader type
half
is defined as
min16float
on mobile targets and
float
elsewhere. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_228990de615e | unity_docs | scripting | What is `SystemLanguage.Catalan` in Unity? Explain its purpose and usage. | SystemLanguage.Catalan
Description
Catalan.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Catalan language
if (Application.systemLanguage == SystemLanguage.Catalan)
{
//Outputs into console that the system is Catal... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_306e538b6197 | unity_docs | math | What is `IMGUI.Controls.SphereBoundsHandle.OnHandleChanged` in Unity? Explain its purpose and usage. | SphereBoundsHandle.OnHandleChanged
Declaration
protected
Bounds
OnHandleChanged
(
IMGUI.Controls.PrimitiveBoundsHandle.HandleDirection
handle
,
Bounds
boundsOnClick
,
Bounds
newBounds
);
Parameters
Parameter
Description
handle
The handle that was dragged.
boundsOnClick
The raw
Bounds
for this in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cd72db003184 | unity_docs | animation | What is `AnimatorClipInfo` in Unity? Explain its purpose and usage. | AnimatorClipInfo
struct in
UnityEngine
/
Implemented in:
UnityEngine.AnimationModule
Description
Information about clip being played and blended by the Animator.
Additional resources:
Animator.GetCurrentAnimatorClipInfo
and
Animator.GetNextAnimatorClipInfo
.
```csharp
//Create a GameObject and attach an Ani... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d580c03076b5_doc_4 | github | scripting | What does `GetCameraIdByEye` do in this Unity script? Explain its purpose and signature. | Returns an Android Camera2 API's cameraId associated with the passthrough camera specified in the argument.The passthrough cameraThrows an exception if the code was not able to find cameraId
Signature:
```csharp
public static string GetCameraIdByEye(PassthroughCameraEye cameraEye)
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_94ffae437426 | unity_docs | rendering | What is `Search.SearchItemProviderAttribute` in Unity? Explain its purpose and usage. | SearchItemProviderAttribute
class in
UnityEditor.Search
Description
Attribute used to declare a static method that will create a new search provider at load time.
```
[SearchItemProvider]
internal static SearchProvider CreateProvider()
{
return new SearchProvider(id, name)
{
filterId = "hex:",
priority = 9999... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_83c8b578c15c | unity_docs | math | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.ReadArrayElementWithStride` in Unity? Explain its purpose and usage. | UnsafeUtility.ReadArrayElementWithStride
Declaration
public static T
ReadArrayElementWithStride
(void*
source
,
int
index
,
int
stride
);
Parameters
Parameter
Description
source
Memory pointer.
index
Array index.
stride
Stride.
Returns
T
Array element.
Description
Read array element with stride... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29855caeac08 | unity_docs | scripting | What is `AI.NavMeshObstacle.carveOnlyStationary` in Unity? Explain its purpose and usage. | NavMeshObstacle.carveOnlyStationary
public bool
carveOnlyStationary
;
Description
Should this obstacle be carved when it is constantly moving?
When this property is enabled, the obstacle will carve a hole only when it is stationary. There will be no hole carved when the object is moving. See
carving
for full ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_54bc9d46188c | unity_docs | input | What is `UIElements.UIToolkitInputBackendOption.InputSystemCompatibleBackend` in Unity? Explain its purpose and usage. | UIToolkitInputBackendOption.InputSystemCompatibleBackend
Description
The new Input System compatible backend allows the Input System package to send its input to UI Toolkit
directly, removing the need for an UnityEngine.EventSystems.EventSystem in the user scene.
This option will use the Input System package is a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4e293560799d | unity_docs | rendering | What is `SystemInfo.maxComputeBufferInputsDomain` in Unity? Explain its purpose and usage. | SystemInfo.maxComputeBufferInputsDomain
public static int
maxComputeBufferInputsDomain
;
Description
Determines how many compute buffers Unity supports simultaneously in a domain shader for reading. (Read Only) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7c343666d0d5 | unity_docs | scripting | Explain 'Update a UPM package for the Asset Store' in Unity. | You can update a published package to release a new version of the package with bug fixes or new features, or to change product details such as pricing and media. When you publish an update, users can access the new version in the
Package Manager window
.
You can make two types of updates, and each has different requir... | 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.