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_52b9ba55c73f | unity_docs | rendering | What is `SystemInfo.SupportsTypedUAVShaderLoadStoreOnGraphicsFormat` in Unity? Explain its purpose and usage. | SystemInfo.SupportsTypedUAVShaderLoadStoreOnGraphicsFormat
Declaration
public static bool
SupportsTypedUAVShaderLoadStoreOnGraphicsFormat
(
Experimental.Rendering.GraphicsFormat
graphicsFormat
,
bool
isLoad
);
Parameters
Parameter
Description
graphicsFormat
The format to look up.
isLoad
True for "load" o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d444b8c6ef9e | unity_docs | xr | In Unity's 'XR packages', what is 'XR support packages' and how does it work? | Unity’s XR packages build on the XR plug-in framework to add additional application-level features and developer tools.
The XR packages include:
Package Description XR Plug-in Management Adds Project Settings
for managing the platforms and plug-ins used by a Unity XR project. Refer to
Project setup
for information abou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1178620757ed | unity_docs | scripting | In Unity's 'Display camera views on multiple monitors', what is 'Example script' and how does it work? | ```csharp
using UnityEngine;
using System.Collections;
public class ActivateAllDisplays : MonoBehaviour
{
void Start ()
{
Debug.Log ("displays connected: " + Display.displays.Length);
// Display.displays[0] is the primary, default display and is always ON, so start at index 1.
// Check if additional displays are ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5f7f836cdaf1 | unity_docs | editor | What is `Playables.PlayableOutputEditorExtensions` in Unity? Explain its purpose and usage. | PlayableOutputEditorExtensions
class in
UnityEditor.Playables
Description
Editor extensions for all types that implement
IPlayableOutput
.
Extension methods are static methods that can be called like instance methods on an extended type.
Static Methods
Method
Description
GetEditorName
Returns the name of the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2443f30d50c2 | unity_docs | scripting | What is `DrivenRectTransformTracker.Add` in Unity? Explain its purpose and usage. | DrivenRectTransformTracker.Add
Declaration
public void
Add
(
Object
driver
,
RectTransform
rectTransform
,
DrivenTransformProperties
drivenProperties
);
Parameters
Parameter
Description
driver
The object to drive properties.
rectTransform
The RectTransform to be driven.
drivenProperties
The proper... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9145d133a0be | unity_docs | rendering | What is `ComputeBufferType.IndirectArguments` in Unity? Explain its purpose and usage. | ComputeBufferType.IndirectArguments
Description
ComputeBuffer
used for
Graphics.DrawProceduralIndirect
,
ComputeShader.DispatchIndirect
or
Graphics.DrawMeshInstancedIndirect
arguments.
Buffer size has to be at least 12 bytes. Underlying DX11 unordered access view format will be R32_UINT, and shader resource v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9150444ab215 | unity_docs | physics | Show me a Unity code example for 'Moving objects with vectors'. | to taking the original vectors as “steps”, one after the other. Note that the order of the two parameters doesn’t matter, since the result is the same either way.
If the first vector is taken as a point in space then the second can be interpreted as an offset or “jump” from that position. For example, to find a point 5... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e8cdfa17092d | unity_docs | audio | What is `Video.VideoPlayer.SetDirectAudioMute` in Unity? Explain its purpose and usage. | VideoPlayer.SetDirectAudioMute
Declaration
public void
SetDirectAudioMute
(ushort
trackIndex
,
bool
mute
);
Parameters
Parameter
Description
trackIndex
Track index for which the mute is set.
mute
Mute on/off.
Description
Set the direct-output audio mute status for the specified track. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6681ea988303 | unity_docs | editor | What is `EditorUserBuildSettings.windowsDevicePortalPassword` in Unity? Explain its purpose and usage. | EditorUserBuildSettings.windowsDevicePortalPassword
public static string
windowsDevicePortalPassword
;
Description
Specifies the Windows DevicePortal password for the device to deploy and launch the UWP app on when using Build and Run.
This parameter is only necessary if WDP authentication is enabled on the tar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_35f8fb3212ea_doc_15 | github | scripting | What does `IsToggled` do in this Unity script? Explain its purpose and signature. | Get the current toggle state of the button.True if toggled ON, false if toggled OFF.
Signature:
```csharp
public bool IsToggled()
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_5919f3b23b1c | unity_docs | rendering | In Unity's 'View mesh data visualizations', what is 'View mesh data' and how does it work? | The Preview window displays the following data about the mesh:
The name of the mesh.
The number of vertices in the mesh.
The type and number of faces in the mesh. Most meshes use triangles to define faces.
The number of blend shapes in the mesh, if any.
The number of sub-meshes in the mesh, if there is more than one.
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4afee5a14163 | unity_docs | rendering | What is `Rendering.CommandBuffer.DrawRendererList` in Unity? Explain its purpose and usage. | CommandBuffer.DrawRendererList
Declaration
public void
DrawRendererList
(
Rendering.RendererList
rendererList
);
Parameters
Parameter
Description
rendererList
The RendererList to draw.
Description
Adds a "draw renderer list" command.
This command schedules the drawing of visible GameObjects in a Renderer... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9811599b6099 | unity_docs | rendering | Show me a Unity C# example demonstrating `Texture2D.PackTextures`. | different atlases with similar item sizes, such as one for items with a minimum dimension of 256 and another with a minimum of 1024, will reduce the number of mip levels that are dropped when atlassing.
If
makeNoLongerReadable
is
true
then the texture will be marked as no longer readable
and memory will be freed af... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_404ea3809f42_doc_2 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | class BaseViewThe class is a base implementation of views for all that will be used to interact with a ECS model
Signature:
```csharp
public abstract class BaseView: MonoBehaviour, IView
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_3e389573dfe9 | unity_docs | rendering | What is `AssetImporters.TextureGenerationSettings.ctor` in Unity? Explain its purpose and usage. | TextureGenerationSettings Constructor
Declaration
public
TextureGenerationSettings
(
TextureImporterType
type
);
Parameters
Parameter
Description
type
Texture type.
Description
The Constructor initializes to most common value based on the TetureImporterType you pass in. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f72fe192e20 | unity_docs | scripting | What is `UIElements.ScrollView.verticalHorizontalVariantContentUssClassName` in Unity? Explain its purpose and usage. | ScrollView.verticalHorizontalVariantContentUssClassName
public static string
verticalHorizontalVariantContentUssClassName
;
Description
USS class name that's added when the ContentContainer is in both horizontal and vertical mode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_024df8d81102_doc_6 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Creates a child GameObject from resources.TComponent will be initialized with the given arguments.The path to the resourced asset.The TArgs object to be passed in on initialization.Will the instantiated GameObject stay in its world position or be set to local origin.The type of Component to be added to the new GameObje... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_1629e0c8cbc5 | unity_docs | rendering | What is `SystemInfo.maxTextureArraySlices` in Unity? Explain its purpose and usage. | SystemInfo.maxTextureArraySlices
public static int
maxTextureArraySlices
;
Description
Maximum number of slices in a Texture array (Read Only).
This is the largest Texture array size that your graphics hardware supports. Even if a GPU supports
a large Texture array size, it might not have enough memory to crea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd9a228b06cb | unity_docs | rendering | What is `U2D.ScriptablePacker.PackerData.textureData` in Unity? Explain its purpose and usage. | ScriptablePacker.PackerData.textureData
public NativeArray<TextureData>
textureData
;
Description
A NativeArray containing texture data of all the sprites that includes width, height and offset to read from colorData array. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f1b3bda3ca8a | unity_docs | rendering | What is `Rendering.CommandBuffer.DrawMeshInstancedIndirect` in Unity? Explain its purpose and usage. | CommandBuffer.DrawMeshInstancedIndirect
Declaration
public void
DrawMeshInstancedIndirect
(
Mesh
mesh
,
int
submeshIndex
,
Material
material
,
int
shaderPass
,
ComputeBuffer
bufferWithArgs
,
int
argsOffset
,
MaterialPropertyBlock
properties
);
Declaration
public void
DrawMeshInstancedIndirect
(
Mes... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_dcd025c62afb_doc_6 | github | scripting | What does `CreateListControl` do in this Unity script? Explain its purpose and signature. | Creates the that will be used to drawand manipulate the list of ordered dictionary entries.The new instance.
Signature:
```csharp
protected virtual ReorderableListControl CreateListControl()
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2007234867e8 | unity_docs | xr | In Unity's 'Google ARCore XR Plugin', what is 'Description' and how does it work? | Provides native Google ARCore integration for use with Unity’s multi-platform XR API.
Supports the following features:
-Efficient Background Rendering
-Horizontal Planes
-Depth Data
-Anchors
-Hit Testing
-Occlusion | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e0283d35d6a | unity_docs | rendering | What are the parameters of `Cubemap.SetPixelData` in Unity? | Description Sets the raw data of an entire mipmap level of a face directly in CPU memory. This method sets pixel data for the texture in CPU memory. Texture.isReadable must be true , and you must call Apply after SetPixelData to upload the changed pixels to the GPU. SetPixelData is useful if you want to load compressed... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cd1233676160 | unity_docs | editor | Show me a Unity C# example demonstrating `Android.AndroidProjectFilesModifierContext`. | AndroidProjectFilesModifierContext
class in
UnityEditor.Android
Description
Represents a container that specifies additional dependencies and additional outputs for
AndroidProjectFilesModifier
.
```csharp
using System.IO;
using Unity.Android.Gradle;
using UnityEditor;
using UnityEditor.Android;
using UnityEngine... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2504b8c11166 | unity_docs | rendering | What is `Terrain.renderingLayerMask` in Unity? Explain its purpose and usage. | Terrain.renderingLayerMask
public uint
renderingLayerMask
;
Description
Determines which rendering layers the Terrain renderer lives on.
When using a Scriptable Render Pipeline, you can specify an additional rendering-specific layer mask. This filters the renderers based on the mask the renderer has, and the ma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1bfc4a30522 | unity_docs | math | What is `Vector2.SmoothDamp` in Unity? Explain its purpose and usage. | Vector2.SmoothDamp
Declaration
public static
Vector2
SmoothDamp
(
Vector2
current
,
Vector2
target
,
ref
Vector2
currentVelocity
,
float
smoothTime
,
float
maxSpeed
= Mathf.Infinity,
float
deltaTime
= Time.deltaTime);
Parameters
Parameter
Description
current
The current position.
target
The p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3bfa342a2784 | unity_docs | scripting | What is `CharacterController.stepOffset` in Unity? Explain its purpose and usage. | CharacterController.stepOffset
public float
stepOffset
;
Description
The character controllers step offset in meters.
The maximum height in meters that the character can climb over automatically when moving. This is used to allow the character to smoothly step over small obstacles like stairs or ledges instead... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6a7d7e16ec9b | unity_docs | scripting | What is `Application.isPlaying` in Unity? Explain its purpose and usage. | Application.isPlaying
public static bool
isPlaying
;
Description
Returns true when called in any kind of built Player, or when called in the Editor in Play mode (Read Only).
In a built Player, this method always returns true.
In the Editor, it returns true if the Editor is in Play mode.
Unity might throw an exc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68503ac83e48 | unity_docs | scripting | Show me a Unity C# example demonstrating `AudioSource.PlayScheduled`. | he
clip
at a specific time on the absolute time-line that AudioSettings.dspTime reads from.
This is the preferred way to stitch AudioClips in music players because it is independent of the frame rate and gives the audio system enough time to prepare the playback of the sound to fetch it from media where the opening ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_07c576d49157 | unity_docs | rendering | What is `Rendering.GraphicsSettings.lightsUseLinearIntensity` in Unity? Explain its purpose and usage. | GraphicsSettings.lightsUseLinearIntensity
public static bool
lightsUseLinearIntensity
;
Description
If this is true, Light intensity is multiplied against linear color values. If it is false, gamma color values are used.
Light intensity is multiplied by the linear color value when lightsUseLinearIntensity
is ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e577c930e743 | unity_docs | rendering | What is `SparseTexture.UpdateTile` in Unity? Explain its purpose and usage. | SparseTexture.UpdateTile
Declaration
public void
UpdateTile
(int
tileX
,
int
tileY
,
int
miplevel
,
Color32[]
data
);
Parameters
Parameter
Description
tileX
Tile X coordinate.
tileY
Tile Y coordinate.
miplevel
Mipmap level of the texture.
data
Tile color data.
Description
Update sparse texture til... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d2f78345987 | unity_docs | animation | What is `UIElements.Experimental.ValueAnimation_1.Create` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ValueAnimation<T0>.Create
Declaration
public static ValueAnimation<T>
Create
(
UIElements.VisualElement
e
,
Func<T,T,float,T>
interpolator
);
Description
Creates a new ValueAnimation object or returns an available one fro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cea265c47061 | unity_docs | editor | In Unity's 'Load UXML and USS C# scripts', what is 'Use the Asset Database (Editor only)' and how does it work? | You can load your UI Assets by path or GUID with the AssetDatabase class.
The following example shows how to locate an asset by path:
```
VisualTreeAsset uxml = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>("Assets/Editor/main_window.uxml");
StyleSheet uss = AssetDatabase.LoadAssetAtPath<StyleSheet>("Assets/Editor/mai... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_05078be3f60a | unity_docs | rendering | What is `CustomRenderTexture.initializationSource` in Unity? Explain its purpose and usage. | CustomRenderTexture.initializationSource
public
CustomRenderTextureInitializationSource
initializationSource
;
Description
Determine if Unity initializes the Custom Render Texture with a Texture and a Color or a Material.
Additional resources:
CustomRenderTextureInitializationSource
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_221713f444a3 | github | scripting | Write a Unity C# script called Overwrite Child | ```csharp
using UnityEngine;
namespace Duck.HierarchyBehaviour
{
public static partial class GameObjectExtensions
{
/// <summary>
/// Destroys the given GameObject if it is not null, then creates a child GameObject with the given TComponent component and assigns it to the reference.
/// IHierarchyBehaviour's w... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_0bd26e04f57f | unity_docs | scripting | What is `AssetDatabase.GetAvailableImporters` in Unity? Explain its purpose and usage. | AssetDatabase.GetAvailableImporters
Declaration
public static Type[]
GetAvailableImporters
(string
path
);
Parameters
Parameter
Description
path
Project relative path for the asset.
Returns
Type[]
Returns an array of importer types that can handle the specified Asset.
Description
Gets the importer ty... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63c95cffe55f | unity_docs | scripting | What is `Cloth.damping` in Unity? Explain its purpose and usage. | Cloth.damping
public float
damping
;
Description
Damp cloth motion.
Set this to damp the motions of a cloth instance. Must be between zero and one.
Setting this to zero will disable cloth damping.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
GetComponent<Cloth>().dampin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_95e2894903bc | unity_docs | physics | What is `ModifiableContactPair.otherBodyInstanceID` in Unity? Explain its purpose and usage. | ModifiableContactPair.otherBodyInstanceID
public int
otherBodyInstanceID
;
Description
Instance ID of the second body in this contact pair.
Note that this can be Rigidbody or ArticulationBody. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_320dad30290c | unity_docs | scripting | Show me a Unity C# example demonstrating `QualitySettings.vSyncCount`. | attery being recharged.
Web
: Any of the above conditions might occur, depending on which form factor device the user is browsing on.
Therefore, it is recommended to not hardcode anywhere in the game logic with an assumption that the display refresh rate that is seen at the game startup will persist throughout the li... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5e03eced838 | unity_docs | scripting | Show me a Unity C# example demonstrating `Object.name`. | Object.name
public string
name
;
Description
The name of the object.
Components share the same name with the game object and all attached components. If a class derives from MonoBehaviour it inherits the "name" field from
MonoBehaviour
. If this class is also attached to GameObject, then "name" field is set t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_08077e231c66_doc_3 | github | scripting | What does `InitInternal` do in this Unity script? Explain its purpose and signature. | Identical to , but non-virtual, so slightly faster.
Signature:
```csharp
internal void InitInternal(TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_9611e66fd043 | unity_docs | rendering | Explain 'Text assets' in Unity. | Text assets are a format for imported text files. When you drop a text file into your Project folder, Unity converts it to a Text Asset. The supported text formats are:.bytes.csv.fnt.htm.html.json.md.txt.xml.yaml
Note:
When you use
AssetDatabase.FindAssets
with the
t:TextAsset
filter, script files are also considered a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_67d6c31fb4ed | unity_docs | xr | What are the parameters of `Android.Permission.HasUserAuthorizedPermission` in Unity? | Returns bool Whether the requested permission has been granted. Description Check if the user has granted access to a device resource or information that requires authorization. ```csharp
using UnityEngine;
using UnityEngine.Android;public class CheckPermissionScript : MonoBehaviour
{
void Start()
{
if ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3b3f36f4b534 | github | scripting | Write a Unity C# script called Game Event | ```csharp
using Hudossay.AttributeEvents.Assets.Runtime.EventLinks;
using System.Collections.Generic;
using UnityEngine;
namespace Hudossay.AttributeEvents.Assets.Runtime.GameEvents
{
public class GameEvent<T1, T2, T3> : GameEventBase
{
public List<EventLink<T1, T2, T3>> Links = new List<EventLink<T1, ... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_ca76838b85d9 | unity_docs | scripting | Explain 'Modify Gradle project files' in Unity. | Explore the different methods you can use to modify the contents of the Gradle project files that configure your application.
Topic Description Modify the Gradle project files for a Unity application
Understand the available methods that you can use to modify the contents of Gradle project files.
Modify Gradle project ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2404801ceac8 | unity_docs | physics | Show me a Unity C# example demonstrating `ParticleSystem.collision`. | ParticleSystem.collision
public
ParticleSystem.CollisionModule
collision
;
Description
Script interface for the CollisionModule of a Particle System.
This module allows particles to collide with a predefined list of planes, or with the 2D and 3D physics worlds.
Particle System modules do not need to be reass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a13a5aabee30 | unity_docs | ui | In Unity's 'Create a runtime binding with a type converter', what is 'Create a data source asset' and how does it work? | Create a data source asset that contains the properties you want to bind to. In this example, you create a ScriptableObject asset named ExampleConverterObject that contains a local converter that converts a float to a Color and a
string
.
Create a project in Unity with any template.
In the Assets folder of your project... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_cf41fd5ba932 | github | scripting | Write a Unity C# script called Dynamic Move Provider | ```csharp
using Unity.XR.CoreUtils;
using UnityEngine.Assertions;
namespace UnityEngine.XR.Interaction.Toolkit.Samples.StarterAssets
{
/// <summary>
/// A version of action-based continuous movement that automatically controls the frame of reference that
/// determines the forward direction of movement bas... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dff4414e3290 | unity_docs | rendering | Explain 'Code examples: Call JavaScript and C/C++/C# functions in Unity' in Unity. | You can use code to perform interactions between
plug-ins
and your Unity code. The following examples show how to call various types of functions from JavaScript and C/C++/C# code in your Unity project.
## Call JavaScript code in Unity C# example
The following code is an example of JavaScript code that your Unity C# ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ed367616249 | unity_docs | scripting | What are the parameters of `Transform.SetSiblingIndex` in Unity? | Description Sets the sibling index. Use this to change the sibling index of the GameObject. If a GameObject shares a parent with other GameObjects and are on the same level (i.e. they share the same direct parent), these GameObjects are known as siblings. The sibling index shows where each GameObject sits in this sibli... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eb828841b625 | unity_docs | networking | What is `Networking.MultipartFormFileSection.fileName` in Unity? Explain its purpose and usage. | MultipartFormFileSection.fileName
public string
fileName
;
Returns
string
The desired file name of this section, or
null
if this is not a file section.
Description
Returns a string denoting the desired filename of this section on the destination server.
Additional resources: [IMultipartFormSection.fileN... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_138fdb84a130_doc_9 | github | scripting | What does `SetLocale` do in this Unity script? Explain its purpose and signature. | Sets the locale using its identifierCode, if it is available.The locales identifier code (en, de, ...).
Signature:
```csharp
public void SetLocale(string identifierCode)
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_99d1d8958643 | unity_docs | math | What is `Mathf.Atan2` in Unity? Explain its purpose and usage. | Mathf.Atan2
Declaration
public static float
Atan2
(float
y
,
float
x
);
Description
Returns the angle in radians whose
Tan
is
y/x
.
Return value is the angle between the x-axis and a 2D vector starting at zero and terminating
at (x,y).
Note:
This function takes account of the cases where x is zero and re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f01aa41da356 | unity_docs | input | In Unity's 'Create a slide toggle custom control', what is 'Create the slide toggle class' and how does it work? | Create the slide toggle class with a C# script.
Create a Unity project with the 3D template. A 3D template has a better visual effect for this example. However, you can use any template.
Create a folder named
slide-toggle
to store your files.
In the
slide-toggle
folder, create a C# script named
SlideToggle.cs
.
Open
Sl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97b35a3c0592 | unity_docs | rendering | What is `WebCamTexture.Stop` in Unity? Explain its purpose and usage. | WebCamTexture.Stop
Declaration
public void
Stop
();
Description
Stops the camera.
Call
Application.RequestUserAuthorization
before creating a
WebCamTexture.
```csharp
// Starts a camera and assigns the texture to the current renderer.
// Stops the camera when the "Stop" button is clicked and released.
using ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f868d4af2818 | unity_docs | math | What is `Tilemaps.Tilemap.GetInstantiatedObject` in Unity? Explain its purpose and usage. | Tilemap.GetInstantiatedObject
Declaration
public
GameObject
GetInstantiatedObject
(
Vector3Int
position
);
Parameters
Parameter
Description
position
Position of the Tile on the
Tilemap
.
Returns
GameObject
GameObject
instantiated by the
Tile
at the position.
Description
Gets the
GameObject
in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_95f1dd9f9b83 | unity_docs | physics | Explain 'Create rule set files' in Unity. | To define your own rules on how to handle the various warnings and errors that the analyzers in your project raise, you can create a ruleset file. For more information on how to create a custom ruleset, refer to Microsoft’s Visual Studio documentation on
how to create a custom rule set
.
In the Assets root folder, plac... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9230c3947785 | unity_docs | rendering | In Unity's 'Skinned Mesh Renderer component reference', what is 'Properties' and how does it work? | Property Description Bounds
Sets the bounding volume that Unity uses to determine when the mesh is offscreen. Unity pre-calculates the bounds when importing the mesh and animations in the Model file, and displays the bounds as a wireframe around the Model in the Scene view.
If you set Update When Offscreen to True, Uni... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_96307f2af094 | unity_docs | rendering | What is `TerrainTools.PaintContext.GatherAlphamap` in Unity? Explain its purpose and usage. | PaintContext.GatherAlphamap
Declaration
public void
GatherAlphamap
(
TerrainLayer
inputLayer
,
bool
addLayerIfDoesntExist
);
Parameters
Parameter
Description
inputLayer
TerrainLayer used for painting.
addLayerIfDoesntExist
Set to true to specify that the inputLayer is added to the terrain if it does not ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fca2251e45c4 | unity_docs | scripting | In Unity's 'Code examples: Call Java/Kotlin code from C# scripts', what is 'Example 3: Pass data from Java to Unity' and how does it work? | The following code example shows how to pass data from Java to Unity using
UnitySendMessage
.
```csharp
using UnityEngine;
using UnityEngine.Android;
public class JavaExamples : MonoBehaviour
{
private void Start()
{
AndroidJNIHelper.debug = true;
AndroidApplication.unityPlayer.CallStatic("UnitySendMessage", "My G... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bb43fec50ee6 | unity_docs | rendering | Show me a Unity C# example demonstrating `LightTransport.IProbeIntegrator.IntegrateIndirectRadiance`. | ough the scene. The number of bounces is controlled by the bounce count parameter set in Prepare.
Indirect radiance includes contribution from:
Light bounced off surfaces.
Light transmitted through transparent materials.
Illumination from emissive materials.
Multi-bounce environment lighting.
Higher sample counts ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_84b35345c60d_doc_2 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | HashSet containing instance ID of font assets already searched.
Signature:
```csharp
private static HashSet<int> k_SearchedAssets;
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_14ecaa29566d | unity_docs | physics | What is `Collision.rigidbody` in Unity? Explain its purpose and usage. | Collision.rigidbody
public
Rigidbody
rigidbody
;
Description
The
Rigidbody
we hit (Read Only). This is
null
if the object we hit is a collider with no rigidbody attached.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
// Make all rigidbodies we touch fly upwards
void OnCollisio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_418c6db77891 | unity_docs | xr | Show me a Unity C# example demonstrating `MPE.EventService`. | on implementation of a
ChannelClient
that runs on all instances of Unity. It is connected to the "events" channel and allows a Unity instance to send JSON messages to other
EventService
s in external process, or other instances of Unity.
The
EventService
can send fire-and-forget messages (see
EventService.Emit
)... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2af36a014622 | unity_docs | rendering | Explain 'Rotation by Speed module reference' in Unity. | The rotation of a particle can be set here to change according to its speed in distance units per second.
## Properties
For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to
Vary Particle System properties over time
.
Property Function ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7755b4a7220c | unity_docs | xr | Show me a Unity C# example demonstrating `Search.IPropertyDatabaseView.IsPersistableType`. | Description
Returns a boolean indicating if a type can be persisted into the backing file.
Only certain types can be persisted in the backing file to survive a domain reload and quitting Unity. However, any type can be stored without backing in the
PropertyDatabase
. You can always decompose your custom objects into... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d88fed6cb82 | unity_docs | rendering | What is `Rendering.CameraLateLatchMatrixType` in Unity? Explain its purpose and usage. | CameraLateLatchMatrixType
enumeration
Description
The types of camera matrices that support late latching.
Properties
Property
Description
View
The camera's view matrix.
InverseView
The camera's inverse view matrix.
ViewProjection
The camera's view projection matrix.
InverseViewProjection
The camera's invers... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ab0eb596b3b9 | unity_docs | math | Show me a Unity C# example demonstrating `SerializedProperty.GetEnumerator`. | SerializedProperty.GetEnumerator
Declaration
public IEnumerator
GetEnumerator
();
Description
Retrieves an iterator for enumerating over the visible child properties of the current property. If the property is an array it will enumerate over the array elements.
Additional resources:
NextVisible
,
GetEndPrope... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2b7257f9c8f | unity_docs | scripting | What is `AI.OffMeshLinkType` in Unity? Explain its purpose and usage. | OffMeshLinkType
enumeration
Description
Link type specifier.
Properties
Property
Description
LinkTypeManual
Manually specified type of link.
LinkTypeDropDown
Vertical drop.
LinkTypeJumpAcross
Horizontal jump. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e77bf69a5dd3 | unity_docs | animation | What is `AnimatedValues.BaseAnimValue_1.BeginAnimating` in Unity? Explain its purpose and usage. | BaseAnimValue<T0>.BeginAnimating
Declaration
protected void
BeginAnimating
(T
newTarget
,
T
newStart
);
Parameters
Parameter
Description
newTarget
Target value.
newStart
Start value.
Description
Begin an animation moving from the start value to the target value. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01d837366eef | unity_docs | editor | Show me a Unity C# example demonstrating `Handles.DrawAAPolyLine`. | Use this to keep a reusable buffer of point values without the need to resize frequently.
Description
Draw anti-aliased line specified with point array and width.
Note:
Use
HandleUtility.GetHandleSize
where you might want to have constant screen-sized handles.
Note:
To get an anti-aliased effect use a texture th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_20eb0ad9d762 | unity_docs | rendering | What is `RenderTexture.width` in Unity? Explain its purpose and usage. | RenderTexture.width
public int
width
;
Description
The width of the render texture in pixels.
Note that unlike
Texture.width
property, this is both read and write -
setting a value changes size.
Additional resources::
height
,
format
,
depth
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_635d4d23a4a8 | unity_docs | rendering | What is `AssetDatabase.IsMainAssetAtPathLoaded` in Unity? Explain its purpose and usage. | AssetDatabase.IsMainAssetAtPathLoaded
Declaration
public static bool
IsMainAssetAtPathLoaded
(string
assetPath
);
Parameters
Parameter
Description
assetPath
Filesystem path of the asset to load.
Returns
bool
Returns true if the main asset object at
assetPath
is loaded in memory.
Description
Checks ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4ee98236d4da | unity_docs | animation | What is `Animations.AimConstraint.WorldUpType.ObjectUp` in Unity? Explain its purpose and usage. | AimConstraint.WorldUpType.ObjectUp
Description
Uses and defines the world up vector as a vector from the constrained object, in the direction of the up object.
When using this world up type, the up vector of the constrained object tries to aim towards the origin of the up object.
If the up object is not set, the wo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_611e3ab101fc | unity_docs | scripting | What is `Experimental.GraphView.StickyNote.FitText` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StickyNote.FitText
Declaration
public void
FitText
(bool
onlyIfSmaller
);
Description
Resizes the [StickyNote] so that its textual content is visible. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_47fa3866b105 | github | scripting | Write a Unity C# UI script for Touch Pad | ```csharp
using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace UnityStandardAssets.CrossPlatformInput
{
[RequireComponent(typeof(Image))]
public class TouchPad : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
{
// Options for which axes to use
public... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_a5d43edda835 | unity_docs | rendering | Explain 'Introduction to cookies' in Unity. | A cookie is a mask that you place on a light to create a shadow with a specific shape or color, which changes the appearance and intensity of the light.
Cookies are an efficient way of simulating complex lighting effects with minimal runtime performance impact. Effects you can simulate with cookies include caustics, so... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b00a3961b63b | unity_docs | scripting | Explain 'Code sign and notarize your macOS application' in Unity. | This section has information on code signing and notarization for your macOS application.
Topic Description Code signing your application
Describes the steps required to code sign your macOS application.
Notarize with Xcode and command-line tools
Explains the process of notarizing your macOS application with Xcode and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8a2f85068791 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.GetLeakDetectionMode` in Unity? Explain its purpose and usage. | UnsafeUtility.GetLeakDetectionMode
Declaration
public static
Unity.Collections.NativeLeakDetectionMode
GetLeakDetectionMode
();
Returns
NativeLeakDetectionMode
The mode of leak detection:
1: Disabled
2: Enabled
3: Enabled with callstacks
Description
Gets the mode of memory leak detection. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d0e35926e716 | github | scripting | Write a Unity C# XR/VR script for Physics Grabbable | ```csharp
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* Licensed under the Oculus SDK License Agreement (the "License");
* you may not use the Oculus SDK except in compliance with the License,
* which is provided at the time of installation or download, or which
* otherwise a... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_385bdce86d02 | unity_docs | rendering | What is `Terrain.keepUnusedRenderingResources` in Unity? Explain its purpose and usage. | Terrain.keepUnusedRenderingResources
public bool
keepUnusedRenderingResources
;
Description
Defines whether Unity frees per-Camera rendering resources for the Terrain when those resources aren't in use after a certain number of frames.
By default, this property is
false
, which implies that Unity deletes these... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_977c49d6a6f7 | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.Providers.SceneQueryEngineParameterTransformerAttribute`. | 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. |
gh_1a910c7c83a2 | github | scripting | Write a Unity Editor script for Populate Rule Overide Tile Wizard | ```csharp
using UnityEngine;
using UnityEngine.Tilemaps;
using System.Linq;
using System.Text.RegularExpressions;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEditor.Tilemaps
{
[MovedFrom(true, "UnityEditor")]
public class PopulateRuleOverideTileWizard : ScriptableWizard
{
[MenuItem("CO... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_21daf8a3b9af | unity_docs | editor | What is `Handles.centerColor` in Unity? Explain its purpose and usage. | Handles.centerColor
public static
Color
centerColor
;
Description
Color to use for handles that represent the center of something.
This is for used for example in the position, rotation, and scale gizmos, as well as in the Scene View gizmo. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ceefb79632e | unity_docs | ui | What is `UIElements.VisualElement.Hierarchy.Sort` in Unity? Explain its purpose and usage. | VisualElement.Hierarchy.Sort
Declaration
public void
Sort
(Comparison<VisualElement>
comp
);
Parameters
Parameter
Description
comp
Sorting criteria.
Description
Reorders child elements from this VisualElement contentContainer. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e47349fc8689 | unity_docs | rendering | In Unity's 'Input data into HLSL', what is 'Include a prebuilt structure' and how does it work? | Unity has a library of High-Level Shader Language (HLSL) shader files that contain prebuilt HLSL structures with common vertex inputs. To use a prebuilt structure, follow these steps:
Add
#include "UnityCG.cginc"
at the top of your
HLSLPROGRAM
. This imports the
UnityCG.cginc
file, which contains the prebuilt structure... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d703b6fe6a47 | unity_docs | scripting | What is `CanvasRenderer` in Unity? Explain its purpose and usage. | CanvasRenderer
class in
UnityEngine
/
Inherits from:
Component
/
Implemented in:
UnityEngine.UIModule
Description
A component that will render to the screen after all normal rendering has completed when attached to a
Canvas
. Designed for GUI application.
Additional resources:
Canvas
.
Properties
Property
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d44654e6d789 | github | scripting | Write a Unity C# MonoBehaviour script called Singleton | ```csharp
using UnityEngine;
namespace DilmerGames.Core.Singletons
{
public class Singleton<T> : MonoBehaviour
where T : Component
{
private static T _instance;
public static T Instance
{
get
{
if (_instance == null)
{
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_826a25c15965 | unity_docs | rendering | Show me a Unity code example for 'Customize the global cache'. | pe sequences and can cause TOML parsing errors.
To override the maximum size of the db subdirectory, add the maxCacheSize key and set its value to a positive integer representing the number of bytes. For example, to set the size to 5 GB, assign a value of
5000000000
.
You don’t need to restart the Unity Editor or the H... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f8a6b536d346 | unity_docs | rendering | What is `Rendering.CullingResults.lightAndReflectionProbeIndexCount` in Unity? Explain its purpose and usage. | CullingResults.lightAndReflectionProbeIndexCount
public int
lightAndReflectionProbeIndexCount
;
Returns
int
The number of per-object light and reflection probe indices.
Description
Gets the number of per-object light and reflection probe indices.
Additional resources:
FillLightAndReflectionProbeIndices
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9957a52caec5 | unity_docs | scripting | What is `Undo.RegisterFullObjectHierarchyUndo` in Unity? Explain its purpose and usage. | Undo.RegisterFullObjectHierarchyUndo
Declaration
public static void
RegisterFullObjectHierarchyUndo
(
Object
objectToUndo
,
string
name
);
Parameters
Parameter
Description
objectToUndo
The object used to determine a hierarchy of objects whose state changes need to be undone.
name
The name of the undo ope... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_44de11a95c49 | unity_docs | rendering | What is `ParticleSystem.GetTrails` in Unity? Explain its purpose and usage. | ParticleSystem.GetTrails
Declaration
public
ParticleSystem.Trails
GetTrails
();
Returns
Trails
The variable to populate with the Trails that currently belong to the Particle System..
Description
Returns all the data relating to the current internal state of the Particle System Trails.
If you want to re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ce349681fd72 | unity_docs | rendering | Explain 'Create a quad mesh via script' in Unity. | To represent flat surfaces, Unity includes the Plane and Quad primitive GameObjects
that you can instantiate in your
Scenes
. However, it is useful to understand how to use a script to construct a quadrilateral mesh yourself. This is essential for procedural mesh generation.
Note
: Unity processes and displays geometry... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ccb2faefbe31 | unity_docs | rendering | In Unity's 'Reflective Normal mapped Vertex-lit', what is 'Reflective Properties' and how does it work? | Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader will simulate reflective surfaces such as cars, metal objects etc. It requires an environment Cubemap which will define what exactly is reflected. The main texture’s alpha channel defines the strength of reflection on the object’s surf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_aa80c3a55534 | unity_docs | math | In Unity's 'Using randomness', what is 'Simple random numbers' and how does it work? | Random.value
gives you a random
floating point number
between 0.0 and 1.0. A common usage is to convert it to a number between zero and a range of your choosing by multiplying the result.
Random.Range
gives you a random
number between a minimum and maximum value
that you provide. It returns either an integer or a float... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_047edcaeda9a | unity_docs | editor | What is `Profiling.FrameDataView.GetMarkerMetadataInfo` in Unity? Explain its purpose and usage. | FrameDataView.GetMarkerMetadataInfo
Declaration
public MarkerMetadataInfo[]
GetMarkerMetadataInfo
(int
markerId
);
Parameters
Parameter
Description
markerId
Marker identifier.
Returns
MarkerMetadataInfo[]
Returns an array of metadata information structures.
Description
Gets Profiler marker metadata i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f08432ef2d76 | unity_docs | editor | In Unity's 'ScriptableObject', what is 'Saving changes to ScriptableObject data' and how does it work? | In the Unity Editor, you can save data to ScriptableObjects in Edit mode and Play mode. In a standalone Player at runtime, you can only read saved data from the ScriptableObject assets. When you use Editor authoring tools or the Inspector to modify a ScriptableObject asset, Unity automatically writes the data to disk a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f057c0de51fd | unity_docs | editor | What is `Rendering.EditorGraphicsSettings.TryGetRenderPipelineSettingsFromInterfaceForPipeline` in Unity? Explain its purpose and usage. | EditorGraphicsSettings.TryGetRenderPipelineSettingsFromInterfaceForPipeline
Declaration
public static bool
TryGetRenderPipelineSettingsFromInterfaceForPipeline
(Type
renderPipelineType
,
out TSettingsInterfaceType[]
settings
);
Declaration
public static bool
TryGetRenderPipelineSettingsFromInterfaceForPipeline... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0312ae844695 | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.OnMouseUpAsButton`. | s attached to the
Collider
. This function is not called on objects that belong to Ignore Raycast layer. This function is called on Colliders and 2D Colliders marked as trigger when the following properties are set to true:
- For 3D physics:
Physics.queriesHitTriggers
- For 2D physics:
Physics2D.queriesHitTriggers... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_66be056ce994 | unity_docs | ui | What is `GUILayout.HorizontalSlider` in Unity? Explain its purpose and usage. | GUILayout.HorizontalSlider
Declaration
public static float
HorizontalSlider
(float
value
,
float
leftValue
,
float
rightValue
,
params GUILayoutOption[]
options
);
Declaration
public static float
HorizontalSlider
(float
value
,
float
leftValue
,
float
rightValue
,
GUIStyle
slider
,
GUIStyle
thumb
,
... | 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.