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_a237011613f5 | unity_docs | editor | What is `UIElements.UxmlNamespacePrefixAttribute` in Unity? Explain its purpose and usage. | UxmlNamespacePrefixAttribute
class in
UnityEditor.UIElements
Description
Attribute that can be used on an assembly to define an XML namespace prefix for a namespace.
Properties
Property
Description
ns
The namespace name.
prefix
The namespace prefix.
Constructors
Constructor
Description
UxmlName... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f0855c5faa0 | unity_docs | scripting | What is `UIElements.HandleDragAndDropArgs` in Unity? Explain its purpose and usage. | HandleDragAndDropArgs
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Information about a drag-and-drop operation in progress.
See
BaseVerticalCollectionView.dragAndDropUpdate
and
BaseVerticalCollectionView.handleDrop
.
Properties
Property
Description
childI... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_18bcd195b114 | unity_docs | ui | Show me a Unity C# example demonstrating `GUILayout.HorizontalScrollbar`. | ing the arrows at the end.
Description
Make a horizontal scrollbar.
A scrollbar control returns a float value that represents the position of the draggable "thumb" withtin the bar. You can use the value to adjust another GUI element to reflect the scroll position. However, most scrollable views can be handled more... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_48c502aef3af | unity_docs | scripting | What is `UIElements.BindablePropertyChangedEventArgs` in Unity? Explain its purpose and usage. | BindablePropertyChangedEventArgs
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Provides information about the property that has changed.
Properties
Property
Description
propertyName
Returns the name of the property that has changed.
Constructors
Construc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_caef8d3d7951 | unity_docs | scripting | In Unity's 'Use Mesh API to create a radial progress indicator', what is 'Create the custom mesh' and how does it work? | Create a C# script named
EllipseMesh.cs
with the following content:
```csharp
using UnityEngine;
using UnityEngine.UIElements;
namespace MyUILibrary
{
public class EllipseMesh
{
int m_NumSteps;
float m_Width;
float m_Height;
Color m_Color;
float m_BorderSize;
bool m_IsDirty;
public Vertex[] vertices { get; pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f95e5678e7b9 | unity_docs | rendering | In Unity's 'Metallic and specular workflows', what is 'Metallic workflow' and how does it work? | In the metallic workflow, the following applies:
A value of 0 means the surface is non-metallic, also known as dielectric. The base color is visible as matte color, also known as diffuse reflection. Specular highlights are the color of the light source.
A value of 1 means the surface is metallic. There’s no diffuse ref... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_17b512d2c926 | unity_docs | networking | Explain 'Multiplayer Widgets' in Unity. | com.unity.multiplayer.widgets
## Description
The Multiplayer Widgets package provides a set of widgets that help implementing Unity’s multiplayer services in a rapid prototyping fashion.
## Released for Unity
Package version 1.0.5 is released for Unity Editor version 6000.0. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_30d2550b572c | unity_docs | editor | What is `PlayerSettings.GetPreloadedAssets` in Unity? Explain its purpose and usage. | PlayerSettings.GetPreloadedAssets
Declaration
public static Object[]
GetPreloadedAssets
();
Returns
Object[]
The assets to be preloaded.
Description
Returns the assets that will be loaded at start up in the player and be kept alive until the player terminates.
This example shows how a ScriptableObject ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c092e6cc4d0 | unity_docs | scripting | What are the parameters of `Gizmos.CalculateLOD` in Unity? | Returns float Returns a value between 0 and 1 that represents the level of detail for the gizmo. Description Determines the appropriate level of detail for a gizmo in the Scene view at a specified position with a specified radius. A return value of 0 indicates the gizmo is not visible. The gizmo might not be visible be... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a300887041fc | unity_docs | animation | What is `AnimationUtility.GetObjectReferenceCurve` in Unity? Explain its purpose and usage. | AnimationUtility.GetObjectReferenceCurve
Declaration
public static ObjectReferenceKeyframe[]
GetObjectReferenceCurve
(
AnimationClip
clip
,
EditorCurveBinding
binding
);
Returns
ObjectReferenceKeyframe[]
Returns an array of keyframes.
Description
Retrieves the object reference curve that the binding p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_48092751771e | unity_docs | rendering | In Unity's 'LOD Group component reference', what is 'Renderers for LOD Meshes' and how does it work? | When you select an LOD level box on the
LOD Group
selection bar, a Renderers panel appears.
The ‘Renderers’ are actually GameObjects that hold the Mesh for that LOD level. Usually this is a child of the GameObject that has the LODGroup component.
To set a renderer Mesh for the current LOD level, click the Add box and c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_66aa945c7bc4 | unity_docs | scripting | Explain 'Custom Unity Editor tools' in Unity. | You can create Unity Editor tools with the EditorTool API
.
An Editor tool’s context determines what that tool affects in the Editor. Tools can be either global tools or component tools.
Access Editor tools in the
Scene view
from these
overlays
:
The Tools overlay
The Tools Settings overlay
## Tool context
The
Editor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_10ff37d8e953 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.CanConnectToCacheServer`. | se.CanConnectToCacheServer
Declaration
public static bool
CanConnectToCacheServer
(string
ip
,
ushort
port
);
Parameters
Parameter
Description
ip
The IP address of the Cache Server.
port
The Port number of the Cache Server.
Returns
bool
Returns true when Editor can connect to the Cache Server. Returns... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fdb586c04a53 | unity_docs | xr | What is `StereoRenderingPath` in Unity? Explain its purpose and usage. | StereoRenderingPath
enumeration
Description
Enum used to specify what stereo rendering path to use.
Additional resources:
PlayerSettings.stereoRenderingPath
.
Properties
Property
Description
MultiPass
Multiple pass VR rendering.
SinglePass
Single pass VR rendering ( via double-wide render texture ).
Instanc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d53078f51ef | unity_docs | performance | What is `Unity.IO.Archive.ArchiveHandle.Unmount` in Unity? Explain its purpose and usage. | ArchiveHandle.Unmount
Declaration
public
Unity.Jobs.JobHandle
Unmount
();
Returns
JobHandle
Returns the JobHandle of the unmount operation.
Description
Removes the archive from its mount point.
You must call this function for archives that mounted successfully or failed, otherwise you will have a memory... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d1a8bdd583a4 | unity_docs | editor | What is `BuildAssetBundleOptions.None` in Unity? Explain its purpose and usage. | BuildAssetBundleOptions.None
Description
Build assetBundle without any special option.
```csharp
//Create a folder (right click in the Assets folder and go to Create>Folder), and name it “Editor” if it doesn’t already exist
//Place this script in the Editor folder//This script creates a new Menu named “Build Asset”... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fb5c825cbdaf | unity_docs | ui | What is `GUISkin.horizontalSliderThumb` in Unity? Explain its purpose and usage. | GUISkin.horizontalSliderThumb
public
GUIStyle
horizontalSliderThumb
;
Description
Style used by default for the thumb that is dragged in
GUI.HorizontalSlider
controls.
The padding property is used to determine the size of the thumb.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Mo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9781d5bc60c1 | unity_docs | rendering | In Unity's 'Render Texture Inspector window reference', what is 'Wrap Mode dropdown' and how does it work? | Value Description Repeat
Tile the texture to create a repeating pattern.
Clamp
Stretch the edges of the texture. This is useful for preventing wrapping artifacts when you map an image onto a GameObject , and you don’t want the texture to tile.
Mirror
Tile the texture to create a repeating pattern that mirrors the textu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93f423303c14 | unity_docs | scripting | Show me a Unity C# example demonstrating `Camera.WorldToViewportPoint`. | eter
Description
position
A 3D point in world space.
eye
Optional argument that can be used to specify which eye transform to use. Default is Mono.
Description
Transforms
position
from world space into viewport space.
Viewport space is normalized and relative to the camera. The bottom-left of the camera is
(0... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8abbe8d963ab | unity_docs | math | What is `Rendering.RayTracingGeometryInstanceConfig.vertexCount` in Unity? Explain its purpose and usage. | RayTracingGeometryInstanceConfig.vertexCount
public int
vertexCount
;
Description
The amount of vertices from
vertexBuffer
that defines this ray tracing geometry instance.
Use -1 to instruct Unity to use all the vertices from
vertexBuffer
when building the acceleration structure associated with the ray trac... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d5324581dd9e | unity_docs | xr | In Unity's 'Request runtime permissions', what is 'Check if the application has permission' and how does it work? | Use
Permission.HasUserAuthorizedPermission
to check if the user has already granted permission for the data or feature the application requires.
For a code example that shows how to use this API, refer to
Permission.HasUserAuthorizedPermission
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a8cc37846112 | unity_docs | animation | What is `AssetImporters.CameraDescription` in Unity? Explain its purpose and usage. | CameraDescription
class in
UnityEditor.AssetImporters
Description
Represents camera information from an imported file.
Constructors
Constructor
Description
CameraDescription
Initializes and returns an instance of CameraDescription.
Public Methods
Method
Description
Dispose
Disposes of the CameraDescription... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ac82e01849f | unity_docs | ui | Show me a Unity C# example demonstrating `GUISkin.GetStyle`. | GUISkin.GetStyle
Declaration
public
GUIStyle
GetStyle
(string
styleName
);
Description
Get a named
GUIStyle
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
bool b; void OnGUI()
{
b = GUILayout.Toggle(b, "A toggle button", GUI.skin.GetStyle("Button"));
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dad75864e9a1 | unity_docs | rendering | Explain 'iOS Player settings' in Unity. | Player settings for the iOS Player let you customize how Unity builds and displays your final application when targeting the iOS platform. You can access them by navigating to
Edit > Project Settings > Player
and then selecting the iOS tab. For a description of the general Player settings, refer to
Player Settings
.
Yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93900ca260fb | unity_docs | math | What is `Vector3Int.operator_Vector2Int` in Unity? Explain its purpose and usage. | Vector3Int.Vector2Int
Description
Converts an integer three-vector into an integer two-vector.
You can explicitly convert a
Vector3Int
to a
Vector2Int
by casting.
The z component is discarded in the conversion. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5da6b84ba9eb | unity_docs | physics | What is `PhysicsScene2D.OverlapBox` in Unity? Explain its purpose and usage. | PhysicsScene2D.OverlapBox
Declaration
public
Collider2D
OverlapBox
(
Vector2
point
,
Vector2
size
,
float
angle
,
int
layerMask
= Physics2D.DefaultRaycastLayers);
Declaration
public
Collider2D
OverlapBox
(
Vector2
point
,
Vector2
size
,
float
angle
,
ContactFilter2D
contactFilter
);
Param... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_da8b7af25288 | unity_docs | scripting | What is `Unity.Properties.PropertyVisitor.VisitDictionary` in Unity? Explain its purpose and usage. | PropertyVisitor.VisitDictionary
Declaration
protected void
VisitDictionary
(Property<TContainer,TDictionary>
property
,
ref TContainer
container
,
ref TDictionary
value
);
Parameters
Parameter
Description
property
The property providing access to the dictionary.
container
The container being visited.
va... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4b66fdd0c1bf | unity_docs | rendering | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.startRotationMultiplier`. | ParticleSystem.MainModule.startRotationMultiplier
public float
startRotationMultiplier
;
Description
A multiplier for
ParticleSystem.MainModule.startRotation
.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall rotation multiplier.
```csharp
using... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52af95c4b62d | unity_docs | rendering | Show me a Unity C# example demonstrating `Cubemap.SetPixels`. | IGNED
R8
R8_SIGNED
RFloat
RG16
RG16_SIGNED
RG32
RG32_SIGNED
RGB24
RGB24_SIGNED
RGB48
RGB48_SIGNED
RGB565
RGB9e5Float
RGBA32
RGBA32_SIGNED
RGBA4444
RGBA64
RGBA64_SIGNED
RGBAFloat
RGBAHalf
RGFloat
RGHalf
RHalf
For all other formats,
SetPixels
fails. Unity throws an exception when
SetPixels
fai... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9ecf32ee288 | unity_docs | ui | What is `Experimental.GraphView.SelectionDropper.activateButton` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
SelectionDropper.activateButton
public
UIElements.MouseButton
activateButton
;
Description
Mouse button used to activate the manipulator. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7dd341a90fc | unity_docs | scripting | What is `Rendering.IndexFormat.UInt32` in Unity? Explain its purpose and usage. | IndexFormat.UInt32
Description
32 bit mesh index buffer format.
This format supports meshes with up to 4 billion vertices.
Note that GPU support for 32 bit indices is not guaranteed on all platforms; for example Android devices
with Mali-400 GPU do not support them. When using 32 bit indices on such a platform, a w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c574816176f | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.CustomObjectIndexerAttribute.type`. | CustomObjectIndexerAttribute.type
public Type
type
;
Description
Each time an object of a specific type is indexed, the registered function is called.
```csharp
[CustomObjectIndexer(typeof(Shader), version = 2)]
internal static void ShaderIndexing(CustomObjectIndexerTarget context, ObjectIndexer indexer)
{
if ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d8a6f56e19ca | unity_docs | rendering | In Unity's 'Adding a device', what is 'Schema' and how does it work? | Property Required Description friendlyName Yes
The name to display in the UI for this device.
version Yes Indicates the version of the device definition file. Currently, the version is
1
.
screens Yes A list of objects that each describe a screen to simulate the device for. This must contain at least one screen. For in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_be3046fb6827 | unity_docs | xr | What is `XR.XRSettings.isDeviceActive` in Unity? Explain its purpose and usage. | XRSettings.isDeviceActive
public static bool
isDeviceActive
;
Description
Read-only value that can be used to determine if the XR device is active.
When true, Unity accepts input from the device and attempts to render to the device's display(s). Note that this returns true even if the device is not currently re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c1e4c4e5a1e | unity_docs | scripting | What is `UIElements.BlurEvent` in Unity? Explain its purpose and usage. | BlurEvent
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.FocusEventBase_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
Event sent immediately after an element has lost focus. This event trickles down and does not bubbles up.
Inherited Members
Properties Property Description
bub... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c3e084ba9af | unity_docs | scripting | What is `Media.MediaRational.Invalid` in Unity? Explain its purpose and usage. | MediaRational.Invalid
public static
Media.MediaRational
Invalid
;
Description
Invalid rational value.
Invalid rationals have a 0 denominator, regardless of the
numerator
value. This utility value provides one of the many possible invalid rationals. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ae2fa3f42d1 | unity_docs | scripting | Show me a Unity C# example demonstrating `PopupWindow`. | p has three toggle values, and will automatically close when it loses focus. The example is given as two scripts. The first defines an editor window that can be opened via a menu item. That editor window has a button which shows the popup. The second script defines the contents of the popup itself as a separate class.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_de5636545d5a | unity_docs | scripting | What is `Compilation.CompilationPipeline.GUIDToAssemblyDefinitionReferenceGUID` in Unity? Explain its purpose and usage. | CompilationPipeline.GUIDToAssemblyDefinitionReferenceGUID
Declaration
public static string
GUIDToAssemblyDefinitionReferenceGUID
(string
guid
);
Parameters
Parameter
Description
guid
The given assembly definition file asset GUID.
Returns
string
The assembly definition file GUID reference for the given as... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3d13c89661d4_doc_5 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Gets the collection of keys that somehow have two or more associated values.
Signature:
```csharp
public abstract IEnumerable<object> KeysWithDuplicateValues
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_96d05e6d8f69 | unity_docs | scripting | What is `DeviceType` in Unity? Explain its purpose and usage. | DeviceType
enumeration
Description
Enumeration for
SystemInfo.deviceType
, denotes a coarse grouping of kinds of devices.
Universal Windows Platform
: tablets are treated as desktop machines, thus
DeviceType.Handheld
will only be returned for Windows Phones and IoT family devices.
```csharp
//Attach this scrip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_96fa71a44e84 | github | scripting | Write a Unity C# script called FB Alpha Blend Extension | ```csharp
// SPDX-FileCopyrightText: 2024 Michael Nisbet <me@mikesky.dev>
// SPDX-License-Identifier: MIT
using UnityEngine;
using Unity.Collections;
using Unity.Collections.LowLevel.Unsafe;
using Unity.XR.CompositionLayers;
using UnityEngine.XR.OpenXR.NativeTypes;
namespace OpenXR.Extensions
{
[ExecuteAlways]
... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_5ae0d2b22a7e | unity_docs | performance | In Unity's 'IL2CPP limitations', what is 'Exception filters' and how does it work? | IL2CPP supports exception filters. However, the execution order of filter statements and catch blocks is different because IL2CPP uses C++ exceptions to implement managed exceptions. This isn’t noticeable unless a filter block writes to a field.
On Mono the field write occurs at filter evaluation time, before entering ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_049b1255bb80 | unity_docs | scripting | What is `Android.GetAssetPackStateAsyncOperation.size` in Unity? Explain its purpose and usage. | GetAssetPackStateAsyncOperation.size
public ulong
size
;
Description
Gets the total size in bytes of all Android asset packs that had their status checked by this operation.
Until the operation is complete and
GetAssetPackStateAsyncOperation.isDone
returns true, this returns 0.
This value includes the size of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_36b0d899af4c | unity_docs | rendering | Show me a Unity code example for 'IMGUI Basics'. | ripting Controls with Unity’s Immediate Mode GUI system (IMGUI).
## Making Controls with IMGUI
Unity’s IMGUI controls make use of a special function called
OnGUI()
. The
OnGUI()
function gets called every frame as long as the containing script is enabled - just like the
Update()
function.
IMGUI controls themselves ar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5e7e22fd5d46 | unity_docs | scripting | What is `Search.SearchItem.TryGetValue` in Unity? Explain its purpose and usage. | SearchItem.TryGetValue(string,Field)
Parameters
Parameter
Description
name
Field name.
field
Copy of the field found.
context
Search context if available to resolve the search field.
Returns
void
Returns true if a field value was found.
Description
Returns' a field's value if any. Compared to
SearchI... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9da14f586fec | unity_docs | physics | In Unity's 'Profiler counters reference', what is 'File access profiler counters' and how does it work? | The available file access profiler counters and availability in release (non-development) players are as follows:
Profiler counter Description Availability in release (non-development) players
File Bytes Read
Total number of bytes of information Unity read from this file during the selected frames.
Unavailable
File Byt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c801e3ecf771 | unity_docs | scripting | What is `ParticleSystem.MainModule.emitterVelocityMode` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.emitterVelocityMode
public
ParticleSystemEmitterVelocityMode
emitterVelocityMode
;
Description
Control how the Particle System calculates its velocity, when moving in the world.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_018df44a4875 | unity_docs | performance | What is `AsyncInstantiateOperation.Cancel` in Unity? Explain its purpose and usage. | AsyncInstantiateOperation.Cancel
Declaration
public void
Cancel
();
Description
Method that cancels all the operations connected to the asynchronous instantiation if the operation is not done yet, that is, where isDone == false. This method deletes all the objects created so far, which are not visible to users w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1cc8f3dad2e8 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchIndexer.AddExactWord`. | tWord
Declaration
public void
AddExactWord
(string
word
,
int
score
,
int
documentIndex
);
Parameters
Parameter
Description
word
Word to add to the index.
score
Relevance score of the word.
documentIndex
Document where the indexed word was found.
Description
Adds a new word coming from a document to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eedbdc1d0e06 | unity_docs | animation | What is `UIElements.Experimental.ValueAnimation_1.isRunning` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ValueAnimation<T0>.isRunning
public bool
isRunning
;
Description
Tells if the animation is currently active. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d046761bb2c | unity_docs | scripting | What is `Projector.orthographicSize` in Unity? Explain its purpose and usage. | Projector.orthographicSize
public float
orthographicSize
;
Description
Projection's half-size when in orthographic mode.
This is half of the vertical size of the projection volume. Horizontal projection
size varies depending on
aspectRatio
.
Orthographic size is ignored when projection is not orthographic (se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_59514063ccd7 | unity_docs | rendering | What is `CanvasRenderer.hasRectClipping` in Unity? Explain its purpose and usage. | CanvasRenderer.hasRectClipping
public bool
hasRectClipping
;
Description
True if rect clipping has been enabled on this renderer.
Additional resources:
CanvasRenderer.EnableRectClipping
,
CanvasRenderer.DisableRectClipping
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_103febdc158f | unity_docs | editor | What is `PlayerSettings.tvOS` in Unity? Explain its purpose and usage. | tvOS
class in
UnityEditor
Description
tvOS specific player settings.
Static Properties
Property
Description
buildNumber
The build number of the bundle
requireExtendedGameController
Application requires extended game controller.
sdkVersion
Active tvOS SDK version used for build.
simulatorSdkArchitecture
Cho... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_84fea4b6cda3 | unity_docs | scripting | What is `ParticleSystem.colorBySpeed` in Unity? Explain its purpose and usage. | ParticleSystem.colorBySpeed
public
ParticleSystem.ColorBySpeedModule
colorBySpeed
;
Description
Script interface for the ColorByLifetimeModule of a Particle System.
This module assigns colors to the particles based on the speed that they are travelling.
Particle System modules do not need to be reassigned ba... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e110703fccc2 | unity_docs | rendering | What is `Rendering.BatchCullingContext.viewID` in Unity? Explain its purpose and usage. | BatchCullingContext.viewID
public
Rendering.BatchPackedCullingViewID
viewID
;
Description
The ID of the object from which the culling is invoked. Usage example: store culling-related data for each object.
```csharp
// Example of per-view data, indexed by view IDusing System;
using UnityEngine;public class Cul... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b6b862a5f498 | unity_docs | math | Show me a Unity C# example demonstrating `Tilemaps.Tilemap.SetTilesBlock`. | ileArray
);
Parameters
Parameter
Description
position
Bounds to be filled.
tileArray
An array of
Tile
s to be placed.
Description
Fills bounds with array of
Tile
s.
This is meant for a more performant way to set Tiles as a batch, when compared to calling SetTile for every single Tile.
The bounds size must... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1aa4552e8391 | unity_docs | rendering | What is `Experimental.GlobalIllumination.LinearColor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
LinearColor
struct in
UnityEngine.Experimental.GlobalIllumination
/
Implemented in:
UnityEngine.CoreModule
Description
Contains normalized linear color values for red, green, blue in the range of 0 to 1, and an additional int... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ec340b1abd64 | unity_docs | ui | Show me a Unity code example for 'Position element with the layout engine'. | in the header to toggle flex-related style properties in the
Viewport
. The image below shows the options available for the
#menu
element:
You can use the style properties to create complex, dynamic layouts. Here’s an example of a layout that anchors a Button on the bottom-right edge of the screen:
The UXML for this la... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a255f81faca2 | unity_docs | rendering | Explain 'Audio Chorus Effect' in Unity. | The
Audio Chorus Effect
takes an
Audio Mixer
group output and processes it creating a chorus effect.
## Properties
Property:
Function:
Dry mix
Volume of original signal to pass to output. 0.0 to 1.0. Default = 0.5.
Wet mix tap 1
Volume of 1st chorus tap. 0.0 to 1.0. Default = 0.5.
Wet mix tap 2
Volume of 2nd chorus t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68d297c822f3 | unity_docs | scripting | What is `Rendering.BlendMode` in Unity? Explain its purpose and usage. | BlendMode
enumeration
Description
Blend mode for controlling the blending.
The blend mode is set separately for source and destination, and it controls the blend factor of each component going into the blend equation. It is also possible to set the blend mode for color and alpha components separately. Note: the bl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_34fc80c7483a | unity_docs | scripting | Explain 'Use UWP plug-ins with IL2CPP' in Unity. | You can use plug-ins to call code created outside of Unity from your C#
scripts
. The plug-in model for Universal Windows Platform (UWP) is similar to other Unity-supported platforms. For more information about plug-ins with Unity, refer to
Plug-ins
.
Topic Description Use managed UWP plug-ins
Understand how to use
man... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_92f07e81b7f2 | unity_docs | rendering | Show me a Unity C# example demonstrating `Profiling.Profiler.GetRuntimeMemorySizeLong`. | Profiler.GetRuntimeMemorySizeLong
Declaration
public static long
GetRuntimeMemorySizeLong
(
Object
o
);
Parameters
Parameter
Description
o
The target Unity object.
Returns
long
The amount of native-memory used by a Unity object. This returns 0 if the Profiler is not available.
Description
Gathers th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5666f57b1232 | unity_docs | scripting | What is `Keyframe.inTangent` in Unity? Explain its purpose and usage. | Keyframe.inTangent
public float
inTangent
;
Description
Sets the incoming tangent for this key. The incoming tangent affects the slope of the curve from the previous key to this key.
The incoming tangent matches the incoming slope of the curve. A positive value for
inTangent
results in a downward tangent, whi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b36e55913ccf | unity_docs | scripting | Show me a Unity C# example demonstrating `CharacterController.height`. | CharacterController.height
public float
height
;
Description
The height of the character's capsule.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Set the controller height to 2.0
CharacterController controller; void Start()
{
controller = GetComponent<CharacterController>();
contro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1c05703d3d0b | unity_docs | rendering | In Unity's 'Lighting Settings Asset Inspector window reference', what is 'Lighting Mode dropdown' and how does it work? | Value Description Baked Indirect Use Baked Indirect Lighting Mode
for all Mixed Lights in the Scenes that use this Lighting Settings Asset.
In Baked Indirect Lighting Mode, Mixed Lights provide real-time direct lighting and Unity bakes indirect light into lightmaps and Light Probes. Real-time shadow maps provide shadow... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_50b2f752a49d | unity_docs | rendering | What is `ParticleSystem.SubEmittersModule.GetSubEmitterSystem` in Unity? Explain its purpose and usage. | ParticleSystem.SubEmittersModule.GetSubEmitterSystem
Declaration
public
ParticleSystem
GetSubEmitterSystem
(int
index
);
Parameters
Parameter
Description
index
The index of the desired sub-emitter.
Returns
ParticleSystem
The sub-emitter at the index.
Description
Gets the sub-emitter Particle Syste... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ef10608562d4_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Add this component to a GameObject and call the methodin response to a Unity Event to update a text display to count up with each event.
Signature:
```csharp
public class IncrementUIText : MonoBehaviour
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_572ba3d96dbc | unity_docs | rendering | What is `TerrainTools.TerrainPaintUtility.SetupTerrainToolMaterialProperties` in Unity? Explain its purpose and usage. | TerrainPaintUtility.SetupTerrainToolMaterialProperties
Declaration
public static void
SetupTerrainToolMaterialProperties
(
TerrainTools.PaintContext
paintContext
,
ref
TerrainTools.BrushTransform
brushXform
,
Material
material
);
Parameters
Parameter
Description
paintContext
PaintContext describing th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4bdf2fb7752 | unity_docs | scripting | What is `UIElements.Toggle.mixedValuesUssClassName` in Unity? Explain its purpose and usage. | Toggle.mixedValuesUssClassName
public static string
mixedValuesUssClassName
;
Description
USS class name of Toggle elements that have mixed values
Unity adds this USS class to checkmark of the
Toggle
when it has mixed values. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f4f63569b76b | unity_docs | performance | What is `Profiling.Profiler.EndThreadProfiling` in Unity? Explain its purpose and usage. | Profiler.EndThreadProfiling
Declaration
public static void
EndThreadProfiling
();
Description
Frees the internal resources used by the Profiler for the thread.
Profiler allocates memory to store information about the thread. To free that memory use
EndThreadProfiling
.
Once called, Profiler stops collecting an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_909f88f81eb9 | unity_docs | scripting | What is `U2D.SpriteAtlasPackingSettings.enableRotation` in Unity? Explain its purpose and usage. | SpriteAtlasPackingSettings.enableRotation
public bool
enableRotation
;
Description
Determines if rotating a sprite is possible during packing.
Rotating the sprite during packing might result in tighter packing and thus a smaller atlas. However, this increases packing time. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81c4d42de0be | unity_docs | scripting | Show me a Unity C# example demonstrating `GUI.TextArea`. | turn value of this function should be assigned back to the string as shown in the example.
maxLength
The maximum length of the string. If left out, the user can type for ever and ever.
style
The style to use. If left out, the
textArea
style from the current
GUISkin
is used.
Returns
string
The edited string.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_02bf137ac94c | unity_docs | physics | What is `EdgeCollider2D.edgeRadius` in Unity? Explain its purpose and usage. | EdgeCollider2D.edgeRadius
public float
edgeRadius
;
Description
Controls the radius of all edges created by the collider.
The edge radius controls a radius extending around the edge. When an edge has zero radius it is effectively infinitely thin. When an edge has a radius greater than zero, each edge acts like ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3946b004da87 | unity_docs | editor | What are the parameters of `Search.QueryEngine_1.SetDefaultFilter` in Unity? | Description Sets the default filter handler for filters that were not registered. ```csharp
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
static class Example_QueryEngine_SetDefaultFilter
{
static List<MyObjectType> s_Data;
[MenuItem("Exam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3f23cc94cf44 | unity_docs | editor | Explain 'Services Tooling' in Unity. | com.unity.services.tooling
## Description
The tooling package provides deep editor integrations such as Config as Code for Unity Cloud services that don’t have or need to have their own package.
Currently supported services:
- Access Control
- Game Overrides
## Released for Unity
Package version 1.4.1 is released f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6989e16b3f93 | unity_docs | rendering | What is `Rendering.BatchRendererGroup.AddBatch` in Unity? Explain its purpose and usage. | BatchRendererGroup.AddBatch
Declaration
public
Rendering.BatchID
AddBatch
(NativeArray<MetadataValue>
batchMetadata
,
GraphicsBufferHandle
buffer
);
Declaration
public
Rendering.BatchID
AddBatch
(NativeArray<MetadataValue>
batchMetadata
,
GraphicsBufferHandle
buffer
,
uint
bufferOffset
,
uint
windo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_339eb2d93a7b_doc_5 | github | scripting | What does `OnValidate` do in this Unity script? Explain its purpose and signature. | Synchronizes job data on Play mode if returns true.
Signature:
```csharp
protected virtual void OnValidate()
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_147e1e1074cb | unity_docs | scripting | What is `MonoBehaviour.OnPreCull` in Unity? Explain its purpose and usage. | MonoBehaviour.OnPreCull()
Description
Event function
that Unity calls before a
Camera
culls the scene.
In the Built-in Render Pipeline, Unity calls
OnPreCull
on MonoBehaviours that are attached to the same GameObject as an enabled
Camera
component, just before that Camera performs the culling operation that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f2baa073cabb | unity_docs | scripting | In Unity's 'EnumFlagsField', what is 'Example' and how does it work? | The following UXML example creates an EnumFlagsField element:
```
<UXML xmlns="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements">
<uie:EnumFlagsField label="UXML Field" name="the-uxml-field" include-obsolete-values="false"/>
</UXML>
```
The following C# example illustrates some of the customizable functionali... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3f0dfadd17db | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchFlags.WantsMore`. | SearchFlags.WantsMore
Description
Sets the search to search for all results. This might take longer than unusual if
SearchProvider
are using multiple sources of items (files on disk, AssetDatabase...)
```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
stat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7391639b3d73 | unity_docs | rendering | What is `Rendering.CommandBuffer.DrawProcedural` in Unity? Explain its purpose and usage. | CommandBuffer.DrawProcedural
Declaration
public void
DrawProcedural
(
Matrix4x4
matrix
,
Material
material
,
int
shaderPass
,
MeshTopology
topology
,
int
vertexCount
,
int
instanceCount
= 1,
MaterialPropertyBlock
properties
= null);
Parameters
Parameter
Description
matrix
Transformation matrix... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eec0f8682cab | unity_docs | scripting | What is `ParticleSystem.MainModule.maxParticles` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.maxParticles
public int
maxParticles
;
Description
The maximum number of particles to emit.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass : MonoBehaviour
{
public float hSliderValue = 0.0F;
private Particle... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9324941b7842 | unity_docs | rendering | What is `ReflectionProbe.customBakedTexture` in Unity? Explain its purpose and usage. | ReflectionProbe.customBakedTexture
public
Texture
customBakedTexture
;
Description
Reference to the baked texture of the reflection probe's surrounding. Use this to assign custom reflection texture. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d927332e9eec | unity_docs | scripting | What is `TerrainTools.TerrainPaintToolWithOverlaysBase.OnWillBeDeactivated` in Unity? Explain its purpose and usage. | TerrainPaintToolWithOverlaysBase.OnWillBeDeactivated
Declaration
public void
OnWillBeDeactivated
();
Description
Invoked before the terrain paint tool with overlays stops being the active tool. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_deab5be8b684 | unity_docs | scripting | What is `Rendering.CommandBufferExtensions.SwitchOutOfFastMemory` in Unity? Explain its purpose and usage. | CommandBufferExtensions.SwitchOutOfFastMemory
Declaration
public static void
SwitchOutOfFastMemory
(
Rendering.CommandBuffer
cmd
,
Rendering.RenderTargetIdentifier
rid
,
bool
copyContents
);
Parameters
Parameter
Description
rid
The render target to remove from fast GPU memory.
copyContents
When this v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9bd171d3e6a3 | unity_docs | ui | Show me a Unity code example for 'Runtime UI event system and input handling'. | ropagation and allows only the button to respond to the press, but it doesn’t prevent other default click actions, such as giving focus to the button or any clicked focusable element.
In some cases, you might need to add a one-frame delay after input is processed before requesting focus for an element, especially if th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_161368f81cb0 | unity_docs | rendering | What is `TrailRenderer.numCapVertices` in Unity? Explain its purpose and usage. | TrailRenderer.numCapVertices
public int
numCapVertices
;
Description
Set this to a value greater than 0, to get rounded corners on each end of the trail.
The value controls how many vertices are added to each end, where a higher value will give a smoother result.
```csharp
using UnityEngine;
using System.Coll... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b413ab520113 | unity_docs | editor | Show me a Unity C# example demonstrating `Unity.Profiling.Editor.ProfilerModuleMetadataAttribute.DisplayName`. | ProfilerModuleMetadataAttribute.DisplayName
public string
DisplayName
;
Description
The attributed Profiler module’s display name.
The attributed Profiler module’s display name as a string. Read-only.
```csharp
using System;
using Unity.Profiling;
using Unity.Profiling.Editor;[Serializable]
[ProfilerModuleMeta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4412460eab4c | unity_docs | scripting | Show me a Unity C# example demonstrating `AddComponentMenu.componentOrder`. | lue of 20. The final placement of the item is determined by adding the
componentOrder
value to this default position. The order can be either positive or negative value.
If your item has a priority of 11 or higher than the previous item, a separator is automatically added before your item in the menu.
The following e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_967a6307b5d9_doc_16 | github | scripting | What does `CopyTilingRule` do in this Unity script? Explain its purpose and signature. | Copies a Tiling Rule from a given Tiling RuleA Tiling Rule to copy fromA Tiling Rule to copy to
Signature:
```csharp
public RuleTile.TilingRule CopyTilingRule(RuleTile.TilingRule from, RuleTile.TilingRule to, bool copyRule)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
gh_dd77601fc3da_doc_1 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Multiplies transform position interpolation as a factor of . If 0, no smoothing will be applied.
Signature:
```csharp
public float smoothingSpeed
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_fed6dd72edcd | unity_docs | scripting | Explain 'Scene view grid snapping' in Unity. | You can use the visual grid in the Scene view to precisely align GameObjects by snapping (moving) them to the nearest grid location.
The
Scene view
grid can be customized in many ways. You can choose which color the grid displays in, which axis to display the grid on, and how transparent or opaque the grid lines appear... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_33102d1750ae | unity_docs | performance | What are the parameters of `Unity.IO.LowLevel.Unsafe.AsyncReadManager.ReadDeferred` in Unity? | Returns ReadHandle A ReadHandle object you can to use to check the status and monitor the progress of the read operations. Description Queues a set of read operations for a file once the specified Jobs have completed. This function does not make a copy of the ReadCommandArray struct passed as a parameter. You can chang... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_40ccc7f9a9bf | unity_docs | scripting | What is `Vector4.Max` in Unity? Explain its purpose and usage. | Vector4.Max
Declaration
public static
Vector4
Max
(
Vector4
lhs
,
Vector4
rhs
);
Description
Returns a vector that is made from the largest components of two vectors.
Additional resources:
Min
function.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Vector4 a = ne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ecaa7e95d952 | unity_docs | scripting | What is `Search.PropertyDatabaseRecordKey.ctor` in Unity? Explain its purpose and usage. | PropertyDatabaseRecordKey Constructor
Declaration
public
PropertyDatabaseRecordKey
(ulong
documentKey
,
Hash128
propertyKey
);
Parameters
Parameter
Description
documentKey
A document key.
propertyKey
A property hash.
Description
Constructs a new record key.
Additional resources:
PropertyDatabaseReco... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ce3878609a2c | unity_docs | rendering | In Unity's 'Self-Illuminated Parallax Diffuse', what is 'Self-Illuminated Properties' and how does it work? | Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader allows you to define bright and dark parts of the object. The alpha channel of a secondary texture will define areas of the object that “emit” light by themselves, even when no light is shining on it. In the alpha channel, black is zer... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a21a6905c75b | github | scripting | Write a Unity C# script called Gaussian Splat URP Feature | ```csharp
// SPDX-License-Identifier: MIT
#if GS_ENABLE_URP
#if !UNITY_6000_0_OR_NEWER
#error Unity Gaussian Splatting URP support only works in Unity 6 or later
#endif
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
using UnityEngine.Re... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_cc7f7c9bab99 | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.GetLayerIndex` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.GetLayerIndex
Declaration
public int
GetLayerIndex
(string
layerName
);
Parameters
Parameter
Description
layerName
The layer name.
Returns
int
The layer index.
Description
Returns the index of the layer with the given name. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3a7417f9e6d6 | unity_docs | rendering | What is `SkinnedMeshRenderer.SetBlendShapeWeight` in Unity? Explain its purpose and usage. | SkinnedMeshRenderer.SetBlendShapeWeight
Declaration
public void
SetBlendShapeWeight
(int
index
,
float
value
);
Parameters
Parameter
Description
index
The index of the BlendShape to modify. Index must be smaller than the
Mesh.blendShapeCount
of the Mesh attached to this Renderer.
value
The weight for t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3440a5e0b510 | github | scripting | Write a Unity C# script called Movable UI Element | ```csharp
using System;
using Solid.Core;
using UnityEngine;
using UnityEngine.EventSystems;
/*Copyright (c) Created by Oleksii Volovich 2021*/
namespace Solid.UI
{
public class MovableUIElement : SolidBehaviour,IPointerDownHandler,IPointerUpHandler,IDragHandler
{
[SerializeField] private RectTransform... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.