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_5e7dfaea7181 | unity_docs | scripting | What is `AndroidActivityIndicatorStyle` in Unity? Explain its purpose and usage. | AndroidActivityIndicatorStyle
enumeration
Description
ActivityIndicator Style (Android Specific).
Properties
Property
Description
DontShow
Do not show ActivityIndicator.
Large
Large (android.R.attr.progressBarStyleLarge).
InversedLarge
Large Inversed (android.R.attr.progressBarStyleLargeInverse).
Small
Small... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d961cc9b112b | unity_docs | scripting | What is `Experimental.GraphView.GraphElement.OnUnselected` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphElement.OnUnselected
Declaration
public void
OnUnselected
();
Description
Called when the GraphElement is unselected. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9e2971ae0cf7 | unity_docs | math | Show me a Unity code example for 'Load SSH keys automatically on Windows (PuTTY)'. | n quotation marks.
To load private keys automatically on Startup:
Open the Start Menu and right-click
Pageant
.
Select
More
>
Open file location
. A
File Explorer
window opens.
Right-click Pageant and select
Properties
. The
Pageant Properties
window opens.
Update the Target field by appending the full paths of the pri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2c99b972d2cc_doc_8 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | File format for manifests without any registries
Signature:
```csharp
private class ManifestFileWithoutRegistries
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_a311ee088f45 | unity_docs | math | What is `Build.Reporting.PackedAssets.contents` in Unity? Explain its purpose and usage. | PackedAssets.contents
public PackedAssetInfo[]
contents
;
Description
An array of
PackedAssetInfo
objects that holds information about the Assets that are included in the
PackedAssets
bundle, such as packed Asset size and type. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08b48d2a462a | unity_docs | scripting | What is `Accessibility.AccessibilityHierarchy.TryGetNode` in Unity? Explain its purpose and usage. | AccessibilityHierarchy.TryGetNode
Declaration
public bool
TryGetNode
(int
id
,
out
Accessibility.AccessibilityNode
node
);
Parameters
Parameter
Description
id
The ID of the node to retrieve.
node
The valid node with the associated ID, or
null
if no such node exists in this hierarchy.
Returns
bool
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97791762a8e1 | unity_docs | editor | What are the parameters of `EditorGUILayout.MaskField` in Unity? | Returns int The value modified by the user. Description Make a field for masks. Simple window that shows the mask field. ```csharp
using UnityEngine;
using UnityEditor;public class MaskFieldExample : EditorWindow
{
static int flags = 0;
static string[] options = new string[] {"CanJump", "CanShoot", "CanSwim"}; ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3d2ea1ded55a | unity_docs | rendering | Explain 'Get the current framebuffer with the GrabPass command in the Built-In Render Pipeline' in Unity. | GrabPass is a command that creates a special type of Pass that grabs the contents of the frame buffer into a texture. This texture can be used in subsequent Passes to do advanced image based effects.
This command can significantly increase both CPU and GPU frame times. You should generally avoid using this command othe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec7118952e6e | unity_docs | scripting | What are the parameters of `GameObject.GetComponent` in Unity? | Returns Component A reference to a component of the specified type, returned as a Component type. If no component is found, returns null . Description Retrieves a reference to a component of specified type, by providing the component type as a method parameter. This version of GetComponent isn't as efficient as the gen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3895adfb07d4 | unity_docs | scripting | What is `MonoBehaviour.runInEditMode` in Unity? Explain its purpose and usage. | MonoBehaviour.runInEditMode
public bool
runInEditMode
;
Description
Allow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor).
By default, script components are only executed in play mode.
By setting this property, the MonoBehaviour will have its callback functions execute... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3987ef69935f | unity_docs | xr | What is `Networking.CertificateHandler` in Unity? Explain its purpose and usage. | CertificateHandler
class in
UnityEngine.Networking
/
Implemented in:
UnityEngine.UnityWebRequestModule
Description
Responsible for rejecting or accepting certificates received on https requests.
Note
: Custom certificate validation is currently implemented for Android, iOS, tvOS, visionOS, and desktop platforms... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63a0d2171fd4 | unity_docs | xr | What is `SceneView.onValidateCameraMode` in Unity? Explain its purpose and usage. | SceneView.onValidateCameraMode
Parameters
Parameter
Description
value
The multicast delegate for enabling or disabling support for a
CameraMode
.
Description
A multicast delegate for custom render pipelines to specify support for a requested
CameraMode
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c3cb3bdfc0a4 | unity_docs | rendering | What is `Rendering.RenderQueue.GeometryLast` in Unity? Explain its purpose and usage. | RenderQueue.GeometryLast
Description
Last render queue that is considered "opaque".
Render queues in [0, GeometryLast] range are treated as opaque objects (sorted to reduce render state changes), whereas queues in [GeometryLast+1, 5000] range are treated as semitransparent objects (sorted back-to-front).
Additional... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4fac1b0e0321 | unity_docs | rendering | What is `Rendering.LightUnit.Lux` in Unity? Explain its purpose and usage. | LightUnit.Lux
Description
The unit of illuminance (lumen per square meter).
A light source that emits 1 lumen of luminous flux onto an area of 1 square meter has an illuminance of 1 lux.
Compatible light types:
LightType.Directional
,
LightType.Box
,
LightType.Point
,
LightType.Spot
,
LightType.Pyramid
.
Addit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4c2717122206 | unity_docs | editor | Explain 'Collecting performance data' in Unity. | Connect your application to the Profiler to measure its performance.
The way you connect to the Profiler depends on the platform you want to profile your application on.
Topic Description Collect performance data on a target platform
Connect the Profiler to a device that’s running your application.
Collect performance ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6bece0c619a5 | unity_docs | scripting | What is `Build.Reporting.CommonRoles.streamingAsset` in Unity? Explain its purpose and usage. | CommonRoles.streamingAsset
public static string
streamingAsset
;
Description
The
BuildFile.role
value of files that have been copied into the build without modification from the StreamingAssets folder in the project. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b6d6299fe628 | unity_docs | scripting | What is `UIElements.UxmlBoolAttributeDescription.GetValueFromBag` in Unity? Explain its purpose and usage. | UxmlBoolAttributeDescription.GetValueFromBag
Declaration
public bool
GetValueFromBag
(
UIElements.IUxmlAttributes
bag
,
UIElements.CreationContext
cc
);
Parameters
Parameter
Description
bag
The bag of attributes.
cc
The context in which the values are retrieved.
Returns
bool
The value of the attrib... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3eb201769872 | unity_docs | editor | What is `Handles.zAxisColor` in Unity? Explain its purpose and usage. | Handles.zAxisColor
public static
Color
zAxisColor
;
Description
Color to use for handles that manipulates the Z coordinate of something.
This is for used for example in the position, rotation, and scale gizmos, as well as in the Scene View gizmo. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_beb107739c57 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R16G16B16_UInt` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R16G16B16_UInt
Description
A three-component, 48-bit unsigned integer format that has a 16-bit R component in bytes 0..1, a 16-bit G component in bytes 2..3, and a 16-bit B component in bytes 4..5. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_41d401640b66 | unity_docs | rendering | Show me a Unity C# example demonstrating `Mathf.PerlinNoise`. | ing terrain heightmaps
and many other things.
Perlin noise sampled in the range 0..10 (the greyscale values represent values from 0..1)
Any point in the plane can be sampled by passing the appropriate X and Y coordinates. The
same coordinates will always return the same sample value but the plane is essentially infini... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c5f180c182c6 | unity_docs | xr | What is `Rendering.GraphicsDeviceType.Null` in Unity? Explain its purpose and usage. | GraphicsDeviceType.Null
Description
No graphics API.
This typically happens when a "null" graphics API is explicitly requested from command line arguments,
for example when running game servers or editor in batch mode.
Additional resources:
SystemInfo.graphicsDeviceType
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_968a2aaf2205 | unity_docs | rendering | What is `SystemInfo.maxComputeBufferInputsCompute` in Unity? Explain its purpose and usage. | SystemInfo.maxComputeBufferInputsCompute
public static int
maxComputeBufferInputsCompute
;
Description
Determines how many compute buffers Unity supports simultaneously in a compute shader for reading. (Read Only) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2a3e6ef4452d | unity_docs | scripting | What is `SceneManagement.MainStage` in Unity? Explain its purpose and usage. | MainStage
class in
UnityEditor.SceneManagement
/
Inherits from:
SceneManagement.Stage
Description
The Main Stage contains all the currently open regular Scenes and is always available.
The Main Stage also includes the DontDestroyOnLoad Scene, which the Hierarchy sometimes shows during Play Mode, as well as ever... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cf62530c31e8 | unity_docs | editor | What is `EditorWindow.windowFocusChanged` in Unity? Explain its purpose and usage. | EditorWindow.windowFocusChanged
Description
Called whenever the focused editor window is changed.
```csharp
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
public class FocusedWindowTracker : EditorWindow
{
[MenuItem("Window/Focused Window Tracker")]
private static void ShowTracker() => GetWi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_dd77601fc3da_doc_3 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Whether to apply the follow animation if the target of the poke is a child of this transform.This is useful for UI objects that may have child graphics.
Signature:
```csharp
public bool applyIfChildIsTarget
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_34af83ac2a25 | unity_docs | scripting | What is `Random.rotationUniform` in Unity? Explain its purpose and usage. | Random.rotationUniform
public static
Quaternion
rotationUniform
;
Description
Returns a random rotation with uniform distribution (Read Only).
Employs
Hopf fibration
to return a random
Quaternion
within a uniformly distributed selection space. Gives higher quality results compared to the more naive appro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08db1dc124d6 | unity_docs | scripting | What is `UIElements.SetupDragAndDropArgs` in Unity? Explain its purpose and usage. | SetupDragAndDropArgs
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Information about a drag-and-drop operation that just started.
You can use it to store generic data for the rest of the drag.
See
BaseVerticalCollectionView.setupDragAndDrop
.
Properties
Prope... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ea86c3a48142 | unity_docs | xr | What is `Search.SearchService.IsIndexReady` in Unity? Explain its purpose and usage. | SearchService.IsIndexReady
Declaration
public static bool
IsIndexReady
(string
name
);
Parameters
Parameter
Description
name
Unique name of the index. This name usually matches the one displayed in the Search Index Manager or the one used to invoke
SearchService.CreateIndex
.
Returns
bool
Returns true i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69daf2d9c57b | unity_docs | rendering | What is `Canvas.additionalShaderChannels` in Unity? Explain its purpose and usage. | Canvas.additionalShaderChannels
public
AdditionalCanvasShaderChannels
additionalShaderChannels
;
Description
Get or set the mask of additional shader channels to be used when creating the
Canvas
mesh.
The
Canvas
will always include Position, Color, and Uv0 shader channels when generating the mesh for a ov... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b7ff40db1142 | unity_docs | scripting | Show me a Unity code example for 'Use IL2CPP with macOS'. | generated from managed assemblies. Refer to
Import and configure plug-ins
for more information on plug-in configuration.
Generated C++ code links the functions together, removing the need for a separate Dynamic Link Library (DLL). Instead of using the DLL name, use the
"__Internal"
keyword to make the C++ linker respon... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b58fd5b66b75 | unity_docs | scripting | What is `Windows.Speech.DictationRecognizer.DictationHypothesisDelegate` in Unity? Explain its purpose and usage. | DictationRecognizer.DictationHypothesisDelegate
Declaration
public delegate void
DictationHypothesisDelegate
(string
text
);
Parameters
Parameter
Description
text
The text that the recognizer believes may have been recognized.
Description
Callback indicating a hypothesis change event. You should register w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4f024a165192 | unity_docs | rendering | What is `ParticleSystem.ShapeModule.arcSpread` in Unity? Explain its purpose and usage. | ParticleSystem.ShapeModule.arcSpread
public float
arcSpread
;
Description
Control the gap between particle emission points around the arc.
Additional resources:
ParticleSystem.ShapeModule.shapeType
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d9dc5a85d92 | unity_docs | scripting | What is `ReflectionProbe.ReflectionProbeEvent.ReflectionProbeRemoved` in Unity? Explain its purpose and usage. | ReflectionProbe.ReflectionProbeEvent.ReflectionProbeRemoved
Description
An event that occurs when a Reflection Probe component is unloaded from a Scene or disabled in a Scene.
Additional resources:
ReflectionProbe
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b90ccb78fafc | unity_docs | rendering | What are the parameters of `GUILayout.BeginVertical` in Unity? | Description Begin a vertical control group. All controls rendered inside this element will be placed vertically below each other. The group must be closed with a call to EndVertical. Vertical Layout. ```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void OnGUI()
{
// Starts a vert... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a359e318c856 | unity_docs | scripting | Show me a Unity C# example demonstrating `GUISkin.horizontalScrollbar`. | GUISkin.horizontalScrollbar
public
GUIStyle
horizontalScrollbar
;
Description
Style used by default for the background part of
GUI.HorizontalScrollbar
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the default background of the
// horizontal scrollbar of the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13f46424470c | unity_docs | editor | What is `Search.SearchExpression.CreateItem` in Unity? Explain its purpose and usage. | SearchExpression.CreateItem
Declaration
public static
Search.SearchItem
CreateItem
(string
label
,
object
value
,
string
description
);
Declaration
public static
Search.SearchItem
CreateItem
(string
value
,
string
label
);
Declaration
public static
Search.SearchItem
CreateItem
(double
value
,
str... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1a60fc6eac6 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.zoomerMaxElementCountWithPixelCacheRegen` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.zoomerMaxElementCountWithPixelCacheRegen
public int
zoomerMaxElementCountWithPixelCacheRegen
;
Description
Number of elements in the graph above which the zoom manipulator will turn off pixel cache regeneration on e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d72c292e012c | unity_docs | scripting | What is `InSceneAssetUtility.CollectInSceneAssets` in Unity? Explain its purpose and usage. | InSceneAssetUtility.CollectInSceneAssets
Declaration
public static InSceneAssetInformation[]
CollectInSceneAssets
(GameObject[]
gameObjects
);
Declaration
public static InSceneAssetInformation[]
CollectInSceneAssets
(
SceneManagement.Scene
scene
);
Parameters
Parameter
Description
gameObjects
The GameO... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bab633375189 | unity_docs | editor | Give me an overview of the `HyperLinkClickedEventArgs` class in Unity. | HyperLinkClickedEventArgs
class in
UnityEditor
Description
Arguments for the event
EditorGUI.hyperLinkClicked
.
Properties
Property
Description
hyperLinkData
Parameters found in the hyperlink tag. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d350a14ebdfb | unity_docs | editor | What is `StaticEditorFlags.OffMeshLinkGeneration` in Unity? Explain its purpose and usage. | Method group is Obsolete
StaticEditorFlags.OffMeshLinkGeneration
Obsolete
Enum member StaticEditorFlags.OffMeshLinkGeneration has been deprecated. You can now use NavMeshBuilder.CollectSources() and NavMeshBuildMarkup to nominate the objects that will generate Off-Mesh Links.
Description
Attempt to generate an O... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d5298fbe0cd0 | unity_docs | rendering | In Unity's 'Audio Spatializer SDK', what is 'Initializing the Unity Audio Spatializer' and how does it work? | Unity applies spatialization effects directly after the Audio Source decodes audio data. This produces a stream of audio data in which each source has its own separate effect instance. Unity only processes the audio from that source with its corresponding effect instance.
To enable a plugin to operate as a spatializer,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1ff2d87601cf | unity_docs | physics | Explain 'Physics Material asset reference' in Unity. | The
Physics Material
is a material asset that you can place on a
GameObject
. The material defines properties on the
collider
’s surface, such as friction and bounciness.
To create a Physics Material, go to
Assets
>
Create
>
Physics Material
, then drag the Physics Material from the Project window onto a collider in th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13edb6ded71b | unity_docs | scripting | What is `UIElements.BaseSlider_1` in Unity? Explain its purpose and usage. | BaseSlider<T0>
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.BaseField_1
/
Implemented in:
UnityEngine.UIElementsModule
Implements interfaces:
IValueField<T0>
Description
This is a base class for the Slider fields.
Static Properties
Property
Description
dragContainerUssClassName
USS cla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d883e87f388b | unity_docs | rendering | What is `ParticleSystemRenderer.minParticleSize` in Unity? Explain its purpose and usage. | ParticleSystemRenderer.minParticleSize
public float
minParticleSize
;
Description
Clamp the minimum particle size.
Tiny particles can cause aliasing, and not contribute visually to the Scene, whilst still negatively affecting performance. Use this setting to make sure they always maintain a minimum size on scre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_00ebb3a4e8b3 | unity_docs | rendering | What is `PlayerSettings.legacyClampBlendShapeWeights` in Unity? Explain its purpose and usage. | PlayerSettings.legacyClampBlendShapeWeights
public static bool
legacyClampBlendShapeWeights
;
Description
Defines whether the BlendShape weight range in SkinnedMeshRenderers is clamped.
If set to true, the range of BlendShape weights in SkinnedMeshRenderers will be clamped, otherwise BlendShape weights can tak... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c24ffea30041_doc_6 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Determines whether the specified is not a reference or an that has been destroyed. The to check. if the specified is not a reference or an that has been destroyed; otherwise, .
Signature:
```csharp
public static bool operator !=(object @object, NullComparer @null) =>
@object is Object unityObject ? unityO... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_3648c7035fb9 | unity_docs | physics | What is `ArticulationBody.automaticInertiaTensor` in Unity? Explain its purpose and usage. | ArticulationBody.automaticInertiaTensor
public bool
automaticInertiaTensor
;
Description
Whether or not to calculate the inertia tensor automatically.
If enabled, the inertia tensor is calculated automatically based on the settings of attached
Collider
s. If no colliders are present, the tensor has a default ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d2508caa44d1 | unity_docs | scripting | What is `UIElements.UQueryBuilder_1.ForEach` in Unity? Explain its purpose and usage. | UQueryBuilder<T0>.ForEach
Declaration
public void
ForEach
(List<T2>
result
,
Func<T,T2>
funcCall
);
Parameters
Parameter
Description
result
Each return value will be added to this list.
funcCall
The function to be invoked with each matching element.
Description
Convenience overload, shorthand for Build... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_350c40fdee3f | unity_docs | scripting | What is `ParticleSystem.NoiseModule.strengthZ` in Unity? Explain its purpose and usage. | ParticleSystem.NoiseModule.strengthZ
public
ParticleSystem.MinMaxCurve
strengthZ
;
Description
Define the strength of the effect on the z-axis, when using the
ParticleSystem.NoiseModule.separateAxes
option.
Additional resources:
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;[Require... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cc053f325215 | unity_docs | math | What are the parameters of `EditorUtility.DisplayDialog` in Unity? | Returns bool Returns true if the user clicks the OK button. Returns false otherwise. Description This method displays a modal dialog. Use it for displaying message boxes in the Editor. ok and cancel are labels to be displayed on the dialog buttons. If cancel is empty (the default), then only
one button is displayed. Di... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3675f38232d9 | github | scripting | Write a Unity Editor script for Observable Property Drawer | ```csharp
using System;
using System.Reflection;
using RMC.Core.Architectures.Umvcs.Model.Data.Types;
using RMC.Core.Attributes;
using UnityEditor;
using UnityEngine;
namespace RMC.Core.PropertyDrawers
{
/// <summary>
/// TODO: Add comment
/// </summary>
[CustomPropertyDrawer(typeof(Observable), true)]
public cl... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_3b3aad1905f7 | unity_docs | xr | In Unity's 'Get started with scoped registries', what is 'Benefits of scoped registries' and how does it work? | Scoped registries can help to:
Provide new functionality by distributing tools, libraries, and other assets
.
As a provider, you can create your own registry to distribute tools and scripts (or other types of assets) with version numbers that indicate how mature the package is. Version numbers also indicate whether upd... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c9b30718239d_doc_1 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The count in cells beyond the initial position before stopping to consider a Tile in a Group
Signature:
```csharp
public Vector3Int limit
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_d7085de16d3e | unity_docs | physics | What is `CompositeCollider2D.GeometryType` in Unity? Explain its purpose and usage. | GeometryType
enumeration
Description
Specifies the type of geometry the Composite Collider generates.
Additional resources:
CompositeCollider2D.geometryType
.
Properties
Property
Description
Outlines
Sets the Composite Collider 2D to generate closed outlines for the merged collider geometry consisting of only... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_55617b030536 | unity_docs | editor | What is `Android.AndroidProjectFiles.SetGradlePropertiesFile` in Unity? Explain its purpose and usage. | AndroidProjectFiles.SetGradlePropertiesFile
Declaration
public void
SetGradlePropertiesFile
(string
path
,
Unity.Android.Gradle.GradlePropertiesFile
gradleProperties
);
Parameters
Parameter
Description
path
The file path to place the
gradle.properties
file at. This path is relative to the gradle project... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b006e0b4c73b | unity_docs | animation | What is `Animator.GetIKPosition` in Unity? Explain its purpose and usage. | Animator.GetIKPosition
Declaration
public
Vector3
GetIKPosition
(
AvatarIKGoal
goal
);
Parameters
Parameter
Description
goal
The AvatarIKGoal that is queried.
Returns
Vector3
Return the current position of this IK goal in world space.
Description
Gets the position of an IK goal.
An IK goal is a ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7eff24f55d71 | unity_docs | scripting | What is `SceneManagement.SceneManager.sceneCount` in Unity? Explain its purpose and usage. | SceneManager.sceneCount
public static int
sceneCount
;
Description
The current number of Scenes.
Returns the current number Scenes. This includes the Scenes that are currently loading or unloading. For the number of currently loaded Scenes see
SceneManager.loadedSceneCount
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2634e38bc21c | unity_docs | scripting | Show me a Unity C# example demonstrating `ReflectionProbe.reflectionProbeChanged`. | ReflectionProbe.reflectionProbeChanged
Description
Adds a delegate to get notifications when a Reflection Probe is added to a Scene or removed from a Scene.
Additional resources:
ReflectionProbe
,
ReflectionProbeEvent
.
```csharp
using UnityEngine;
using UnityEngine.Rendering;public class ReflectionProbeManager... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c373de714fb8_doc_3 | github | scripting | What does `SearchLayerInspectorType` do in this Unity script? Explain its purpose and signature. | Custom SearchableLayerInspector type
Signature:
```csharp
public Type SearchLayerInspectorType => Type.GetType(searchLayerTypeName);
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_05cd0e644088 | unity_docs | rendering | Explain 'ZClip command in ShaderLab reference' in Unity. | Sets the GPU’s depth clip mode, which determines how the GPU handles fragments that are outside of the near and far planes.
## Render pipeline compatibility
Feature name Universal Render Pipeline
(URP)
High Definition Render Pipeline (HDRP)
Custom SRP
Built-in Render Pipeline ZClip Yes Yes Yes
Yes
## Syntax
This co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9acf23aa821a | unity_docs | editor | What is `PlayerSettings.WSA.tileShowName` in Unity? Explain its purpose and usage. | PlayerSettings.WSA.tileShowName
public static
PlayerSettings.WSAApplicationShowName
tileShowName
;
Description
Indicates which
tiles
display the application's display name.
In the Editor, Unity displays this as a list of checkboxes under
Tile section
in
UWP Player Settings
.
Note:
If you do not set log... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_95b6d91c88c3 | unity_docs | scripting | Show me a Unity C# example demonstrating `Object.DontDestroyOnLoad`. | Add Component > Audio > Audio Source
- and import an
AudioClip
into your Project. Assign the
AudioClip
to the
AudioSource
’s
AudioClip
field. Create a tag, call it
music
, and add it to
BackgroundMusic
. Switch to
scene2
. Again add
SceneSwap.cs
to a new
GameObject
and name it
Menu
. Save the Project. R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a08ee4b9fda0 | unity_docs | physics | What are the parameters of `Rigidbody.AddForce` in Unity? | Description Adds a force to the Rigidbody . Force is applied continuously along the direction of the force vector. Specifying the ForceMode mode allows the type of force to be changed to an Acceleration, Impulse or Velocity Change. The effects of the forces applied with this function are accumulated at the time of the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eee18fb62531 | unity_docs | scripting | Show me a Unity C# example demonstrating `Android.AndroidApplication.InvokeOnUnityMainThread`. | AndroidApplication.InvokeOnUnityMainThread
Declaration
public static void
InvokeOnUnityMainThread
(
Unity.Android.Gradle.Manifest.Action
action
);
Description
Invokes delegate on Android application's main thread.
This is useful if you receive a Java callback on the UI thread, but want to process result on Un... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_38c8093216d5 | unity_docs | editor | What is `ExportPackageOptions` in Unity? Explain its purpose and usage. | ExportPackageOptions
enumeration
Description
Export package option. Multiple options can be combined together using the | operator.
Additional resources:
AssetDatabase.ExportPackage
.
Properties
Property
Description
Default
Default mode. Will not include dependencies or subdirectories nor include Library asse... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_59f654d7955f | github | scripting | Write a Unity C# script called Action Based Controller With Fallbacks | ```csharp
// Copyright (c) Mixed Reality Toolkit Contributors
// Licensed under the BSD 3-Clause
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.XR;
using UnityEngine.XR.Interaction.Toolkit;
namespace MixedReality.Toolkit.Input
{
/// <summary>
/// A specilized version of Unity's ActionBase... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e37bd6c6b52 | unity_docs | scripting | Show me a Unity C# example demonstrating `Application.unityVersion`. | Application.unityVersion
public static string
unityVersion
;
Description
The version of the Unity runtime used to play the content.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
print("Version of the runtime: " + Application.unityVersion);
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_585720d557c0 | unity_docs | scripting | What are the parameters of `Video.VideoClip.GetAudioLanguage` in Unity? | Returns string The abbreviated name of the language. Description Gets the language of the video clip’s audio tracks, if the audio tracks have an assigned language. This returns nothing if the track was created without a specified language.
You can use this function to switch out audio tracks in your video depending on... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bd7c4a1b8562 | unity_docs | scripting | In Unity's 'Deep linking on iOS', what is 'URL schemes' and how does it work? | A URL scheme specifies a link structure that your iOS application refers to. The device opens the application when the user clicks a deep link that matches the URL scheme structure. To add a URL scheme, use the following steps:
Go to
Edit
>
Project Settings
>
Player
>
Other Settings
>
Configuration
.
Expand
Supported U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1499abdb4d3 | unity_docs | physics | Give me an overview of the `Physics` class in Unity. | Physics
class in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
Global physics properties and helper methods.
Static Properties
Property
Description
AllLayers
Layer mask constant to select all layers.
autoSyncTransforms
Whether or not to automatically sync transform changes with the phy... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_669fedf6c9ba | unity_docs | physics | Give me an overview of the `BuoyancyEffector2D` class in Unity. | BuoyancyEffector2D
class in
UnityEngine
/
Inherits from:
Effector2D
/
Implemented in:
UnityEngine.Physics2DModule
Description
Applies forces to simulate buoyancy, fluid-flow and fluid drag.
When any
Collider2D
overlap the area defined by the effector, calculations are made to determine if they are below the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dae704963adb | unity_docs | math | What is `UIElements.Vector3Field.ctor` in Unity? Explain its purpose and usage. | Vector3Field Constructor
Declaration
public
Vector3Field
();
Description
Initializes and returns an instance of Vector3Field.
Declaration
public
Vector3Field
(string
label
);
Parameters
Parameter
Description
label
The text to use as a label.
Description
Initializes and returns an instance of Vect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_59467cc04833 | unity_docs | rendering | What is `Rendering.RayTracingGeometryInstanceConfig.indexBuffer` in Unity? Explain its purpose and usage. | RayTracingGeometryInstanceConfig.indexBuffer
public
GraphicsBuffer
indexBuffer
;
Description
The index buffer that Unity uses to define the ray tracing geometry instance.
You can use a common index buffer and vertex buffer to define multiple geometry instances with different properties (for example different ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_77e0bd7c917d | unity_docs | scripting | Show me a Unity C# example demonstrating `GUISettings.doubleClickSelectsWord`. | GUISettings.doubleClickSelectsWord
public bool
doubleClickSelectsWord
;
Description
Should double-clicking select words in text fields.
By default is set to true.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
string str = "This is a string with \n two lines of text"; void OnGUI()
{
GUI.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09fb97e41d17 | unity_docs | rendering | What is `TextureImporterSwizzle` in Unity? Explain its purpose and usage. | TextureImporterSwizzle
enumeration
Description
Options for where texture color channel data comes from in the
TextureImporter
.
By default, the Texture Importer maps each color channel from the source image to the same color channel in the imported texture. For example, the default value of
TextureImporter.swizz... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eb4d008aa567 | unity_docs | rendering | What is `Search.SearchUtils.ShowIconPicker` in Unity? Explain its purpose and usage. | SearchUtils.ShowIconPicker
Declaration
public static void
ShowIconPicker
(Action<Texture2D,bool>
iconSelectedHandler
);
Parameters
Parameter
Description
iconSelectedHandler
Select handler invoked if the user selects an icon.
Description
Opens a search picker to select an icon.
In example, this API is used... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_78d66992dcb5 | unity_docs | scripting | What is `SearchService.ISearchEngineBase.EndSearch` in Unity? Explain its purpose and usage. | ISearchEngineBase.EndSearch
Declaration
public void
EndSearch
(
SearchService.ISearchContext
context
);
Parameters
Parameter
Description
context
The search context.
Description
A function called at the end of a search.
A search is performed every time the search query is modified. This function is not ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e6814d9d96e2 | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.GetFrameworksBuildPhaseByTarget` in Unity? | Returns string Returns the GUID of the existing phase or null if it does not exist. Description Returns the GUID of frameworks build phase for the given target. ```csharp
using UnityEngine;
using UnityEditor;
using System.IO;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;public class Sample_GetFrameworksBuil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_86bcabdbc53a | unity_docs | editor | What are the parameters of `AnimationMode.IsPropertyAnimated` in Unity? | Returns bool Whether the property search is found or not. Description Checks whether the specified property is in Animation mode and is being animated. IsPropertyAnimated checks whether a property is being animated. This
check requires also the object where the property can be found. color is searched for in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_96a775bdba8f | unity_docs | scripting | Show me a Unity C# example demonstrating `Terrain.heightmapPixelError`. | Terrain.heightmapPixelError
public float
heightmapPixelError
;
Description
An approximation of how many pixels the terrain will pop in the worst case when switching lod.
A higher value reduces the number of polygons drawn.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Ter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1fc8a1b526c | unity_docs | rendering | What is `Rendering.RenderTargetBlendState.destinationAlphaBlendMode` in Unity? Explain its purpose and usage. | RenderTargetBlendState.destinationAlphaBlendMode
public
Rendering.BlendMode
destinationAlphaBlendMode
;
Description
Blend factor used for the alpha (A) channel of the destination.
Additional resources:
ShaderLab: Blending
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_472ee9344aed | unity_docs | scripting | What is `RenderPickingType.RenderFromFilterSet` in Unity? Explain its purpose and usage. | RenderPickingType.RenderFromFilterSet
Description
The render picking callback is expected to render only the GameObjects contained in the filter set.
Additional resources:
RenderPickingArgs.renderPickingType
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6cac9255b147 | github | scripting | Write a Unity C# script called Hands Provider | ```csharp
// Copyright (c) Mixed Reality Toolkit Contributors
// Licensed under the BSD 3-Clause
using MixedReality.Toolkit.Subsystems;
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.Scripting;
using UnityEngine.XR;
namespace MixedReality.Toolkit.In... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_60bb3bebd37b | unity_docs | input | What is `Experimental.GraphView.Dragger.OnMouseMove` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Dragger.OnMouseMove
Declaration
protected void
OnMouseMove
(
UIElements.MouseMoveEvent
e
);
Parameters
Parameter
Description
e
The event.
Description
Called on mouse move event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2f9e54575086 | unity_docs | math | Explain 'Using randomness' in Unity. | The Random class provides you with easy ways of generating various commonly required types of random values.
This page provides an overview of the Random class and its common uses when scripting with it. For an exhaustive reference of every member of the Random class and further technical details about it, see the
Rand... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_146d098d4574 | unity_docs | editor | Explain 'Additional IL2CPP compiler arguments' in Unity. | You can provide additional arguments for the IL2CPP compiler using the
PlayerSettings.SetAdditionalIl2CppArgs
API or by setting the IL2CPP_ADDITIONAL_ARGS environment variable.
Warning
: Passing additional arguments to the IL2CPP compiler is an experimental feature for debugging and optimizing IL2CPP code generation in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46c38e43b856 | unity_docs | rendering | What is `Rendering.ScriptableRenderContext.EmitGeometryForCamera` in Unity? Explain its purpose and usage. | ScriptableRenderContext.EmitGeometryForCamera
Declaration
public static void
EmitGeometryForCamera
(
Camera
camera
);
Parameters
Parameter
Description
camera
Camera to emit the geometry for.
Description
Emits UI geometry for rendering for the specified camera. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13b7f603f075 | unity_docs | animation | What is `Animations.TransformSceneHandle.IsValid` in Unity? Explain its purpose and usage. | TransformSceneHandle.IsValid
Declaration
public bool
IsValid
(
Animations.AnimationStream
stream
);
Parameters
Parameter
Description
stream
The AnimationStream that manages this handle.
Returns
bool
Whether this is a valid handle.
Description
Returns whether this is a valid handle.
A TransformScene... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a9f4d625da1 | unity_docs | scripting | What is `Networking.DownloadHandlerFile` in Unity? Explain its purpose and usage. | DownloadHandlerFile
class in
UnityEngine.Networking
/
Inherits from:
Networking.DownloadHandler
/
Implemented in:
UnityEngine.UnityWebRequestModule
Description
Download handler for saving the downloaded data to file.
This specialized download handler writes all downloaded bytes directly to file. This can help... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_05e02d2ad609 | unity_docs | scripting | What is `Experimental.GraphView.SearchTreeEntry.level` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
SearchTreeEntry.level
public int
level
;
Description
The level of the entry in the search tree.
The search entry is automatically parented by the SearchTreeGroupEntry at the previous, lower level.
If the level is set to zero... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4235e506e6e6 | unity_docs | scripting | What is `UIElements.InspectorElement.iMGUIDefaultVariantUssClassName` in Unity? Explain its purpose and usage. | InspectorElement.iMGUIDefaultVariantUssClassName
public static string
iMGUIDefaultVariantUssClassName
;
Description
USS class name of elements of this type, when they are displayed in IMGUI default mode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_aaac3eb86011 | unity_docs | xr | Explain 'XR Hands' in Unity. | com.unity.xr.hands
## Description
Surfaces the cross-platform subsystem API for hand-tracking. Implementations of providers will be found in the package for that platform.
## Released for Unity
Package version 1.7.3 is released for Unity Editor version 6000.0. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b8c6f6b54f19 | unity_docs | rendering | Explain 'Create a compute shader' in Unity. | Similar to
shader assets
, compute shader assets are files in your project. with a.compute
file extension. They are written in DirectX 11 style HLSL language, with a minimal number of #pragma compilation directives to indicate which functions to compile as compute shader kernels.
## Check if a platform supports comput... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7489b275e363 | unity_docs | scripting | What is `Build.Content.ContentBuildInterface.GetPlayerObjectIdentifiersInAsset` in Unity? Explain its purpose and usage. | ContentBuildInterface.GetPlayerObjectIdentifiersInAsset
Declaration
public static ObjectIdentifier[]
GetPlayerObjectIdentifiersInAsset
(GUID
asset
,
BuildTarget
target
);
Description
Returns a list of objects directly contained inside of an asset.
Internal use only. See note on
ContentBuildInterface
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_32de06209231 | unity_docs | rendering | What is `Texture2D.CreateExternalTexture` in Unity? Explain its purpose and usage. | Texture2D.CreateExternalTexture
Declaration
public static
Texture2D
CreateExternalTexture
(int
width
,
int
height
,
TextureFormat
format
,
bool
mipChain
,
bool
linear
,
IntPtr
nativeTex
);
Parameters
Parameter
Description
nativeTex
Native 2D texture object.
width
Width of texture in pixels.
heigh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52bf9bd241f2 | unity_docs | math | What is `Tilemaps.Tilemap.GetTile` in Unity? Explain its purpose and usage. | Tilemap.GetTile
Declaration
public
Tilemaps.TileBase
GetTile
(
Vector3Int
position
);
Parameters
Parameter
Description
position
Position of the
Tile
on the
Tilemap
.
Returns
TileBase
TileBase
placed at the cell.
Description
Gets the
Tile
at the given XYZ coordinates of a cell in the Tilemap.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7269c36ec3a2 | unity_docs | math | What is `Matrix4x4.identity` in Unity? Explain its purpose and usage. | Matrix4x4.identity
public static
Matrix4x4
identity
;
Description
Returns the identity matrix (Read Only).
This is a matrix that effectively does nothing when applied.
It has 1s in the main diagonal and 0s in all other elements:
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void S... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ed5aa78524a | unity_docs | editor | What is `Overlays.SaveData` in Unity? Explain its purpose and usage. | SaveData
class in
UnityEditor.Overlays
Description
A serializable storage for the state of an
Overlay
.
This holds the position, the dock area, the visibility, etc. of an
Overlay
.
Constructors
Constructor
Description
SaveData
Creates a new SaveData. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_85387301964f | unity_docs | rendering | In Unity's 'Enable shadows', what is 'Set a GameObject to receive shadows' and how does it work? | GameObjects receive real-time shadows by default.
To set a static GameObject so it receives shadows from baked shadows, follow these steps:
Select the GameObject.
In the Inspector window, in the
Mesh Renderer
component, enable Contribute Global Illumination
.
Set
Receive Global Illumination to Lightmaps
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3fad0a9cdfe7 | unity_docs | physics | Give me an overview of the `PolygonCollider2D` class in Unity. | PolygonCollider2D
class in
UnityEngine
/
Inherits from:
Collider2D
/
Implemented in:
UnityEngine.Physics2DModule
Description
Collider for 2D physics representing an arbitrary polygon defined by its vertices.
Additional resources:
BoxCollider2D
,
CircleCollider2D
,
EdgeCollider2D
.
Properties
Property
De... | 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.