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_0b7a897a1ad1 | unity_docs | scripting | What are the parameters of `Animator.GetBool` in Unity? | Returns bool The value of the parameter. Description Returns the value of the given boolean parameter. Return the current state of a bool parameter within the Animator Controller. Use the parameter’s name or ID to search for the appropriate one. ```csharp
//Attach this script to a GameObject with an Animator component ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ce7c0f8bd409 | unity_docs | ui | Show me a Unity code example for 'Type selectors'. | USS type selectors match elements based on their element types. USS type selectors are analogous to CSS type selectors that match HTML tags. For example,
Button {...}
in USS matches any Button elements in the same way that
p {...}
in CSS matches any paragraph (
<p>
) tag.
## Syntax
The following is the syntax for a t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f83b7b87366 | unity_docs | scripting | Show me a Unity C# example demonstrating `Input.GetAccelerationEvent`. | nt
GetAccelerationEvent
(int
index
);
Description
Returns specific acceleration measurement which occurred during last frame. (Does not allocate temporary variables).
Note
: This API is part of the legacy Input Manager. The recommended best practice is that you don't use this API in new projects. For new projec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_984571262cf3 | unity_docs | scripting | What is `Tilemaps.Tilemap.ContainsTile` in Unity? Explain its purpose and usage. | Tilemap.ContainsTile
Declaration
public bool
ContainsTile
(
Tilemaps.TileBase
tileAsset
);
Parameters
Parameter
Description
tileAsset
Tile to check.
Returns
bool
Whether the
Tilemap
contains the Tile.
Description
Returns true if the
Tilemap
contains the given
Tile
. Returns false if not. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_75e60c477d37 | unity_docs | scripting | In Unity's 'TextElement', what is 'Member UXML attributes' and how does it work? | This element has the following member attributes:
Name Type Description
display-tooltip-when-elided boolean When true, a tooltip displays the full version of elided text, and also if a tooltip had been previously provided, it will be overwritten.
double-click-selects-word boolean Controls whether double-clicking select... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ba466031a93 | unity_docs | editor | What is `AssetModificationProcessor.OnWillDeleteAsset` in Unity? Explain its purpose and usage. | AssetModificationProcessor.OnWillDeleteAsset(string,RemoveAssetOptions)
Description
This is called by Unity when it is about to delete an asset from disk.
If this is implemented, it allows you to delete the asset yourself.
Deletion of a file can be prevented by returning
AssetDeleteResult.FailedDelete
You should ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e3bff5c28509 | unity_docs | rendering | What is `Texture2D.mipmapLimitGroup` in Unity? Explain its purpose and usage. | Texture2D.mipmapLimitGroup
public string
mipmapLimitGroup
;
Description
The name of the texture mipmap limit group that this texture is associated with. (Read Only)
If this texture has a mipmap limit group assignment, this texture respects the
TextureMipmapLimitSettings
of that group. If this texture does not... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_189016900205 | unity_docs | rendering | What is `MonoImporter.GetIcon` in Unity? Explain its purpose and usage. | MonoImporter.GetIcon
Declaration
public
Texture2D
GetIcon
();
Returns
Texture2D
Returns the custom icon that will be associated with the imported
MonoScript
. If no custom icon will be associated with the imported
MonoScript
, returns null.
Description
Gets the icon to associate with the imported
Mono... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0203900cccd8 | unity_docs | rendering | What is `ShaderGUI.FindProperty` in Unity? Explain its purpose and usage. | ShaderGUI.FindProperty
Declaration
protected static
MaterialProperty
FindProperty
(string
propertyName
,
MaterialProperty[]
properties
);
Declaration
protected static
MaterialProperty
FindProperty
(string
propertyName
,
MaterialProperty[]
properties
,
bool
propertyIsMandatory
);
Parameters
Parameter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f96b6f5b31df | unity_docs | editor | What is `AssetPathToGUIDOptions` in Unity? Explain its purpose and usage. | AssetPathToGUIDOptions
enumeration
Description
Asset path to GUID options.
Additional resources:
AssetDatabase.AssetPathToGUID
.
Properties
Property
Description
IncludeRecentlyDeletedAssets
Return a GUID if the asset exists, or has recently been deleted.
OnlyExistingAssets
Return a GUID only if the asset exi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6bd183159a9c | unity_docs | editor | What is `AssetDatabase.GetCurrentCacheServerIp` in Unity? Explain its purpose and usage. | AssetDatabase.GetCurrentCacheServerIp
Declaration
public static string
GetCurrentCacheServerIp
();
Returns
string
Returns a string representation of the current Cache Server IP address.
Description
Gets the IP address of the Cache Server currently in use by the Editor.
```csharp
using UnityEditor;
using U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_36ca1f584bb0 | unity_docs | scripting | Explain 'Windows requirements and compatibility' in Unity. | Check that your Windows setup meets Unity’s OS, CPU, graphics, and IL2CPP tool requirements.
Before you begin to develop a Windows application in Unity, check Unity’s requirements and compatibility information for Windows.
## Windows version support
Unity supports Windows 10 version 21H1 (build 19043) or newer.
## C... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4657e42a6a32 | unity_docs | scripting | What is `Search.SearchService.Providers` in Unity? Explain its purpose and usage. | SearchService.Providers
public static List<SearchProvider>
Providers
;
Description
Returns the list of all search providers (active or not).
```
// Print special search providers
foreach (var provider in SearchService.Providers.Where(p => p.isExplicitProvider))
Debug.Log($"Special Search Provider {provider.nam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9a39a691e29 | unity_docs | scripting | What is `Search.SearchField.ctor` in Unity? Explain its purpose and usage. | SearchField Constructor
Declaration
public
SearchField
(string
name
);
Declaration
public
SearchField
(string
name
,
object
value
);
Declaration
public
SearchField
(string
name
,
string
alias
,
object
value
);
Parameters
Parameter
Description
name
Name of the field.
value
Value of the field.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c3cf6e2f5817 | unity_docs | scripting | What is `Windows.CrashReporting.crashReportFolder` in Unity? Explain its purpose and usage. | CrashReporting.crashReportFolder
public static string
crashReportFolder
;
Description
Contains the path to the crash report folder on Windows.
Crash reports are stored in the following location:
%TMP%\CompanyName\ProductName\Crashes
Crash reports are assigned a unique path on startup allowing you to determine i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2e7a141ba938 | unity_docs | animation | In Unity's 'Animator Override Controller', what is 'Assign an Animator Override Controller asset' and how does it work? | To assign an Animator Override Controller asset to a GameObject , follow these steps:
In the Hierarchy window, select the GameObject that will use the Animator Override Controller.
In the Inspector window, locate the Animator Controller component associated with the selected GameObject.
In the Animator Controller compo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8af77d49686 | unity_docs | audio | What is `Video.VideoPlayer.SetTargetAudioSource` in Unity? Explain its purpose and usage. | VideoPlayer.SetTargetAudioSource
Declaration
public void
SetTargetAudioSource
(ushort
trackIndex
,
AudioSource
source
);
Parameters
Parameter
Description
trackIndex
Index of the audio track to associate with the specified
AudioSource
.
source
AudioSource
to associate with the audio track.
Description... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a82617f3502 | unity_docs | scripting | What is `SystemInfo.supportsSeparatedRenderTargetsBlend` in Unity? Explain its purpose and usage. | SystemInfo.supportsSeparatedRenderTargetsBlend
public static bool
supportsSeparatedRenderTargetsBlend
;
Description
Returns true when the platform supports different blend modes when rendering to multiple render targets, or false otherwise.
Additional resources:
Graphics.SetRenderTarget
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e7aabf296e35 | unity_docs | scripting | Give me an overview of the `VideoSpatialQuality` class in Unity. | VideoSpatialQuality
enumeration
Description
Controls the imported clip's internal resize to save space at the cost of blurrier images.
The resulting clip will still store its original size but the encoded images will use smaller images.
This provides an alternative way of reducing the bitrate without introducing c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_28f8f556b83a | unity_docs | audio | What is `AudioSource.panStereo` in Unity? Explain its purpose and usage. | AudioSource.panStereo
public float
panStereo
;
Description
Pans a playing sound in a stereo way (left or right). This only applies to sounds that are Mono or Stereo.
This pan is applied before 3D panning calculations are considered. In other words, stereo panning affects the left right balance of the sound bef... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5b06d06756d6 | unity_docs | rendering | Explain 'Models' in Unity. | Models are files that contain data about the shape and appearance of
3D objects
, such as characters,
terrain
, or environment objects.
Model files can contain a variety of data, including meshes ,
materials
, and
textures
. They can also contain animation data, for animated characters.
You usually create models in an ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e48eba39baf5 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.ColorOverLifetimeModule.enabled`. | ParticleSystem.ColorOverLifetimeModule.enabled
public bool
enabled
;
Description
Specifies whether the ColorOverLifetimeModule is enabled or disabled.
Additional resources:
ParticleSystem.colorOverLifetime
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
publ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7b3792b38e5a | unity_docs | rendering | What is `Android.DiagnosticsReporting` in Unity? Explain its purpose and usage. | DiagnosticsReporting
class in
UnityEngine.Android
/
Implemented in:
UnityEngine.AndroidJNIModule
Description
Class with options for reporting diagnostics information to the Android system.
Static Methods
Method
Description
CallReportFullyDrawn
Calls reportFullyDrawn() on the main Activity in the Android appl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_25bf474669da | unity_docs | rendering | Show me a Unity code example for 'Web template variables'. | n has a truthy value that translates to true when evaluated in a Boolean context, then Unity keeps the line group immediately following the
#if
directive in the output file. If the
#if
expression is false, and an
#else
directive is included in the conditional group, Unity keeps the line group immediately following the
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ab159d44d83 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.startLifetimeMultiplier`. | ParticleSystem.MainModule.startLifetimeMultiplier
public float
startLifetimeMultiplier
;
Description
A multiplier for
ParticleSystem.MainModule.startLifetime
.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall lifetime multiplier.
```csharp
using... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_036fc6c17cbc | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.IQueryEngineFilter.AddOrUpdateMetaInfo`. | public
Search.IQueryEngineFilter
AddOrUpdateMetaInfo
(string
key
,
string
value
);
Parameters
Parameter
Description
key
The key of the information.
value
The value of the information.
Returns
IQueryEngineFilter
The current filter.
Description
Add or update additional information specific to the fi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4228b264d118 | unity_docs | scripting | What is `tvOS.Device.ResetNoBackupFlag` in Unity? Explain its purpose and usage. | Device.ResetNoBackupFlag
Declaration
public static void
ResetNoBackupFlag
(string
path
);
Description
Reset "no backup" file flag: file will be synced with iCloud/iTunes backup and can be deleted by OS in low storage situations. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7375de3ea7fc_doc_3 | github | scripting | What does `HasPackage` do in this Unity script? Explain its purpose and signature. | Checks if packages exists in the current project
Signature:
```csharp
public static void HasPackage(string packageName, Action<bool> success)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_fee3364b6f6a | unity_docs | rendering | Show me a Unity C# example demonstrating `Experimental.Rendering.GraphicsStateCollection.GetGraphicsStatesForVariant`. | n.ShaderVariant
variant
,
List<GraphicsState>
results
);
Parameters
Parameter
Description
shader
Shader used in the variant.
passId
PassIdentifier used in the variant.
keywords
Array of keywords used in the variant.
results
List of graphics states to populate.
variant
The input variant.
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f972a1c52295 | unity_docs | scripting | What is `Sprite.GetScriptableObjects` in Unity? Explain its purpose and usage. | Sprite.GetScriptableObjects
Declaration
public uint
GetScriptableObjects
(ScriptableObject[]
scriptableObjects
);
Parameters
Parameter
Description
scriptableObjects
The array of
ScriptableObject
to contain the ScriptableObjects referenced by the sprite.
Returns
uint
Returns the number of ScriptableObj... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a2eaf73c90bc | unity_docs | rendering | What is `Shader.SetKeyword` in Unity? Explain its purpose and usage. | Shader.SetKeyword
Declaration
public static void
SetKeyword
(ref
Rendering.GlobalKeyword
keyword
,
bool
value
);
Parameters
Parameter
Description
keyword
The
GlobalKeyword
to enable or disable.
value
The desired keyword state.
Description
Sets the state of a global shader keyword.
Shader keywords ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_973ede96fdb6 | unity_docs | physics | What is `Collider.providesContacts` in Unity? Explain its purpose and usage. | Collider.providesContacts
public bool
providesContacts
;
Description
Whether or not this Collider generates contacts for
Physics.ContactEvent
.
If this property is set to
true
, all contacts produced by this collider will appear in the buffer. If this property is set to false, contact generation will depend o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_72964a57927f | unity_docs | rendering | Show me a Unity C# example demonstrating `GL.TexCoord`. | ionality is emulated.
The Z component is used only when:
1.
You access a cubemap (which you access with a vector coordinate, hence x,y & z).
2.
You do "projective texturing", where the X & Y coordinates are divided by Z to get the final coordinate. This would be mostly useful for water reflections and similar thing... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_98cde518742d | unity_docs | scripting | Give me an overview of the `ModelImporterClipAnimation` class in Unity. | ModelImporterClipAnimation
class in
UnityEditor
Description
Animation clips to split animation into.
Properties
Property
Description
additiveReferencePoseFrame
The additive reference pose frame.
curves
Additionnal curves that will be that will be added during the import process.
cycleOffset
Offset to the cyc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_752e8c674018 | unity_docs | rendering | In Unity's 'Search assets with the Project search provider', what is 'Types' and how does it work? | Use the t filter to find all assets of a specific type in the Project folder.
For example, to find all textures with the word volume in their name:
```
p: t:texture volume
```
For more information about types and properties in the Project search provider, and how they differ from the Hierarchy search provider, refer to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6f637a4239f4 | unity_docs | ui | In Unity's 'Introduction to scripting back ends', what is 'Changing the scripting back end' and how does it work? | You can change the scripting back end Unity uses to build your application in one of two ways:
Through the
Player Settings
menu in the Editor. Perform the following steps to change the scripting back end through the
Player Settings
menu:
Go to
Edit
>
Project Settings
.
Click on the
Player Settings
button to open the Pl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad0c32b46107 | unity_docs | scripting | What is `Serialization.ManagedReferenceUtility.GetManagedReferenceIdForObject` in Unity? Explain its purpose and usage. | ManagedReferenceUtility.GetManagedReferenceIdForObject
Declaration
public static long
GetManagedReferenceIdForObject
(
Object
obj
,
object
scriptObj
);
Parameters
Parameter
Description
hostObj
The host object that supports
SerializeReference
. For example,
MonoBehaviour
or
ScriptableObject
.
refObj
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c2852abd5b91_doc_5 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The target camera to apply passthrough logic to.
Signature:
```csharp
public Camera TargetCamera
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_f69465301d67 | unity_docs | rendering | Explain 'Lighting Mode' in Unity. | To control the behaviour of all the lights in a scene that have a
Light Mode
of Mixed, set the Lighting Mode in the
Lighting Settings Asset
.
There are four options for Lighting Mode, in order of visual fidelity:
Distance Shadowmask mode renders realistic lighting at a long distance, but has the most performance impact... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_17247fef6ca1 | unity_docs | scripting | What is `Events.UnityEventTools.RegisterPersistentListener` in Unity? Explain its purpose and usage. | UnityEventTools.RegisterPersistentListener
Declaration
public static void
RegisterPersistentListener
(
Events.UnityEvent
unityEvent
,
int
index
,
Events.UnityAction
call
);
Declaration
public static void
RegisterPersistentListener
(
Events.UnityEvent_1
unityEvent
,
int
index
,
Events.UnityAction_1
ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5465554c6c2b | unity_docs | editor | What is `Profiling.ProfilerCategoryInfo` in Unity? Explain its purpose and usage. | ProfilerCategoryInfo
struct in
UnityEditor.Profiling
Description
Category information descriptor structure.
Contains the full information about a Profiler category such as its name, color, id, and flags.
Use with
FrameDataView.GetAllCategories
and
FrameDataView.GetCategoryInfo
to get information on the availa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_76a42f874517 | unity_docs | scripting | What is `AI.NavMeshAgent.isOnNavMesh` in Unity? Explain its purpose and usage. | NavMeshAgent.isOnNavMesh
public bool
isOnNavMesh
;
Description
Is the agent currently bound to the navmesh? (Read Only)
This property is false if the agent, for some reason, could not bind to the navmesh. E.g. if Scene has no navmesh. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21d217bed20d | unity_docs | math | What is `Vector4.Equals` in Unity? Explain its purpose and usage. | Vector4.Equals
Declaration
public bool
Equals
(object
other
);
Description
Returns true if the given vector is exactly equal to this vector.
Due to floating point inaccuracies, this might return false for vectors which are essentially (but not exactly) equal. Use the
== operator
to test two vectors for appro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_567a46717644 | unity_docs | editor | What is `MonoImporter.SetDefaultReferences` in Unity? Explain its purpose and usage. | MonoImporter.SetDefaultReferences
Declaration
public void
SetDefaultReferences
(string[]
name
,
Object[]
target
);
Parameters
Parameter
Description
name
An array of names of public fields in the imported
MonoScript
. The type of each field must be derived from UnityEngine.Object.
target
An array of objec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c4732b826679 | unity_docs | scripting | What is `UIElements.BaseTreeViewController.CanChangeExpandedState` in Unity? Explain its purpose and usage. | BaseTreeViewController.CanChangeExpandedState
Declaration
public bool
CanChangeExpandedState
(int
id
);
Description
Determines whether the item with the specified ID can be expanded or collapsed. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_04cad10f93f1 | unity_docs | input | What is `TouchScreenKeyboard.isSupported` in Unity? Explain its purpose and usage. | TouchScreenKeyboard.isSupported
public static bool
isSupported
;
Description
Checks if on-screen keyboards are supported.
Returns true if the platform supports on-screen keyboards.
Universal Windows Platform
: On Windows Store Apps, this value is always true even if on-screen keyboards aren't supported. The on-... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_429883cfb91b | unity_docs | rendering | In Unity's 'Introduction to surface shaders in the Built-In Render Pipeline', what is 'Render pipeline compatibility' and how does it work? | Feature name
Universal Render Pipeline (URP)
High Definition Render Pipeline (HDRP)
Custom SRP
Built-in Render Pipeline
Surface Shaders No No No Yes
To create custom lighting in URP and HDRP, do one the following instead:
For a streamlined way of creating
Shader objects
, refer to
Shader Graph
.
Copy and modify the sha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_19930e94f608 | unity_docs | editor | What is `ObjectNames.GetUniqueName` in Unity? Explain its purpose and usage. | ObjectNames.GetUniqueName
Declaration
public static string
GetUniqueName
(string[]
existingNames
,
string
name
);
Parameters
Parameter
Description
existingNames
A list of pre-existing names.
name
Desired name to be used as is, or as a base.
Returns
string
A name not found in the list of pre-existing n... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_baa5f9697bdc | unity_docs | animation | What is `Tilemaps.Tilemap.RefreshAllTiles` in Unity? Explain its purpose and usage. | Tilemap.RefreshAllTiles
Declaration
public void
RefreshAllTiles
();
Description
Refreshes all
Tile
s in the
Tilemap
. The Tilemap will retrieve the rendering data, animation data and other data for all tiles and update all relevant components.
Refer to
Scriptable Tiles
and
Tilemap
for more information. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_627205d8dea1 | unity_docs | ui | What is `GUISkin.horizontalScrollbarLeftButton` in Unity? Explain its purpose and usage. | GUISkin.horizontalScrollbarLeftButton
public
GUIStyle
horizontalScrollbarLeftButton
;
Description
Style used by default for the left button on
GUI.HorizontalScrollbar
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the horizontal scrollbar
// left button of t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_90506e2ffbdc | unity_docs | physics | What is `ControllerColliderHit` in Unity? Explain its purpose and usage. | ControllerColliderHit
class in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
ControllerColliderHit is used by CharacterController.OnControllerColliderHit to give detailed information about the collision and how to deal with it.
Properties
Property
Description
collider
The collider that ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_594f42c6f63c | unity_docs | scripting | What is `AI.NavMeshDataInstance.Remove` in Unity? Explain its purpose and usage. | NavMeshDataInstance.Remove
Declaration
public void
Remove
();
Description
Removes this instance from the NavMesh system.
An identical but convenient alternative to calling
NavMesh.RemoveNavMeshData
. If the instance is not valid, e.g. has been removed before, the call has no effect. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f76fb8a27962 | unity_docs | rendering | In Unity's 'Usage and Performance of Built-in Shaders', what is 'Performance Considerations' and how does it work? | There are a number of factors that can affect the overall performance of your game. This page will talk specifically about the performance considerations for
Built-in Shaders
. Performance of a shader mostly depends on two things: shader itself and which
Rendering Path
is used by the project or specific
camera
. For pe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1d2e9295786d | unity_docs | xr | What is `Networking.UnityWebRequest.responseCode` in Unity? Explain its purpose and usage. | UnityWebRequest.responseCode
public long
responseCode
;
Description
The numeric HTTP response code returned by the server, such as
200
,
404
or
500
. (Read Only)
If the UnityWebRequest has received multiple responses (due to redirects), then this property will return the response code of the newest (or fina... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_420c265e360b | unity_docs | scripting | What is `ForceMode` in Unity? Explain its purpose and usage. | ForceMode
enumeration
Description
Use ForceMode to specify how to apply a force using
Rigidbody.AddForce
or
ArticulationBody.AddForce
.
The AddForce function impacts how your GameObject moves by allowing you to define your own force vector, as well as choosing how to apply this force to the GameObject (this Gam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1da309f5b95d | unity_docs | physics | In Unity's 'Capsule collider component reference', what is 'Layer overrides' and how does it work? | The Layer Overrides section provides properties that allow you to override the project-wide
Layer-based collision detection
settings for this collider.
Property Description Layer Override Priority
Define the priority of this collider override. When two colliders have conflicting overrides, the settings of the collider ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_15fbd4e3d790 | unity_docs | physics | What are the parameters of `ArticulationBody.AddRelativeTorque` in Unity? | Description Applies a torque to the articulation body, relative to its local coordinate system. You can only apply a torque to an active ArticulationBody. If a GameObject is inactive, AddRelativeTorque has no effect. ForceMode.Force and ForceMode.Acceleration modes modify the Angular Velocity Per Second accumulator and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b3d2a16e8bff | unity_docs | rendering | Explain 'Get frame timing data' in Unity. | You can get frame timing data from the FrameTiming API in the following ways:
Use a custom Profiler module
Use the FrameTiming API
To get frame timing data from release builds, you must first enable the
Frame Timing Stats property
.
## Use a custom Profiler module
To view frame timing data in a
custom Profiler module... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1c1ba8c95cf5 | unity_docs | input | Give me an overview of the `EventType` class in Unity. | EventType
enumeration
Description
Types of UnityGUI input and processing events.
Use this to tell which type of event has taken place in the GUI. Types of Events include mouse clicking, mouse dragging, button pressing, the mouse entering or exiting the window, and the scroll wheel as well as others mentioned below... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_77dd67b50aa1 | unity_docs | editor | Give me an overview of the `DataMode` class in Unity. | DataMode
enumeration
Description
Options for the different
DataMode
s of an
EditorWindow
.
Properties
Property
Description
Disabled
Represents a situation or context in which the usage of DataModes is not applicable.
Authoring
Uses this mode where only authoring data is available.
Mixed
Uses this mode where... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3c0a697ae503 | unity_docs | physics | What is `Collider2D.forceSendLayers` in Unity? Explain its purpose and usage. | Collider2D.forceSendLayers
public
LayerMask
forceSendLayers
;
Description
The Layers that this
Collider2D
is allowed to send forces to during a Collision contact with another
Collider2D
.
When a collision occurs between two
Collider2D
, both Colliders would normally apply a force to each other that separa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_087bf5ea8830 | github | scripting | Write a Unity C# script called Create Child Tests | ```csharp
using Duck.HierarchyBehaviour.Tests.Behaviours;
using NUnit.Framework;
using UnityEngine;
namespace Duck.HierarchyBehaviour.Tests
{
[TestFixture]
internal partial class GameObjectExtensionsTests
{
[Test]
public void Expect_CreateChild_GameObject_AsChild()
{
var gameObject = root.gameObject.Creat... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_646259940520 | unity_docs | performance | What is `Unity.Jobs.LowLevel.Unsafe.JobsUtility.ScheduleParallelForDeferArraySize` in Unity? Explain its purpose and usage. | JobsUtility.ScheduleParallelForDeferArraySize
Declaration
public static
Unity.Jobs.JobHandle
ScheduleParallelForDeferArraySize
(ref
Unity.Jobs.LowLevel.Unsafe.JobsUtility.JobScheduleParameters
parameters
,
int
innerloopBatchCount
,
void*
listData
,
void*
listDataAtomicSafetyHandle
);
Returns
JobHandle
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad786c140b6d | unity_docs | editor | What is `iOS.Xcode.PBXProject.ProjectGuid` in Unity? Explain its purpose and usage. | PBXProject.ProjectGuid
Declaration
public string
ProjectGuid
();
Returns
string
The GUID of the project.
Description
Returns the GUID of the project.
The project GUID identifies a project-wide native target which is used to set project-wide properties. This GUID can be passed to any functions that accepts... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_27cc1c45f938 | unity_docs | rendering | In Unity's 'Introduction to lens flare effects', what is 'Displaying flares' and how does it work? | A Lens Flare component displays a lens flare that is configured by a
Flare asset
.
You can display a Flare asset with a
Light component
. If you do this, Unity automatically tracks the position and direction of the Light and uses those values to configure the appearance of the lens flare.
Use this component instead to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d725e4c111cb | unity_docs | animation | What is `AnimationState.clip` in Unity? Explain its purpose and usage. | AnimationState.clip
public
AnimationClip
clip
;
Description
The clip that is being played by this animation state.
```csharp
using UnityEngine;
using System.Collections;public class ExampleScript : MonoBehaviour
{
public Animation anim; void Update()
{
// Prints the frame rate of the animation clip to the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_901eaf7878c4 | unity_docs | scripting | What is `SnapAxis` in Unity? Explain its purpose and usage. | SnapAxis
enumeration
Description
Defines the axes that can be snapped.
Properties
Property
Description
None
No axes support snapping.
X
Snapping is available only on the \x\ axis.
Y
Snapping is available only on the \y\ axis.
Z
Snapping is available only on the \z\ axis.
All
Snapping is available on all axe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3fe12fac7113 | unity_docs | input | What is `UIElements.MouseUpEvent.ctor` in Unity? Explain its purpose and usage. | MouseUpEvent Constructor
Declaration
public
MouseUpEvent
();
Description
Constructor. Avoid creating new event instances. Instead, use GetPooled() to get an instance from a pool of reusable event instances. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_876de420df2f | unity_docs | physics | In Unity's 'Use a scoped registry in your project', what is 'Manage scoped registries with the Project Settings window' and how does it work? | You can add, modify, and remove a scoped registry for your project in the
Package Manager panel
within the
Project Settings
window. The
Scoped Registries
group displays a list of scoped registries added to the current project on the left of the settings group, and the details of the selected registry on the right. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a802eb2e5a19 | unity_docs | math | What are the parameters of `Quaternion.ToString` in Unity? | Description Returns a formatted string for this quaternion. Defaults to five digits displayed (format="F5"). For more information, see Microsoft's documentation on Standard numeric format strings . ```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Quaternion quaternion = ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_62a9cfe5dcde | unity_docs | rendering | In Unity's 'Bake data in multiple scenes', what is 'Bake occlusion culling data with multiple scenes' and how does it work? | You can bake
occlusion culling
data for multiple scenes at once to determine which GameObjects render:
1. Open the scenes that you want to bake.
2. Go to the Occlusion Culling window (Window > Rendering > Occlusion Culling).
3. Select the Bake button.
4. Save the baked scenes to make the scene-to-occlusion-data ref... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bda52d7896f7 | unity_docs | physics | In Unity's 'Fixed Joint component reference', what is 'Properties' and how does it work? | Property Function Connected Body
Optional reference to the Rigidbody that the joint is dependent upon. If not set, the joint connects to the world.
Connected Articulation Body
Optional reference to the ArticulationBody that the joint is dependent upon. If not set, the joint connects to the world.
Break Force
The amount... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_1bcf0caae115 | github | scripting | Write a Unity C# XR/VR script for Delete Object | ```csharp
// Copyright (c) 2022 Takahiro Miyaura
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php
using UnityEngine;
namespace ReSeul.OpenXRSample
{
public class DeleteObject : MonoBehaviour
{
// Start is called before the first frame update
private void Star... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
gh_373c1d516a16 | github | scripting | Write a Unity C# script called Roll A Ball Controller | ```csharp
using System;
using RMC.Mini.Controller;
using RMC.Mini.Samples.RollABall.WithMini.Components;
using RMC.Mini.Samples.RollABall.WithMini.Mini.Controller.Commands;
using RMC.Mini.Samples.RollABall.WithMini.Mini.Model;
using RMC.Mini.Samples.RollABall.WithMini.Mini.Service;
using RMC.Mini.Samples.RollABall.With... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_805f99275a1f | unity_docs | rendering | What is `Texture2D.GetPixels32` in Unity? Explain its purpose and usage. | Texture2D.GetPixels32
Declaration
public Color32[]
GetPixels32
(int
miplevel
= 0);
Parameters
Parameter
Description
miplevel
The mipmap level to get. The range is
0
through the texture's
Texture.mipmapCount
. The default value is
0
.
Returns
Color32[]
An array that contains the pixel colors.
Desc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8f566ca11a26 | unity_docs | math | What is `AndroidJNI.FromObjectArray` in Unity? Explain its purpose and usage. | AndroidJNI.FromObjectArray
Declaration
public static IntPtr[]
FromObjectArray
(IntPtr
array
);
Description
Converts a Java array of
java.lang.Object
to a managed array of System.IntPtr, representing Java objects.
Additional resources:
AndroidJNI.GetFloatArrayElement
,
AndroidJNI.GetArrayLength
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dd450b43b48e | unity_docs | editor | What is `U2D.SpriteAtlasPackingSettings` in Unity? Explain its purpose and usage. | SpriteAtlasPackingSettings
struct in
UnityEditor.U2D
Description
Settings to use during the packing process for this
SpriteAtlas
.
Properties
Property
Description
blockOffset
Block offset to use while packing.
enableAlphaDilation
Sets the boundary padding pixels alpha to 0 when packed into a Sprite Atlas.
e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2c48981346ea | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.gravityModifierMultiplier`. | ParticleSystem.MainModule.gravityModifierMultiplier
public float
gravityModifierMultiplier
;
Description
Change the gravity multiplier.
Changing this property is more efficient than accessing the entire curve (
ParticleSystem.MainModule.gravityModifier
), if you only want to change the overall gravity multipli... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_36530b70675d | unity_docs | audio | What is `AudioSource.DisableGamepadOutput` in Unity? Explain its purpose and usage. | AudioSource.DisableGamepadOutput
Declaration
public bool
DisableGamepadOutput
();
Returns
bool
Returns true if successful.
Description
Disables audio output to a gamepad for this audio source. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5499ea1c7542 | unity_docs | scripting | What is `CoppaCompliance` in Unity? Explain its purpose and usage. | CoppaCompliance
enumeration
Description
The enumerated states of the project's Coppa compliance setting.
Properties
Property
Description
CoppaUndefined
The project has not yet defined the Coppa state.
CoppaCompliant
The project will adhere to Coppa regulations because it targets an audience under a certain age... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fe21b6886fcd | unity_docs | editor | What is `UIElements.DropdownMenu.ClearItems` in Unity? Explain its purpose and usage. | DropdownMenu.ClearItems
Declaration
public void
ClearItems
();
Description
Clears all items from the menu.
```csharp
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;public class ContextMenuWindow : EditorWindow
{
[MenuItem("My/Context Menu Window")]
static void ShowMe() => GetWindow<Cont... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_748a0fb2968b | unity_docs | xr | Give me an overview of the `StereoTargetEyeMask` class in Unity. | StereoTargetEyeMask
enumeration
Description
Enum values for the Camera's targetEye property.
Properties
Property
Description
None
Do not render either eye to the HMD.
Left
Render only the Left eye to the HMD.
Right
Render only the right eye to the HMD.
Both
Render both eyes to the HMD. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1c85629bdc8b | unity_docs | scripting | In Unity's 'Create a car with Wheel colliders', what is 'Prepare the car model' and how does it work? | First, place the Car model in the
Scene
:
In the
Project window
, select the imported Car asset.
Extract the car model’s textures so that Unity can display them in the Scene. To do this, navigate to the
Import Settings
in the Inspector window and do the following:
Select Materials Select
Textures
>
Extract Textures
. I... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ca145b5340f6 | unity_docs | scripting | What is `Unity.Android.Gradle.BaseElement.AddElementDependencies` in Unity? Explain its purpose and usage. | BaseElement.AddElementDependencies
Declaration
public void
AddElementDependencies
(IEnumerable<uint>
elements
);
Parameters
Parameter
Description
elements
Collection of elements this element will depend on.
Description
Adds a list of dependencies by ID to this element.
This element depends on the given el... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_967baac34c90 | unity_docs | ui | What is `UIElements.VisualElement.PlaceBehind` in Unity? Explain its purpose and usage. | VisualElement.PlaceBehind
Declaration
public void
PlaceBehind
(
UIElements.VisualElement
sibling
);
Parameters
Parameter
Description
sibling
The sibling element.
Description
Places this element right before the sibling element in their parent children list. If the element and the sibling position overlap... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ac46eb397bcc | unity_docs | physics | Explain 'ProBuilder' in Unity. | com.unity.probuilder
## Description
Build, edit, and texture custom geometry in Unity. Use ProBuilder for in-scene level design, prototyping, collision meshes, all with on-the-fly play-testing.
Advanced features include UV editing, vertex colors, parametric shapes, and texture blending. With ProBuilder’s model export... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_10f5c5ac590d | unity_docs | editor | What is `Device.SystemInfo.maxConstantBufferSize` in Unity? Explain its purpose and usage. | SystemInfo.maxConstantBufferSize
public static int
maxConstantBufferSize
;
Description
This property mimics platform-specific behavior caused by
SystemInfo.maxConstantBufferSize
. Use this property for platform-specific testing in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57cb37b74f88 | unity_docs | rendering | What are the parameters of `Rendering.RayTracingAccelerationStructure.AddInstances` in Unity? | Returns int A value which represents a handle you can use to perform later actions (e.g. RemoveInstance, UpdateInstancePropertyBlock). Description Adds an array of ray tracing Mesh instances to the RayTracingAccelerationStructure. The passed instanceData can either be an array of Matrix4x4 (object-to-world transformati... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2258c6c7b4a0 | unity_docs | physics | What is `Cursor.SetCursor` in Unity? Explain its purpose and usage. | Cursor.SetCursor
Declaration
public static void
SetCursor
(
Texture2D
texture
,
Vector2
hotspot
,
CursorMode
cursorMode
);
Parameters
Parameter
Description
texture
The texture to use for the cursor. To use a texture, import it with `Read/Write` enabled. Alternatively, you can use the default cursor im... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6be1d29745dd | unity_docs | scripting | What is `UIElements.Align` in Unity? Explain its purpose and usage. | Align
enumeration
Description
Defines the alignment behavior along an axis.
Properties
Property
Description
Auto
Let Flex decide.
FlexStart
Start margin of the item is placed at the start of the axis.
Center
Items are centered on the axis.
FlexEnd
End margin of the item is placed at the end ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4c39e77b7899 | unity_docs | rendering | In Unity's 'Package versioning', what is 'Assemblies' and how does it work? | Assembly definitions
(.asmdef
) define a group of scripts which the Unity Editor’s compilation pipeline turns into separate managed assemblies (.dll
). These.asmdef
assets include properties that drive the resulting assembly’s properties. This includes:
Importer settings, such as included and excluded platforms
Compila... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7b5721cc24c2 | unity_docs | rendering | In Unity's 'Fix light bleeding in lightmaps', what is 'Identification' and how does it work? | There are three ways to identify overlaps:
Keep an eye on Unity’s console. If Unity detects overlapping UVs, it prints a warning message with a list of affected
GameObjects
.
Use the
UV Overlap
draw mode in the Scene View (see
GI visualizations in the Scene View
for more information). When you have this mode enabled, U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f39085670f12 | unity_docs | scripting | What is `Search.Providers.SceneQueryEngineParameterTransformerAttribute` in Unity? Explain its purpose and usage. | SceneQueryEngineParameterTransformerAttribute
class in
UnityEditor.Search.Providers
/
Inherits from:
Search.QueryEngineParameterTransformerAttribute
Description
Attribute class that defines a custom parameter transformer function applied for a query running in a scene provider defined by a scene custom filter us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_78daefa1d096 | unity_docs | scripting | What is `UIElements.VectorImage` in Unity? Explain its purpose and usage. | VectorImage
class in
UnityEngine.UIElements
/
Inherits from:
ScriptableObject
/
Implemented in:
UnityEngine.UIElementsModule
Description
An asset that represents a vector image.
VectorImage is an opaque type. You cannot use it to author vector images. To author vector images, use the
Painter2D
class, or... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_60f1b4f55a73 | unity_docs | rendering | What is `TextureFormat.ETC_RGB4Crunched` in Unity? Explain its purpose and usage. | TextureFormat.ETC_RGB4Crunched
Description
Compressed color texture format with Crunch compression for smaller storage sizes.
The ETC_RGB4Crunched format is similar to the
ETC_RGB4
format but with additional JPEG-like lossy compression for storage size reduction. Textures are transcoded into the ETC_RGB4 format a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6b1ef0ec3b18 | unity_docs | rendering | What is `StaticBatchingUtility` in Unity? Explain its purpose and usage. | StaticBatchingUtility
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
StaticBatchingUtility can prepare your objects to take advantage of Unity's static batching.
This step is useful as a performance optimization allowing engine to reduce number of draw-calls dramatically,
but keep amo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e3823b2458c2 | 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
public
Experimental.GraphView.GraphView.DeleteSelectionDelegate
deleteSelection
;
Description
Delete selection callback. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d2679e952db2 | unity_docs | scripting | Show me a Unity C# example demonstrating `HashUtilities.ComputeHash128`. | void
ComputeHash128
(byte[]
value
,
ref
Hash128
hash
);
Declaration
public static void
ComputeHash128
(ref T
value
,
ref
Hash128
hash
);
Parameters
Parameter
Description
value
A reference to the value to hash.
hash
A reference to the Hash128 to updated with the computed hash.
Description
Compute... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6b975aac770d | unity_docs | editor | Show me a Unity C# example demonstrating `Actions.EditorAction.OnSceneGUI`. | EditorAction.OnSceneGUI
Declaration
public void
OnSceneGUI
(
SceneView
sceneView
);
Parameters
Parameter
Description
sceneView
The Scene view that
Actions.EditorAction.OnSceneGUI
is called in.
Description
Callback raised when the Scene view calls OnGUI.
Use this method to implement any handles or inter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d0efdd004cbe | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.sizeOverLifetime`. | ParticleSystem.sizeOverLifetime
public
ParticleSystem.SizeOverLifetimeModule
sizeOverLifetime
;
Description
Script interface for the SizeOverLifetimeModule of a Particle System.
This module controls the size of particles throughout their lifetime.
Particle System modules do not need to be reassigned back to... | 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.