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_dbe4570da7fc
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.MinMaxCurve`.
MaxCurve.mode . Depending on the mode, this may return randomized values. For modes that require curves, the value returned is dependent on one or two curves designed in the ParticleSystem Inspector, that can be evaluated to a single value between -n and n, where n is a constant also set in the Inspector. See Particle...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_388d299d7124
unity_docs
scripting
What is `UIElements.BindingLogLevel` in Unity? Explain its purpose and usage.
BindingLogLevel enumeration Description Options to change the log level for warnings that occur during the update of data bindings. This option can be changed using Binding.SetGlobalLogLevel or Binding.SetPanelLogLevel . Changing the global level won't change the log level of a panel if it already has an o...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e7511d301a33
unity_docs
scripting
What is `UIElements.EventBase` in Unity? Explain its purpose and usage.
EventBase class in UnityEngine.UIElements / Implemented in: UnityEngine.UIElementsModule Description The base class for all UIElements events. The class implements IDisposable to ensure proper release of the event from the pool and of any unmanaged resources, when necessary. Properties Property Description...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1e1d4d19763f
unity_docs
math
What is `Tilemaps.Tilemap.GetTransformMatrix` in Unity? Explain its purpose and usage.
Tilemap.GetTransformMatrix Declaration public Matrix4x4 GetTransformMatrix ( Vector3Int position ); Parameters Parameter Description position Position of the Tile on the Tilemap . Returns Matrix4x4 The transform matrix. Description Gets the transform matrix of a Tile given the XYZ coordinates...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_819aed043582
unity_docs
math
What is `AndroidJNI.CallStaticDoubleMethod` in Unity? Explain its purpose and usage.
AndroidJNI.CallStaticDoubleMethod Declaration public static double CallStaticDoubleMethod (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 In...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_202fe4e02c10
unity_docs
scripting
Show me a Unity C# example demonstrating `SystemInfo.processorType`.
SystemInfo.processorType public static string processorType ; Description Processor name (Read Only). Will return SystemInfo.unsupportedIdentifier on platforms which don't support this property. ```csharp using UnityEngine; using System; using System.Globalization;public class Example : MonoBehaviour { void...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f74aedc9b354
unity_docs
scripting
What is `ClosestPointCommand` in Unity? Explain its purpose and usage.
ClosestPointCommand struct in UnityEngine / Implemented in: UnityEngine.PhysicsModule Description Struct used to set up a closest point command to be performed asynchronously during a job. When you use this struct to schedule a batch of closest commands, they are performed asynchronously and in parallel to each ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_82b3b289ef58
unity_docs
scripting
In Unity's 'Check the status of a UPM package for the Asset Store', what is 'Managing publishing' and how does it work?
If your package is Approved , then when the package goes live depends on the option you selected when you submitted the package for approval . You’ll receive an email with the following information: If you chose Publish immediately , you’ll be informed that your product is now live. If you chose Manually publish , you’...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_14d19ec20873_doc_1
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Scans the current scene for MonoBehaviours that derive from the given type and declares them in thedependency context. The MonoBehaviours will be qualified using their name in the scene hierarchy.the context into which the classes should be declared. Signature: ```csharp public static void DeclareMonoBehavioursFromSce...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_man_a788742ee30b
unity_docs
rendering
Explain 'Sprite asset reference' in Unity.
Explore the properties of a sprite asset. Unity displays the properties in the Inspector window when you select a sprite asset in the Project window. For more information, refer to Create sprites from a texture . Property Description Name Sets the name of the sprite. Pivot Sets the position of the point Unity uses for ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7a3c912df68d
unity_docs
rendering
What is `Light.layerShadowCullDistances` in Unity? Explain its purpose and usage.
Light.layerShadowCullDistances public float[] layerShadowCullDistances ; Description Per-light, per-layer shadow culling distances. Directional lights only. Dynamic shadows can be cast into view from shadow casters that are very far away from the camera. At low incident light angles, this can lead to a lot of...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6b8037745e9d
unity_docs
animation
What is `Animations.AnimatorStateMachine` in Unity? Explain its purpose and usage.
AnimatorStateMachine class in UnityEditor.Animations / Inherits from: Object Description A graph controlling the interaction of states. Each state references a motion. Properties Property Description anyStatePosition The position of the AnyState node. anyStateTransitions The list of AnyState transitions. b...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d39ed193f02e
unity_docs
editor
What is `AssetDatabase.SaveAssetIfDirty` in Unity? Explain its purpose and usage.
AssetDatabase.SaveAssetIfDirty Declaration public static void SaveAssetIfDirty ( Object obj ); Declaration public static void SaveAssetIfDirty (GUID guid ); Parameters Parameter Description obj The asset object to be saved, if dirty. guid The GUID of the asset to be saved, if dirty. Description Wri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d742c99aebf5
unity_docs
physics
Explain 'iOS Scripting' in Unity.
Most features of the iOS devices are exposed through the Input and Handheld classes. For cross-platform projects, UNITY_IPHONE is defined for conditionally compiling iOS-specific C# code. ## Device properties There are a number of device-specific properties that you can access. See the script reference pages for: Sys...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f888391525a4
unity_docs
scripting
What is `PluginImporter.GetIsOverridable` in Unity? Explain its purpose and usage.
PluginImporter.GetIsOverridable Declaration public bool GetIsOverridable (); Description Identifies whether or not this plugin will be overridden if a plugin of the same name is placed in your project folder.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f1f622a2897a
unity_docs
scripting
Show me a Unity C# example demonstrating `RigidbodyConstraints.FreezePositionY`.
RigidbodyConstraints.FreezePositionY Description Freeze motion along the Y-axis. ```csharp //This example shows how RigidbodyConstraints is used to freeze the position and rotation of a Rigidbody in the y axis at start-up. //It also shows what happens when these constraints are removed, when you press the space key...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2957ebed760d
unity_docs
rendering
Show me a Unity C# example demonstrating `ParticleSystemRenderer.sortMode`.
ParticleSystemRenderer.sortMode public ParticleSystemSortMode sortMode ; Description Specifies how to sort particles within a system. ```csharp using UnityEngine; using UnityEditor; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { private Particle...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e5711b23620b
unity_docs
rendering
What are the parameters of `Rendering.CommandBuffer.BuildRayTracingAccelerationStructure` in Unity?
Description Adds a command to build the RayTracingAccelerationStructure to be used in a ray tracing dispatch or when using inline ray tracing (ray queries). To ensure that the acceleration structure is up to date, call this method before using the acceleration structure in ray tracing shaders (for example before a Comm...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0cfb02c62c89
unity_docs
rendering
Explain 'Parallax Diffuse' in Unity.
Note. Unity 5 introduced the Standard Shader which replaces this shader . ## Parallax Normal mapped Properties Parallax Normal mapped is the same as regular Normal mapped , but with a better simulation of “depth”. The extra depth effect is achieved through the use of a Height Map . The Height Map is contained in the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6953c04ca951
unity_docs
scripting
What is `WindowsBuildAndRunDeployTarget.DevicePortal` in Unity? Explain its purpose and usage.
WindowsBuildAndRunDeployTarget.DevicePortal Description Runs the app on a remote Windows device using Windows DevicePortal (WDP). To use this option, enable DevicePortal on your target device and provide the connection address . Additionally, if you enable DevicePortal authentication, you must also provide the WDP...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_928ca9c469ec
unity_docs
rendering
In Unity's 'Introduction to changing resolution scale', what is 'Upscaling techniques' and how does it work?
The upscaling techniques depend on the render pipeline you choose and the platform you build for. The Built-In Render Pipeline always uses a filtering technique the GPU provides. Feature What the feature uses to upscale the image URP HDRP Bilinear The bilinear or linear filtering the graphics API provides. Yes. Refer t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fa81aefbe95e
unity_docs
audio
What is `Search.ObjectIndexer.IndexPropertyComponents` in Unity? Explain its purpose and usage.
ObjectIndexer.IndexPropertyComponents Declaration public void IndexPropertyComponents (int documentIndex , string name , string value ); Parameters Parameter Description documentIndex Document handle for the indexed property. name Key used to retrieve the value. value Value to add to the index. Descri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e4fc6a54494c
unity_docs
physics
In Unity's 'Configure a particle trigger', what is 'Interaction with multiple colliders' and how does it work?
The following example takes advantage of the additional collision data you can extract from the GetTriggerParticles() function. It causes particles inside the first Collider’s bounds to turn red, inside the second Collider’s bounds to turn blue, or inside both Colliders to turn green. It also turns particles white if t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_806119fdda83
unity_docs
math
What is `Vector4.ctor` in Unity? Explain its purpose and usage.
Vector4 Constructor Declaration public Vector4 (float x , float y , float z , float w ); Description Creates a new vector with given x, y, z, w components. Declaration public Vector4 (float x , float y , float z ); Description Creates a new vector with given x, y, z components and sets w to zero. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f3fc0d292a9e
unity_docs
scripting
What is `Video.VideoPlayer.externalReferenceTime` in Unity? Explain its purpose and usage.
VideoPlayer.externalReferenceTime public double externalReferenceTime ; Description Reference time of the external clock the VideoPlayer uses to correct its drift. Only relevant when VideoPlayer.timeReference is set to VideoTimeReference.ExternalTime .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e409c63ba844
unity_docs
rendering
What is `ParticleSystem.lights` in Unity? Explain its purpose and usage.
ParticleSystem.lights public ParticleSystem.LightsModule lights ; Description Script interface for the LightsModule of a Particle System. This module allows you to attach real-time Lights to a percentage of your particles. The lights module is a simple and powerful module that allows particles to cast light ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4d665b446997
unity_docs
audio
What are the parameters of `AudioImporter.GetOverrideSampleSettings` in Unity?
Returns AudioImporterSampleSettings The override sample settings for the given platform. Description Return the current override settings for the given platform. If there is no override for the passed platform, the default translated settings will be returned. The translated settings are the default settings to use for...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_36f06498ca5f
unity_docs
scripting
What is `UIElements.BackgroundSize.ctor` in Unity? Explain its purpose and usage.
BackgroundSize Constructor Declaration public BackgroundSize ( UIElements.Length sizeX , UIElements.Length sizeY ); Description Create a BackgroundSize with x and y repeat Declaration public BackgroundSize ( UIElements.BackgroundSizeType sizeType ); Description Create a BackgroundSize using Enum
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_40a8001d8d7f
unity_docs
scripting
What is `BuildPlayerWindow.DefaultBuildMethods.BuildPlayer` in Unity? Explain its purpose and usage.
BuildPlayerWindow.DefaultBuildMethods.BuildPlayer Declaration public static void BuildPlayer ( BuildPlayerOptions options ); Parameters Parameter Description options The options to build with. Description The built-in, default handler for executing a player build. Can be used to provide default functional...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a25b9e1dd42b
unity_docs
scripting
What is `Unity.Properties.IProperty_1` in Unity? Explain its purpose and usage.
IProperty<T0> interface in Unity.Properties Implements interfaces: IProperty , IPropertyAccept<T0> Description Base interface for working with properties. This is used to pass or store properties without knowing the underlying value type. * Property_2 Public Methods Method Description GetValue Return...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1df4af6a9316
unity_docs
scripting
What is `InstantiateParameters.originalImmutable` in Unity? Explain its purpose and usage.
InstantiateParameters.originalImmutable public bool originalImmutable ; Description It tells the InstantiateAsync if it's safe to do the serialization step async. By default InstantiateAsync serializes all the data before returning and the only async part is the creation of the new objects. This is to avoid iss...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_6d0514717aa7
github
scripting
Write a Unity C# script called Triangles
```csharp using System; using UnityEngine; using Object = UnityEngine.Object; namespace UnityStandardAssets.ImageEffects { class Triangles { private static Mesh[] meshes; private static int currentTris = 0; static bool HasMeshes() { if (meshes == null) ...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_man_d1a593ef6057
unity_docs
physics
In Unity's 'Cinemachine', what is 'Compatible with Unity' and how does it work?
These package versions are available in Unity version 6000.0: Documentation location: State Versions available: com.unity.cinemachine@3.1 released 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6-pre.1, 3.1.6, 3.1.7-pre.1, 3.1.7-pre.2 com.unity.cinemachine@3.0 released 3.0.0-pre.1, 3.0.0-pre.2, 3.0.0-pre.3, 3.0.0-pre.4,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c369945daece
unity_docs
editor
Explain 'Autodetect plug-ins for Embedded Linux' in Unity.
Unity automatically detects plug-ins for Embedded Linux. When you import plug-ins, Unity creates metadata files for each plug-in . For example, a.so for shared objects and shared libraries and an.a for archive files. These metadata files contain the plug-in information, such as the target architecture and platform. The...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ba80043e7f84
unity_docs
math
What is `TrailRenderer.AddPositions` in Unity? Explain its purpose and usage.
TrailRenderer.AddPositions Declaration public void AddPositions (Vector3[] positions ); Declaration public void AddPositions (out NativeArray<Vector3> positions ); Declaration public void AddPositions (out NativeSlice<Vector3> positions ); Parameters Parameter Description positions The positions t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_55153a025cb3
unity_docs
editor
What is `EditorWindow.TryGetOverlay` in Unity? Explain its purpose and usage.
EditorWindow.TryGetOverlay Declaration public bool TryGetOverlay (string id , out Overlays.Overlay match ); Parameters Parameter Description id ID of the overlay to retrieve. match Contains the overlay with matching id, or null if no matching overlay was found. Returns bool Returns true if the overl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0fbba5d8d1b7
unity_docs
animation
In Unity's '2D Blending', what is 'Positions' and how does it work?
You can change the positions of a motion by clicking on its corresponding blue dot in the diagram and dragging it around. You can also edit position coordinates of a motion in the motion list by typing in numbers in the number fields in the Pos X and Pos Y columns. The Compute Positions drop-down will set the positions...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b47c9b10eb5d
unity_docs
editor
What is `Rendering.OnDemandRendering.willCurrentFrameRender` in Unity? Explain its purpose and usage.
OnDemandRendering.willCurrentFrameRender public static bool willCurrentFrameRender ; Description True if the current frame will be rendered. ```csharp using UnityEngine; using UnityEngine.Rendering;// This example shows how to determine if the current frame will be presented to the screen. public class Example...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_33926b6ab4b8
unity_docs
rendering
Give me an overview of the `FogMode` class in Unity.
FogMode enumeration Description Fog mode to use. Additional resources: RenderSettings.fogMode , Lighting Window . Properties Property Description Linear Linear fog. Exponential Exponential fog. ExponentialSquared Exponential squared fog (default).
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c1d35d7c32ac
unity_docs
ui
In Unity's 'Web template structure and instantiation', what is 'Structure of the index.html file' and how does it work?
The index.html contains the code necessary to load the build and should include the following: A <canvas> element. Unity runtime uses the <canvas> element to render the application. JavaScript code to download the build loader. For example: ``` var buildUrl = "Build"; var loaderUrl = buildUrl + "/{{{ LOADER_FILENAME }}...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a9b9ee985529
unity_docs
rendering
In Unity's 'XR Plug-in Management settings', what is 'XR Plug-in Management menu reference' and how does it work?
For each plug-in provider you enable in the plug-ins section , a new menu item appears in the left-hand menu, underneath XR Plug-in Management . You can open these provider sections to configure provider-specific settings, as described in Provider plug-in settings . This menu also provides options to validate your proj...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a72d78254d4b
unity_docs
rendering
What is `TerrainTools.TerrainBrushPreviewMode` in Unity? Explain its purpose and usage.
TerrainBrushPreviewMode enumeration Description Enum to specify whether DrawBrushPreview previews the source render texture or the destination render texture of a PaintContext . Properties Property Description SourceRenderTexture Specifies that TerrainPaintUtilityEditor.DrawBrushPreview uses the source render ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_58904796d443
unity_docs
scripting
Show me a Unity C# example demonstrating `Camera.ViewportPointToRay`.
transform to use. Default is Mono. Description Returns a ray going from camera through a viewport point. Resulting ray is in world space, starting on the near plane of the camera and going through position's (x,y) coordinates on the viewport (position.z is ignored). Viewport coordinates are normalized and relative t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c7a31a94a0d7
unity_docs
rendering
What is `AI.NavMeshAgent.GetAreaCost` in Unity? Explain its purpose and usage.
NavMeshAgent.GetAreaCost Declaration public float GetAreaCost (int areaIndex ); Parameters Parameter Description areaIndex Area Index. Returns float Current cost for specified area index. Description Gets the cost for path calculation when crossing area of a particular type. The cost of a path is th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5970677676c0
unity_docs
animation
Give me an overview of the `AnimatorTransitionInfo` class in Unity.
AnimatorTransitionInfo struct in UnityEngine / Implemented in: UnityEngine.AnimationModule Description Information about the current transition. Properties Property Description anyState Returns true if the transition is from an AnyState node, or from Animator.CrossFade. duration Duration of the transition. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_45f8fc068be8
unity_docs
scripting
What is `PlayModeWindow.GetPlayModeFocused` in Unity? Explain its purpose and usage.
PlayModeWindow.GetPlayModeFocused Declaration public static bool GetPlayModeFocused (); Returns bool True if the behaviour is normal, and false if it is Maximized or Fullscreen. Description Returns the enter play mode behavior for the selected PlayModeView.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6e6d2000cb93
unity_docs
scripting
What is `Android.AndroidAssetPackInfo.name` in Unity? Explain its purpose and usage.
AndroidAssetPackInfo.name public string name ; Description The name of the Android asset pack that the device is downloading. Read-only. Additional resources: AndroidAssetPacks.DownloadAssetPackAsync .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1518b9cfb61e
unity_docs
scripting
What is `SerializedProperty.fixedBufferSize` in Unity? Explain its purpose and usage.
SerializedProperty.fixedBufferSize public int fixedBufferSize ; Description The number of elements in the fixed buffer. (Read Only) See GetFixedBufferElementAtIndex for an example of how to use this property. Additional resources: isFixedBuffer , GetFixedBufferElementAtIndex .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a2ad4b3fab93
unity_docs
editor
Give me an overview of the `PrefabReplacingSettings` class in Unity.
PrefabReplacingSettings class in UnityEditor Description Settings controlling the behavior of PrefabUtility.ReplacePrefabAssetOfPrefabInstance . Properties Property Description changeRootNameToAssetName Change the name of the root GameObject to match the name of the Prefab Asset used when replacing the Prefab...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d10cabb1e636
unity_docs
scripting
Show me a Unity C# example demonstrating `EditorGUI.CurveField`.
sition Rectangle on the screen to use for the field. label Optional label to display in front of the field. value The curve to edit. color The color to show the curve with. ranges Optional rectangle that the curve is restrained within. Returns AnimationCurve The curve edited by the user. Description Ma...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d135de40fbbe
unity_docs
editor
What is `ShortcutManagement.ShortcutManager` in Unity? Explain its purpose and usage.
ShortcutManager class in UnityEditor.ShortcutManagement Description Provides access to an instance of IShortcutManager for managing shortcuts. Static Properties Property Description defaultProfileId A constant defining the ID of the default shortcut profile. See the documentation for the IShortcutManager.act...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_43f8c51e3849
unity_docs
math
In Unity's 'Create a scriptable tile', what is 'Paint with the scriptable tile' and how does it work?
After importing or saving the PipelineExampleTile.cs script into your project, you will be able to create the PipelineExampleTile tile asset. To paint with the PipelineExampleTile tile: Create a PipelineExampleTile tile asset (menu: Assets > Create > PipelineExampleTile ). Select the created tile asset and go to its In...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_57631cb03f7c
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.NoiseModule.strengthX`.
ParticleSystem.NoiseModule.strengthX public ParticleSystem.MinMaxCurve strengthX ; Description Define the strength of the effect on the x-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_46b24b75e1d1
unity_docs
math
What is `UIElements.Vector3IntField.ctor` in Unity? Explain its purpose and usage.
Vector3IntField Constructor Declaration public Vector3IntField (); Description Initializes and returns an instance of Vector3IntField. Declaration public Vector3IntField (string label ); Parameters Parameter Description label The text to use as a label. Description Initializes and returns an inst...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5fce84672789
unity_docs
rendering
What is `WebCamTexture.devices` in Unity? Explain its purpose and usage.
WebCamTexture.devices public static WebCamDevice[] devices ; Description Return a list of available devices. This queries the system for the list of devices connected and it can be slow. You should cache this value by keeping a copy of the result if you want to use it repeatedly. ```csharp using UnityEngine; u...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_04e9ca6b91f3
unity_docs
rendering
What is `Material.color` in Unity? Explain its purpose and usage.
Material.color public Color color ; Description The main color of the Material. By default, Unity considers a color with the property name name "_Color" to be the main color. Use the [MainColor] ShaderLab Properties attribute to make Unity consider a color with a different property name to be the main ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_072aabc642e0
unity_docs
editor
What is `VersionControl.Provider.ChangeSetStatus` in Unity? Explain its purpose and usage.
Provider.ChangeSetStatus Declaration public static VersionControl.Task ChangeSetStatus ( VersionControl.ChangeSet changeset ); Declaration public static VersionControl.Task ChangeSetStatus (string changesetID ); Parameters Parameter Description changeset Changeset to query for assets. changesetID ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_86b405158b30
unity_docs
scripting
What is `Experimental.GraphView.GraphView.DeleteSelection` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphView.DeleteSelection Declaration public Experimental.GraphView.EventPropagation DeleteSelection (); Returns EventPropagation Stop if no elements were selected. Continue otherwise. Description Delete selected elem...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_688924b0b294
unity_docs
networking
Explain 'Packages and package management' in Unity.
A package contains features to fit the various needs of your project. This can include any core Unity features included during the Unity Editor installation, or other packages that you can install as needed. Unity’s Package Manager has several interfaces you can use to get packages and manage them. Topic Description Ge...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_662ecbcb845a
unity_docs
scripting
Show me a Unity C# example demonstrating `Unity.IO.LowLevel.Unsafe.AsyncReadManagerMetricsFilters.ctor`.
in the summary calculations. Description Constructor for an instance of the Summary Metrics Filters, used to filter the metrics data that is included in the calculation of a summary. The constructor takes one value of a filter. To take multiple values for the same filter, you can use the array constructor (below). F...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d36da19c278a
unity_docs
math
Show me a Unity C# example demonstrating `GeometryUtility.CalculateFrustumPlanes`.
Returns Plane[] The planes that form the camera's view frustum. Description Calculates frustum planes. This function takes the given camera's view frustum and returns six planes that form it. The normal of each plane points into the frustum. Ordering: [0] = Left, [1] = Right, [2] = Bottom, [3] = Top, [4] = Near...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e0d6d90853d6
unity_docs
scripting
What is `ParticleSystem.NoiseModule.strengthYMultiplier` in Unity? Explain its purpose and usage.
ParticleSystem.NoiseModule.strengthYMultiplier public float strengthYMultiplier ; Description y-axis strength multiplier. Changing this property is more efficient than accessing the entire curve, if you only want to change the overall strength multiplier. Additional resources: ParticleSystem.NoiseModule.stren...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_690d8c3d48b7
unity_docs
scripting
What is `BoundingSphere` in Unity? Explain its purpose and usage.
BoundingSphere struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Describes a single bounding sphere for use by a CullingGroup . Properties Property Description position The position of the center of the BoundingSphere. radius The radius of the BoundingSphere. Constructors Constru...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f4dd065ba6c9
unity_docs
editor
What is `SearchService.ObjectSelectorEngineAttribute` in Unity? Explain its purpose and usage.
ObjectSelectorEngineAttribute class in UnityEditor.SearchService Description Use this class attribute to register ObjectSelector search engines automatically. Search engines with this attribute must implement the IObjectSelectorEngine interface. The following example creates an ObjectSelector search engine: ``...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1fc46cd3ba99
unity_docs
rendering
What is `CameraEditor.Settings` in Unity? Explain its purpose and usage.
Settings class in UnityEditor Description Contains all drawable elements of the CameraEditor . Use this class to access the renderable settings for the CameraEditor . This can be used as a helper to draw a custom CameraEditor . Properties Property Description allowDynamicResolution Exposed SerializedProper...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c6e4f92a6ee8
unity_docs
rendering
Give me an overview of the `EditorStyles` class in Unity.
EditorStyles class in UnityEditor Description Common GUIStyles used for EditorGUI controls. Static Properties Property Description boldFont Bold font. boldLabel Style for bold label. centeredGreyMiniLabel Style for label with small font which is centered and grey. colorField Style used for headings for Colo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fb357a558b78
unity_docs
math
What is `AndroidJNI.GetObjectArrayElement` in Unity? Explain its purpose and usage.
AndroidJNI.GetObjectArrayElement Declaration public static IntPtr GetObjectArrayElement (IntPtr array , int index ); Description Returns an element of an Object array. Additional resources: Java Native Interface Specification (Oracle)
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6ac059244ef3
unity_docs
animation
What is `Animations.AnimatorControllerLayer.syncedLayerIndex` in Unity? Explain its purpose and usage.
AnimatorControllerLayer.syncedLayerIndex public int syncedLayerIndex ; Description Specifies the index of the Synced Layer. When set to -1 there is no Synced Layer and the layer uses its own AnimatorStateMachine.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5f07cf5fc348
unity_docs
scripting
What is `Advertisements.AdvertisementSettings.GetGameId` in Unity? Explain its purpose and usage.
AdvertisementSettings.GetGameId Declaration public static string GetGameId ( RuntimePlatform platform ); Returns string The platform specific game identifier. Description Gets the game identifier specified for a runtime platform.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_dcd78787ae7f
unity_docs
rendering
Explain 'Set the blending mode in a shader' in Unity.
The Blend command determines how the GPU combines the output of the fragment shader with the render target. The functionality of this command depends on the blending operation, which you can set using the BlendOp command. Note that while blending itself is supported on all graphics APIs and hardware, some blending oper...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ecb2c88373ef
unity_docs
input
What is `TouchScreenKeyboard.Status` in Unity? Explain its purpose and usage.
Status enumeration Description The status of the on-screen keyboard. Properties Property Description Visible The on-screen keyboard is visible. Done The user has finished providing input. Canceled The on-screen keyboard was canceled. LostFocus The on-screen keyboard has lost focus.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_34d337626052
unity_docs
rendering
In Unity's 'Introduction to Light Probe Proxy Volumes in the Built-In Render Pipeline', what is 'Images for comparison' and how does it work?
A simple Mesh Renderer using a Standard Shader: With Light Probe Proxy Volume (resolution: 4x1x1) Without Light Probe Proxy Volume A skinned Mesh Renderer using a Standard Shader: With Light Probe Proxy Volume (resolution: 2x2x2) Without Light Probe Proxy Volume
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b1673aa2b177
unity_docs
scripting
What is `Rendering.StencilState.compareFunctionFront` in Unity? Explain its purpose and usage.
StencilState.compareFunctionFront public Rendering.CompareFunction compareFunctionFront ; Description The function used to compare the reference value to the current contents of the buffer for front-facing geometry.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d2fc92065cf6
unity_docs
rendering
In Unity's 'Set the camera background with Clear Flags in the Built-In Render Pipeline', what is 'Skybox' and how does it work?
This is the default setting. Any empty portions of the screen will display the current Camera’s skybox. If the current Camera has no skybox set, it will default to the skybox chosen in the Lighting Window (menu: Window > Rendering > Lighting ). It will then fall back to the Background Color . Alternatively a Skybox com...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b67629b4d907
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.AddFileToBuildWithFlags` in Unity?
Description Configure a file for building for the given target with specific compiler flags. The function is equivalent to AddFileToBuild except that the compile flags are specified. In projects containing multiple native targets, you can configure a single file or folder reference to build in all, some, or none of the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cffb82d7d0fa
unity_docs
rendering
What is `TrailRenderer.textureScale` in Unity? Explain its purpose and usage.
TrailRenderer.textureScale public Vector2 textureScale ; Description A multiplier for the UV coordinates of the trail texture. ```csharp using UnityEditor; using UnityEngine; using System.Collections;[RequireComponent(typeof(TrailRenderer))] public class ExampleClass : MonoBehaviour { public LineTextureMode...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d7434ec4006f
unity_docs
rendering
What is `XR.XRDisplaySubsystem.SetFocusPlane` in Unity? Explain its purpose and usage.
XRDisplaySubsystem.SetFocusPlane Declaration public void SetFocusPlane ( Vector3 point , Vector3 normal , Vector3 velocity ); Parameters Parameter Description point The position of the focal point in the Scene, relative to the Camera. normal Surface normal of the plane being viewed at the focal poin...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_07d8ba5161f9_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
ScriptableObject that automagically adds itself to Unity's preloaded assets. Signature: ```csharp public abstract class PreloadedScriptableObject : ScriptableObject ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_295d230f2c5c
unity_docs
scripting
What is `UIElements.BaseTreeViewController.GetChildrenIds` in Unity? Explain its purpose and usage.
BaseTreeViewController.GetChildrenIds Declaration public IEnumerable<int> GetChildrenIds (int id ); Parameters Parameter Description id The item ID. Returns IEnumerable<int> The children IDs. Description Get all children of a specific ID in the tree.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c91e9a0c10a6
unity_docs
scripting
What is `SerializedPropertyType.Integer` in Unity? Explain its purpose and usage.
SerializedPropertyType.Integer Description Represents an integer property, for example int, byte, short, uint and long. The specific type of integer is exposed by SerializedProperty.numericType . Additional resources: SerializedProperty , SerializedProperty.intValue , SerializedProperty.uintValue , Serializ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1b91f584c6eb
unity_docs
rendering
Show me a Unity C# example demonstrating `LineRenderer.alignment`.
LineRenderer.alignment public LineAlignment alignment ; Description Select whether the line will face the camera, or the orientation of the Transform Component. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(LineRenderer))] public class ExampleClass : MonoBehaviour { private ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e5b4dd752c1b
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.A10R10G10B10_XRUNormPack32` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.A10R10G10B10_XRUNormPack32 Description A four-component, 64-bit packed unsigned normalized format that has a 10-bit A component in bits 30..39, a 10-bit R component in bits 20..29, a 10-bit G component in bits 10.....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f7bcfa167e08
unity_docs
rendering
What is `RaycastHit.textureCoord2` in Unity? Explain its purpose and usage.
RaycastHit.textureCoord2 public Vector2 textureCoord2 ; Description The secondary uv texture coordinate at the impact point. This can be used for 3D texture painting or drawing bullet marks. If the collider is not a mesh collider, Vector2.zero will be returned. If the mesh contains no secondary uv set, the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_fd76bda02c46
unity_docs
scripting
In Unity's 'Offer an Asset Store package at a discount', what is 'Promote an Asset Store discount' and how does it work?
You can promote a discounted Asset Store package in the following ways: Use your own website or social media page to advertise the promotion. Don’t add any discount-related images to your Asset Store package’s marketing and sales imagery. Provide details of your discount in the description text for your package while t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_d9642cf9b35c
github
scripting
Write a Unity C# script called Bool Enabled Canvas
```csharp using System.Collections; using GI.UnityToolkit.Utilities; using GI.UnityToolkit.Variables; using UnityEngine; #if ODIN_INSPECTOR using Sirenix.OdinInspector; #else using GI.UnityToolkit.Attributes; #endif namespace GI.UnityToolkit.Components.UI.Variables { /// <summary> /// Enables and disables a c...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_man_7376b8293a9e
unity_docs
input
In Unity's 'Manipulators', what is 'Supported manipulators' and how does it work?
The following table lists the supported manipulator classes: Manipulator Inherits from Description Manipulator Base class for all provided manipulators. KeyboardNavigationManipulator Manipulator Handles translation of device-specific input events to higher-level navigation operations with a keyboard. MouseManipulator M...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_56cbae44bf89
unity_docs
rendering
What is `Experimental.GlobalIllumination.DirectionalLight.mode` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. DirectionalLight.mode public Experimental.GlobalIllumination.LightMode mode ; Description The lightmode.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a00db9afaf86
unity_docs
physics
Show me a Unity C# example demonstrating `Collider2D.attachedRigidbody`.
is present then on a Rigidbody2D on the nearest parent GameObject . The property will be null if no Rigidbody2D is attached. In this case, the Collider2D is attached to a hidden body known as the ground body that lives at the world origin as is set to be RigidbodyType2D.Static . No reference to this hidden body...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b9213942085e
unity_docs
ui
What is `VersionControl.VersionControlObject.isConnected` in Unity? Explain its purpose and usage.
VersionControlObject.isConnected public bool isConnected ; Description Tests whether the VersionControlObject is connected to an underlying version control system. There are various reasons why your VersionControlObject may not be connected. For example: Your VCS might need to be configured before establishi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_86864c0e33c5
unity_docs
animation
What is `Animations.PositionConstraint.RemoveSource` in Unity? Explain its purpose and usage.
PositionConstraint.RemoveSource Declaration public void RemoveSource (int index ); Parameters Parameter Description index The index of the source to remove. Description Removes a source from the component. Throws InvalidOperationException, if the list of sources is empty. Throws ArgumentOutOfRangeExceptio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0960a80052f7
unity_docs
rendering
What is `TerrainLayerUtility.ValidateNormalMapTextureUI` in Unity? Explain its purpose and usage.
TerrainLayerUtility.ValidateNormalMapTextureUI Declaration public static void ValidateNormalMapTextureUI ( Texture2D texture , bool normalMapTextureType ); Parameters Parameter Description texture The texture to validate. normalMapTextureType The return value from the CheckNormalMapTextureType method i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8516f3f61b00
unity_docs
math
What is `Mathf.Lerp` in Unity? Explain its purpose and usage.
Mathf.Lerp Declaration public static float Lerp (float a , float b , float t ); Parameters Parameter Description a The start value. b The end value. t The interpolation value between the two floats. Returns float The interpolated float result between the two float values. Description Linearly ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d16e61bc5a8e
unity_docs
scripting
What is `VersionControl.Provider.preSubmitCallback` in Unity? Explain its purpose and usage.
Provider.preSubmitCallback public static VersionControl.Provider.PreSubmitCallback preSubmitCallback ; Description User-supplied callback to be called before Version Control Submit operation. See PreSubmitCallback for more information.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5b5d6aa223c1
unity_docs
rendering
What is `Experimental.GlobalIllumination.DiscLight.falloff` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. DiscLight.falloff public Experimental.GlobalIllumination.FalloffType falloff ; Description The falloff model to use for baking the disc light. Additional resources: FalloffType . NOTE: This only applies to the Progressive...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a3f4823fa00b
unity_docs
scripting
Show me a Unity C# example demonstrating `Android.AndroidApplication.currentActivity`.
dApplication.currentActivity public static AndroidJavaObject currentActivity ; Description Indicates the Java instance of the current activity. Notes: This object is managed by Unity runtime, so do not call AndroidJavaObject.Dispose on it. If the application is a service rather than an activity, this prop...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_232c3bbe1c75
unity_docs
scripting
What is `UIElements.TemplateContainer.templateSource` in Unity? Explain its purpose and usage.
TemplateContainer.templateSource public UIElements.VisualTreeAsset templateSource ; Description Stores the template asset reference, if the generated element is cloned from a VisualTreeAsset as a Template declaration inside another VisualTreeAsset.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1bd520a88772
unity_docs
scripting
What is `Events.UnityEventBase.GetValidMethodInfo` in Unity? Explain its purpose and usage.
UnityEventBase.GetValidMethodInfo Declaration public static Profiling.FrameDataView.MethodInfo GetValidMethodInfo (object obj , string functionName , Type[] argumentTypes ); Parameters Parameter Description obj Object to search for the method. functionName Function name to search for. argumentTypes A...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7d54e4b34c2b
unity_docs
xr
What is `Networking.UnityWebRequest.Result` in Unity? Explain its purpose and usage.
Result enumeration Description Defines codes describing the possible outcomes of a UnityWebRequest. Properties Property Description InProgress The request hasn't finished yet. Success The request succeeded. ConnectionError Failed to communicate with the server. For example, the request couldn't connect or it ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5d24f5fe3c6e
unity_docs
rendering
Show me a Unity C# example demonstrating `GL.LoadPixelMatrix`.
s such that the X and Y coordinates map directly to pixels. The coordinate (0,0) is at the bottom left corner of current camera's viewport. The Z coordinates go from 1 at the near plane to -100 at the far plane. Changing the model, view or projection matrices overrides the current rendering matrices. It is good practic...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c3efcb76df39
unity_docs
math
What is `Animator.MatchTarget` in Unity? Explain its purpose and usage.
Animator.MatchTarget Declaration public void MatchTarget ( Vector3 matchPosition , Quaternion matchRotation , AvatarTarget targetBodyPart , MatchTargetWeightMask weightMask , float startNormalizedTime , float targetNormalizedTime = 1); Parameters Parameter Description matchPosition The position...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.