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_7480145cbba3 | unity_docs | scripting | What is `FileUtil.GetLogicalPath` in Unity? Explain its purpose and usage. | FileUtil.GetLogicalPath
Declaration
public static string
GetLogicalPath
(string
path
);
Parameters
Parameter
Description
path
Physical path.
Returns
string
Logical path.
Description
Converts a physical path to a logical path.
Logical paths in Unity are virtual paths which point to real (or "physical... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d7f90fdf083e | unity_docs | physics | What is `Joint2D.breakForce` in Unity? Explain its purpose and usage. | Joint2D.breakForce
public float
breakForce
;
Description
The force that needs to be applied for this joint to break.
When a joint tries to constrain a
Rigidbody2D
it may need to apply a force to do so. This is known as the
reactionForce
. Each physics update, the
breakForce
is compared to the size of the
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_291d16f84e54 | unity_docs | scripting | What is `LensFlare.color` in Unity? Explain its purpose and usage. | LensFlare.color
public
Color
color
;
Description
The color of the flare.
This controls the color of some flare elements (the ones that have
use light color
enabled).
Additional resources:
Lens flare component
,
flare assets
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Increme... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8d6c7a659bd7 | unity_docs | rendering | Explain 'Control when Dynamic Scaling happens' in Unity. | The
ScalableBufferManager.ResizeBuffers
function immediately scales
render textures
when called. However, you can modify this behavior by using the DynamicallyScalableExplicit flag. Render textures marked with DynamicallyScalableExplicit will scale when you call
RenderTexture.ApplyDynamicScale
, instead of being automa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1d03f6cc4861 | unity_docs | scripting | What is `UIElements.Experimental.StyleValues.marginBottom` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues.marginBottom
public float
marginBottom
;
Description
Space reserved for the bottom edge of the margin during the layout phase. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_960ce3d9c89e | github | scripting | Write a Unity C# physics script for Extension Methods Class | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
namespace PlainSaveLoad
{
static class ExtensionMethodsClass
{
private static string ToPlainClassJs... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_b76ad7963154 | unity_docs | editor | What is `EditorGUILayout.FloatField` in Unity? Explain its purpose and usage. | EditorGUILayout.FloatField
Declaration
public static float
FloatField
(float
value
,
params GUILayoutOption[]
options
);
Declaration
public static float
FloatField
(float
value
,
GUIStyle
style
,
params GUILayoutOption[]
options
);
Declaration
public static float
FloatField
(string
label
,
float
val... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e7eea7111310 | unity_docs | editor | What is `EditorGUILayout.EndFoldoutHeaderGroup` in Unity? Explain its purpose and usage. | EditorGUILayout.EndFoldoutHeaderGroup
Declaration
public static void
EndFoldoutHeaderGroup
();
Description
Closes a group started with BeginFoldoutHeaderGroup.
Additional resources:
EditorGUILayout.BeginFoldoutHeaderGroup
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6cdff8229ece | unity_docs | ui | What are the parameters of `EditorGUI.MinMaxSlider` in Unity? | Description Makes a special slider the user can use to specify a range between a min and a max. MinMax Slider in an Editor Window. ```csharp
using UnityEngine;
using UnityEditor;
// Place the selected object randomly between the interval of the Min Max Slider
// in the X,Y,Z coordsclass EditorGUIMinMaxSlider : EditorWi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7bf5507efcff | unity_docs | rendering | Show me a Unity C# example demonstrating `Material.SetKeyword`. | they interact, see
Using shader keywords with C# scripts
.
When
value
is
true
, this function calls
EnableKeyword
. Otherwise, it calls
DisableKeyword
.
If the
LocalKeyword
does not exist in the
Shader.keywordSpace
for the shader that this material uses, this function has no effect.
The following example crea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4cb1c76734da_doc_1 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | This type contains an information about user's input. You can storeany type of information you want.
Signature:
```csharp
public struct TClickedComponent : IComponent
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_d203c05ecd36 | unity_docs | editor | What is `XboxBuildSubtarget` in Unity? Explain its purpose and usage. | XboxBuildSubtarget
enumeration
Description
Target Xbox build type.
Additional resources: EditorUserBuildSettings.xboxBuildSubtarget.
Properties
Property
Description
Development
Development player.
Master
Master player (submission-proof).
Debug
Debug player (for building with source code). | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_00adbfe264ce | unity_docs | editor | What are the parameters of `EditorGUILayout.Popup` in Unity? | Returns int The index of the option that has been selected by the user. Description Make a generic popup selection field. Takes the currently selected index as a parameter and returns the index selected by the user. Create a primitive depending on the option selected. ```csharp
using UnityEditor;
using UnityEngine;
usi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2237ec0c83c9 | unity_docs | rendering | What is `Rendering.CommandBuffer.SetGlobalInt` in Unity? Explain its purpose and usage. | CommandBuffer.SetGlobalInt
Declaration
public void
SetGlobalInt
(string
name
,
int
value
);
Declaration
public void
SetGlobalInt
(int
nameID
,
int
value
);
Description
Adds a command to set the value of a given property for all Shaders, where the property has a type of
Int
in ShaderLab code.
When Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bd531ca3f943 | github | scripting | Write a Unity Editor script for Editor Key Utility | ```csharp
#region
using System.IO;
using UnityEditor;
using UnityEngine;
#endregion
namespace MagicLeap.SetupTool.Editor.Utilities
{
public static class EditorKeyUtility
{
private const string MAGIC_LEAP_SETUP_POSTFIX_KEY = "MAGIC_LEAP_SETUP_KEY";
private const string MAGIC_LEAP_SETUP_CLOSE... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_b26f3f6a8308 | unity_docs | rendering | Explain 'Blend Reflection Probes in the Built-In Render Pipeline' in Unity. | To enable Reflection Probe blending navigate to
Graphic Settings
>
Tier settings
. Tier settings are only available in Unity’s
Built-in Render Pipeline
. When blending is enabled, Unity gradually fades out one probe’s cubemap while fading in the other’s as the reflective object passes from one zone to the other. This g... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45b209f4c015 | unity_docs | editor | What are the parameters of `Profiling.FrameDataView.GetCounterValueAsFloat` in Unity? | Returns float Returns the counter value as float . Description Gets the last value of a counter marker in the frame as a float data type'. Use to retrieve the last data sample of a marker with MarkerFlags.Counter flag. ```csharp
using UnityEditor.Profiling;class Example
{
static unsafe float ExtractMyCounterValue(F... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a1d85390726 | unity_docs | rendering | What is `Rendering.RayTracingShader.DispatchIndirect` in Unity? Explain its purpose and usage. | RayTracingShader.DispatchIndirect
Declaration
public void
DispatchIndirect
(string
rayGenFunctionName
,
GraphicsBuffer
argsBuffer
,
uint
argsOffset
,
Camera
camera
);
Parameters
Parameter
Description
rayGenFunctionName
The name of the ray generation shader.
argsBuffer
Buffer containing dispatch dime... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6cb2ed77210e | unity_docs | physics | What is `Undo.postprocessModifications` in Unity? Explain its purpose and usage. | Undo.postprocessModifications
public static
Undo.PostprocessModifications
postprocessModifications
;
Description
Callback that is triggered whenever a new set of property modifications is created.
Additional resources:
PostprocessModifications
.
```csharp
using UnityEditor;
using UnityEngine;public class Ex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7a6f5e724356 | unity_docs | rendering | Explain 'Bake lighting' in Unity. | To generate lightmaps for your Scene:
Open the
Lighting window
(menu:
Window
>
Rendering
>
Lighting
)
At the bottom of the Scene tab on the Lighting window, select
Generate Lighting
.
A progress bar appears in Unity Editor’s status bar, in the bottom-right corner.
When lightmapping is complete, Unity’s Scene and Game v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1d9f1dca771e | unity_docs | scripting | What is `AI.NavMeshBuildMarkup.ignoreFromBuild` in Unity? Explain its purpose and usage. | NavMeshBuildMarkup.ignoreFromBuild
public bool
ignoreFromBuild
;
Description
Use this to specify whether the GameObject and its children should be ignored.
If you set this to
true
, the GameObject and its children will not be included as part of the NavMesh.
Set
overrideIgnore
to
true
in order for this pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d8ef49c3ac29 | unity_docs | scripting | What is `Experimental.GraphView.ResizerDirection` in Unity? Explain its purpose and usage. | ResizerDirection
enumeration
Description
Enum that specifies in which direction to resize the element.
Properties
Property
Description
Top
Resize the element from the top.
Bottom
Resize the element from the bottom.
Left
Resize the element to the left.
Right
Resize the element to the right. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5266baf001b3 | unity_docs | scripting | What is `Tilemaps.Tile` in Unity? Explain its purpose and usage. | Tile
class in
UnityEngine.Tilemaps
/
Inherits from:
Tilemaps.TileBase
/
Implemented in:
UnityEngine.TilemapModule
Description
Class for a default tile in the
Tilemap
.
This inherits from
TileBase
and represents a default tile to be placed in a
Tilemap
. It implements
TileBase.GetTileData
for simple rend... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ae9fffc8734c | unity_docs | rendering | Explain 'Billboard Renderer component reference' in Unity. | Explore the properties and settings in the Billboard Renderer component to customize how Unity renders billboards and their interaction with lighting.
## Properties
Properties on this component are split into the following sections:
General Lighting Probes
Additional Settings
## General
This section contains genera... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_26028a3a63f8 | unity_docs | scripting | What is `BuildOptions.EnableDeepProfilingSupport` in Unity? Explain its purpose and usage. | BuildOptions.EnableDeepProfilingSupport
Description
Enables Deep Profiling support in the Player.
Deep profiling allows to instrument all C# method calls.
Note:
Enabling the
EnableDeepProfilingSupport
option might significantly slow down the Player, compared to one built with this option disabled. When enabled, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_663c7288f36f | unity_docs | scripting | What are the parameters of `MonoBehaviour.OnTriggerEnter` in Unity? | Description Called when a collider enters a trigger collider. OnTriggerEnter is called on whichever iteration of the physics FixedUpdate loop Unity first detects that the collider has entered the trigger. The colliders involved are not always at the point of initial contact when Unity detects the collision. Both GameOb... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dfddd99c25fd | unity_docs | rendering | What is `ParticleSystem.PlaybackState` in Unity? Explain its purpose and usage. | PlaybackState
struct in
UnityEngine
/
Implemented in:
UnityEngine.ParticleSystemModule
Description
Script interface for storing the particle playback state.
Additional resources:
ParticleSystem
,
ParticleSystem.GetPlaybackState
,
ParticleSystem.SetPlaybackState
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1e4d007f89b7 | unity_docs | animation | What is `Animations.AnimatorJobExtensions.BindSceneTransform` in Unity? Explain its purpose and usage. | AnimatorJobExtensions.BindSceneTransform
Declaration
public static
Animations.TransformSceneHandle
BindSceneTransform
(
Animator
animator
,
Transform
transform
);
Parameters
Parameter
Description
animator
The
Animator
instance that calls this method.
transform
The
Transform
to bind.
Returns
Tra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e6347127d0cd | unity_docs | scripting | Show me a Unity code example for 'Achievements Building Block'. | de file:
In the Assets folder, right-click
CloudCode.
Select
View in Explorer
on Windows or
View in Finder
on macOS.
Go to
BlocksGameModule~
>
Project
>
Achievement
>
AchievementDefinition.cs
.
Note
: The actual data stored is an array of objects of type
AchievementRecord
.
The following script is an example of the pla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2085cce91ecd | unity_docs | scripting | What is `GraphicsBuffer.bufferHandle` in Unity? Explain its purpose and usage. | GraphicsBuffer.bufferHandle
public
GraphicsBufferHandle
bufferHandle
;
Description
The internal handle of this GraphicsBuffer. Only valid until the buffer is disposed of. (Read Only)
Additional resources:
GraphicsBufferHandle
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3571f495cead | unity_docs | scripting | In Unity's 'MultiColumnListView', what is 'Refresh the collection view' and how does it work? | To refresh the collection view, you can call either
RefreshItems
/
RefreshItem or Rebuild
.
In general, call the RefreshItems or RefreshItem method—these methods only refresh the collection view and are less expensive. If you call Rebuild , the collection view is completely rebuilt, which can be expensive.
However, you... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f8c97531f892 | unity_docs | scripting | Explain 'Override prefab instances' in Unity. | You can override the properties and components of a prefab instance to create variations between instances, while still linking those instances to the same prefab asset. For example, you might create several instances of the same character, but override its speed value, and assign a different
audio clip
to each instanc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a10846ef68cb | unity_docs | editor | What is `HandleUtility.niceMouseDeltaZoom` in Unity? Explain its purpose and usage. | HandleUtility.niceMouseDeltaZoom
public static float
niceMouseDeltaZoom
;
Description
Get nice mouse delta to use for zooming (Read Only).
This will autodetect the users preference for X / Y axis dragging and give you back
a float that is measured accordingly. This also handles modifier keys correctly, i.e.
the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7d004f4de39f | unity_docs | xr | Explain 'XR graphics' in Unity. | Graphics and rendering in an XR app follow the same principles as they do in any Unity application, with some differences arising from the need for stereo rendering and increased efficiency.
XR apps generally require very high and consistent frame rates for user comfort. At the same time, rendering in stereo means that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_36306994bb0f | unity_docs | scripting | What is `Unity.Properties.IListPropertyBagVisitor.Visit` in Unity? Explain its purpose and usage. | IListPropertyBagVisitor.Visit
Declaration
public void
Visit
(IListPropertyBag<TList,TElement>
properties
,
ref TList
container
);
Parameters
Parameter
Description
properties
The properties of the container.
container
The container being visited.
Description
Implement this method to accept visitation fo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31b325f83364 | unity_docs | scripting | What is `Vector3.operator_subtract` in Unity? Explain its purpose and usage. | Vector3.operator -
public static
Vector3
operator -
(
Vector3
a
,
Vector3
b
);
Description
Subtracts one vector from another.
Subtracts each component of
b
from
a
.
```csharp
// prints (-5.0,-3.0,-1.0)using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void Exampl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_45e263ddd550 | unity_docs | rendering | Explain 'Setting a light as realtime or baked' in Unity. | Resources for setting the
Light Mode
of a Light component, which determines whether Unity calculates light in real time, or stores precalculated light in the build.
Page Description Light Modes
Compare the differences between
realtime lights
,
baked lights
, and mixed lights.
Choose a Light Mode
Choose between realtime... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d766d203c04 | unity_docs | scripting | What is `AI.NavMeshAgent.acceleration` in Unity? Explain its purpose and usage. | NavMeshAgent.acceleration
public float
acceleration
;
Description
The maximum acceleration of an agent as it follows a path, given in units / sec^2.
An agent does not follow precisely the line segments of the path calculated by the navigation system but rather uses the waypoints along the path as intermediate d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_60ef685f8e3f | unity_docs | rendering | Show me a Unity C# example demonstrating `Graphics.Blit`. | xture, or blit to a subregion of a texture,
you have to manually write an equivalent of the
Graphics.Blit
function - i.e.
Graphics.SetRenderTarget
with destination color buffer and source depth buffer, setup orthographic projection (
GL.LoadOrtho
), setup material pass (
Material.SetPass
) and draw a quad (
GL.Begi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1f16a8de87f1 | unity_docs | scripting | Give me an overview of the `FrustumPlanes` class in Unity. | FrustumPlanes
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
This struct contains the view space coordinates of the near projection plane.
Properties
Property
Description
bottom
Position in view space of the bottom side of the near projection plane.
left
Position in view space of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a331da8273a4 | unity_docs | rendering | What are the parameters of `Material.ctor` in Unity? | Description Create a temporary Material. If you have a script which implements a custom special effect, you implement all the graphic setup
using shaders & materials. Use this function to create a custom shader & material inside your script.
After creating the material, use SetColor , SetTexture , SetFloat , SetVector ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1d4d24b65a87 | unity_docs | physics | Explain 'Android External Tools reference' in Unity. | Learn how to configure Android development tools using
External Tools
window.
The Android section in
External Tools
panel allows you to configure Android development tools used to set up Unity projects. To access this section, go to
Edit
>
Preferences
(macOS:
Unity
>
Settings
) and then navigate to
External Tools
>
And... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_89417ab2a006 | unity_docs | rendering | Explain 'Embedded Linux Player settings' in Unity. | Embedded Linux Player settings lets you customize how Unity builds and displays your final application. To access the Player settings window for Embedded Linux, go to
Edit
>
Project Settings
>
Player
and select the
Embedded Linux
tab. You can use the
PlayerSettings API
to control most of the settings available in this ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5d6939e61d97 | unity_docs | rendering | In Unity's 'Verified Solutions onboarding process', what is 'Technical verification process' and how does it work? | The Verified Solutions team evaluates solutions in the following stages:
Exploration
: Understands the solution.
Verification
: Tests each feature of the solution.
Report
: Provides a report of their analysis. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_674d949c11e8 | unity_docs | ui | Show me a Unity C# example demonstrating `GUILayout.VerticalScope`. | VerticalScope
class in
UnityEngine
/
Implemented in:
UnityEngine.IMGUIModule
Description
Disposable helper class for managing
BeginVertical
/
EndVertical
.
All controls rendered inside this element will be placed vertically below each other. The group is automatically closed when the scope ends.
Vertical La... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d7e0c9fe75e | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.Intent` in Unity? Explain its purpose and usage. | Intent
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseElement
Description
The C# definition of the
<intent>
Android Manifest element.
For more information about the element, see Android's documentation:
Intent element
Properties
Property
Description
Action
Chi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bbe667f89678 | unity_docs | rendering | What is `Terrain.GetKeepUnusedCameraRenderingResources` in Unity? Explain its purpose and usage. | Terrain.GetKeepUnusedCameraRenderingResources
Declaration
public bool
GetKeepUnusedCameraRenderingResources
(int
cameraInstanceID
);
Parameters
Parameter
Description
cameraInstanceID
The InstanceID of the camera being queried. See
Object.GetInstanceID
.
Returns
bool
Returns
true
if all rendering resou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_79693c18da91 | unity_docs | scripting | What is `RenderingLayerMask.GetRenderingLayerCount` in Unity? Explain its purpose and usage. | RenderingLayerMask.GetRenderingLayerCount
Declaration
public static int
GetRenderingLayerCount
();
Returns
int
The number of all existing Rendering Layers.
Description
Returns a number of Rendering Layers defined in the
Tags and Layers manager
including empty ones. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_db9e7d867e39_doc_6 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Priorities for instance.The adapter will use the controller with the lowest priority.
Signature:
```csharp
public enum EControllerPriority
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_3fc5a8c8f44f | unity_docs | scripting | What is `XR.Bone.TryGetParentBone` in Unity? Explain its purpose and usage. | Bone.TryGetParentBone
Declaration
public bool
TryGetParentBone
(out
XR.Bone
parentBone
);
Parameters
Parameter
Description
parentBone
Bone struct that receives the parent bone of this bone.
Returns
bool
true if the rotation was retrieved, false otherwise.
Description
Gets the parent of this bone. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f9a6f3251906 | unity_docs | scripting | What is `Experimental.GlobalIllumination.LinearColor.intensity` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
LinearColor.intensity
public float
intensity
;
Description
The intensity value used to scale the red, green and blue values. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8ff8c8bdb60e | unity_docs | rendering | What is `Camera.MonoOrStereoscopicEye` in Unity? Explain its purpose and usage. | MonoOrStereoscopicEye
enumeration
Description
A Camera eye corresponding to the left or right human eye for stereoscopic rendering, or neither for non-stereoscopic rendering.
A single Camera can render both left and right views in a single frame. Therefore, this enum describes which eye the Camera is currently ren... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63a792cc0e81 | unity_docs | editor | What is `EditorGUI.MaskField` in Unity? Explain its purpose and usage. | EditorGUI.MaskField
Declaration
public static int
MaskField
(
Rect
position
,
GUIContent
label
,
int
mask
,
string[]
displayedOptions
,
GUIStyle
style
= EditorStyles.popup);
Declaration
public static int
MaskField
(
Rect
position
,
string
label
,
int
mask
,
string[]
displayedOptions
,
GUIStyle
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_986dc348f632 | unity_docs | rendering | Show me a Unity C# example demonstrating `Material.SetTextureOffset`. | e
Shader.PropertyToID
to get it.
name
The name of the texture property as defined in the shader. For example: "_MainTex".
value
Texture placement offset.
Description
Sets the placement offset of a given texture. The
name
parameter is defined in the shader. This method creates a new Material instance.
Additio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f579377522c | unity_docs | rendering | Show me a Unity C# example demonstrating `Rendering.RayTracingGeometryInstanceConfig.renderingLayerMask`. | RayTracingGeometryInstanceConfig.renderingLayerMask
public uint
renderingLayerMask
;
Description
A mask that you can access in HLSL with
unity_RenderingLayer
built-in shader uniform.
```
uniform float4 unity_RenderingLayer;// HLSL usage example:
uint renderingLayerMask = asuint(unity_RenderingLayer.x);
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_210c49d30ed8 | unity_docs | math | Show me a Unity C# example demonstrating `AI.NavMesh.SamplePosition`. | e ceiling is not considered as an obstruction.
This function may reduce the frame rate if a large search radius is specified. To avoid frame rate issues, it is recommended that you specify a maxDistance of twice the agent height.
If you are trying to find a random point on the NavMesh, you should use the recommended ra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e00b01aa489f | unity_docs | rendering | In Unity's 'Create a compute shader', what is 'Create a compute shader asset' and how does it work? | Here’s a basic example of a compute shader file, which fills the output texture with red:
```csharp
// test.compute
#pragma kernel FillWithRed
RWTexture2D<float4> res;
[numthreads(1,1,1)]
void FillWithRed (uint3 dtid : SV_DispatchThreadID)
{
res[dtid.xy] = float4(1,0,0,1);
}
```
The language is standard DX11 HLSL, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a08cda45ddef | unity_docs | scripting | What is `Color.g` in Unity? Explain its purpose and usage. | Color.g
public float
g
;
Description
Green component of the color.
The value ranges from 0 to 1.
```csharp
//Attach this script to a GameObject with a Renderer attached to it
//Use the sliders in Play Mode to change the Color of the GameObject's Materialusing UnityEngine;public class Example : MonoBehaviour
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2cbe07eb2e29 | unity_docs | scripting | What is `UIElements.SortColumnDescriptions.Contains` in Unity? Explain its purpose and usage. | SortColumnDescriptions.Contains
Declaration
public bool
Contains
(
UIElements.SortColumnDescription
item
);
Parameters
Parameter
Description
item
The object to locate in the current collection.
Returns
bool
Whether the item is in the collection or not.
Description
Determines whether the current col... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_74774a9e35c6 | unity_docs | rendering | What is `Graphics.Blit` in Unity? Explain its purpose and usage. | Graphics.Blit
Declaration
public static void
Blit
(
Texture
source
,
Material
mat
,
int
pass
= -1);
Declaration
public static void
Blit
(
Texture
source
,
Material
mat
,
int
pass
,
int
destDepthSlice
);
Declaration
public static void
Blit
(
Texture
source
,
RenderTexture
dest
);
Declara... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82e3593001d6 | unity_docs | input | Give me an overview of the `AndroidGamepadSupportLevel` class in Unity. | AndroidGamepadSupportLevel
enumeration
Description
Gamepad support level for Android TV.
Properties
Property
Description
SupportsDPad
Game is fully operational with a D-pad, no gamepad needed.
SupportsGamepad
Works with a gamepad, but does not require it.
RequiresGamepad
Requires a gamepad for gameplay. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d6c0859ea643 | unity_docs | editor | What is `EditorGUI.HandlePrefixLabel` in Unity? Explain its purpose and usage. | EditorGUI.HandlePrefixLabel
Declaration
public static void
HandlePrefixLabel
(
Rect
totalPosition
,
Rect
labelPosition
,
GUIContent
label
,
int
id
= 0,
GUIStyle
style
= EditorStyles.label);
Parameters
Parameter
Description
totalPosition
Rectangle on the screen to use in total for both the label ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5007cb8bf706 | unity_docs | rendering | Explain 'Enroll as a UPM publisher on the Publisher Portal' in Unity. | To publish a
UPM package
to the
Asset Store
, you need to enroll as an Asset Store publisher:
Sign in to the Publisher Portal.
Go to the
Enrollment page
.
Select your Unity organization.
Follow the instructions to provide and verify the following information:
Account type: Individual or organization.
Personal informati... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0fce7c44f921 | unity_docs | scripting | What are the parameters of `Font.HasCharacter` in Unity? | Returns bool Whether or not the font has the character specified. Description Does this font have a specific character? This function checks whether the font has a particular character defined. Some fonts do not have all characters defined (for example, no symbols, or no lower case characters). ```csharp
using UnityEng... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45519f18aeae | unity_docs | audio | What is `AudioSource.Play` in Unity? Explain its purpose and usage. | AudioSource.Play
Declaration
public void
Play
(ulong
delay
= 0);
Parameters
Parameter
Description
delay
Deprecated. Delay in number of samples, assuming a 44100Hz sample rate (meaning that Play(44100) will delay the playing by exactly 1 sec).
Description
Plays the
clip
.
The delay parameter is deprecat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f900003e99f2 | unity_docs | physics | Explain 'Introduction to rigid body physics' in Unity. | In real-world physics, a rigid body is any physical body that does not deform or change shape under physics forces. The distance between any two given points of a rigid body remains constant in time, regardless of external forces exerted on it.
To simulate physics-based behavior such as movement, gravity,
collision
, a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c5fbc7f608c | unity_docs | scripting | What is `Experimental.GraphView.Scope.OnElementsRemoved` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Scope.OnElementsRemoved
Declaration
protected void
OnElementsRemoved
(IEnumerable<GraphElement>
elements
);
Parameters
Parameter
Description
elements
The removed elements.
Description
Called when GraphElements are remov... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bd8f78b45d7c | unity_docs | networking | What are the parameters of `Networking.CertificateHandler.ValidateCertificate` in Unity? | Returns bool true if the certificate should be accepted, false if not. Description Callback, invoked for each leaf certificate sent by the remote server. Override this to implement a custom certificate validation scheme. ```csharp
using UnityEngine.Networking;
using System.Security.Cryptography.X509Certificates;// Base... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52927932de45 | unity_docs | scripting | What is `Time.time` in Unity? Explain its purpose and usage. | Time.time
public static float
time
;
Description
The time at the beginning of the current frame in seconds since the start of the application (Read Only).
This is the time in seconds since the start of the application, which
Time.timeScale
scales and
Time.maximumDeltaTime
adjusts.
When called from inside
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_85e0bc79b489 | unity_docs | audio | What are the parameters of `MonoBehaviour.OnAudioFilterRead` in Unity? | Description If OnAudioFilterRead is implemented, Unity will insert a custom filter into the audio DSP chain. The filter is inserted in the same order as the MonoBehaviour script is shown in the Inspector. OnAudioFilterRead is called every time a chunk of audio is sent to the filter (this happens frequently, every ~20ms... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9524f96a143e | unity_docs | animation | What is `PlayerSettings.SplashScreen.AnimationMode.Custom` in Unity? Explain its purpose and usage. | PlayerSettings.SplashScreen.AnimationMode.Custom
Description
Animates the Splash Screen using custom values from
PlayerSettings.SplashScreen.animationBackgroundZoom
and
PlayerSettings.SplashScreen.animationLogoZoom
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c89a7ffcac1 | unity_docs | audio | What is `AudioSource.ignoreListenerVolume` in Unity? Explain its purpose and usage. | AudioSource.ignoreListenerVolume
public bool
ignoreListenerVolume
;
Description
This makes the audio source not take into account the volume of the audio listener.
Enable this when playing back music.
When playing back music you want a separate setting which is unaffected by the normal sound effects volume. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5bfcd0757333 | unity_docs | ui | What is `EditorWindow.SaveChanges` in Unity? Explain its purpose and usage. | EditorWindow.SaveChanges
Declaration
public void
SaveChanges
();
Description
Performs a save action on the contents of the window.
Override SaveChanges() when using the
EditorWindow.hasUnsavedChanges
property so that a user will not lose unsaved work when a window is closed.
The Editor also calls this method... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_47930fb7d068 | unity_docs | scripting | What is `GridLayout.CellLayout` in Unity? Explain its purpose and usage. | CellLayout
enumeration
Description
The layout of the
GridLayout
.
The layout determines the conversion of positions from cell space to local space and vice versa.
Properties
Property
Description
Rectangle
Rectangular layout for cells in the GridLayout.
Hexagon
Hexagonal layout for cells in the GridLayout.
I... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_228d950926f5 | unity_docs | rendering | Show me a Unity code example for 'ShaderLab: legacy lighting'. | res are applied.
## Render pipeline compatibility
Feature name
Built-in
Render Pipeline
Universal Render Pipeline (URP)
High Definition Render Pipeline (HDRP)
Custom SRP
Legacy lighting Yes No No No
## Syntax
The top level commands control whether to use fixed function lighting or not, and some configuration option... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7dc091468ea3 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.duration`. | ParticleSystem.MainModule.duration
public float
duration
;
Description
The duration of the Particle System in seconds.
You can only set this property when the Particle System is not playing.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleCl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3b353b1ec307 | unity_docs | rendering | In Unity's 'SketchUp Import Settings window reference', what is 'Importing cameras' and how does it work? | When Unity imports cameras from a .skp file, it converts these SketchUp camera types to the following:
SketchUp Camera type:
Unity Camera:
Parallel Projection
Camera in
orthographic mode Perspective Camera in
perspective mode
Two Point
Physical Camera
with a non-zero
lens shift | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f84b479722fb | unity_docs | physics | What is `MonoBehaviour.OnParticleSystemStopped` in Unity? Explain its purpose and usage. | MonoBehaviour.OnParticleSystemStopped()
Description
OnParticleSystemStopped is called when all particles in the system have died, and no new particles will be born. New particles cease to be created either after Stop is called, or when the duration property of a non-looping system has been exceeded.
This can be us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_22c53bc9deef | unity_docs | math | What is `CullingGroup.EraseSwapBack` in Unity? Explain its purpose and usage. | CullingGroup.EraseSwapBack
Declaration
public void
EraseSwapBack
(int
index
);
Parameters
Parameter
Description
index
The index of the entry to erase.
Description
Erase a given bounding sphere by moving the final sphere on top of it.
This method also keeps the visibility information correctly synchronized... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_914aecded6da | unity_docs | xr | What is `Networking.UnityWebRequest.Abort` in Unity? Explain its purpose and usage. | UnityWebRequest.Abort
Declaration
public void
Abort
();
Description
If in progress, halts the UnityWebRequest as soon as possible.
This method may be called at any time. If the UnityWebRequest has not already completed, the UnityWebRequest will halt uploading or downloading data as soon as possible. Aborted Uni... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_78f1d2fa8a9a | github | scripting | Write a Unity C# XR/VR script for Player Climb | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(PlayerReferences))]
public class PlayerClimb : MonoBehaviour
{
public BodyColliderBehaviour GravityColliderScript;
private Rigidbody m_Rigidbody;
private PlayerInput_Interactor m_ClimbInflue... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_bec96f2f3a38 | unity_docs | editor | What is `EditorUtility.SetDialogOptOutDecision` in Unity? Explain its purpose and usage. | EditorUtility.SetDialogOptOutDecision
Declaration
public static void
SetDialogOptOutDecision
(
DialogOptOutDecisionType
dialogOptOutDecisionType
,
string
dialogOptOutDecisionStorageKey
,
bool
optOutDecision
);
Parameters
Parameter
Description
dialogOptOutDecisionType
The type of opt-out decision a user ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93010842f84f | unity_docs | xr | What is `Rendering.AsyncGPUReadbackRequest.depth` in Unity? Explain its purpose and usage. | AsyncGPUReadbackRequest.depth
public int
depth
;
Description
When reading data from a
ComputeBuffer
, depth is 1, otherwise, the property takes the value of the requested depth from the texture. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3fa3bc06820c | unity_docs | scripting | What is `HandleUtility.PickAllObjects` in Unity? Explain its purpose and usage. | HandleUtility.PickAllObjects
Declaration
public static void
PickAllObjects
(
Vector2
position
,
List<Object>
results
);
Parameters
Parameter
Description
position
The position in screen coordinates. The top-left of the window is (0,0), and the bottom-right is (Screen.width, Screen.height).
results
The out... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65895b7b2905 | unity_docs | performance | What is `Mesh.MeshData.GetColors` in Unity? Explain its purpose and usage. | Mesh.MeshData.GetColors
Declaration
public void
GetColors
(NativeArray<Color>
outColors
);
Declaration
public void
GetColors
(NativeArray<Color32>
outColors
);
Parameters
Parameter
Description
outColors
The destination vertex colors array.
Description
Populates an array with the vertex colors from th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_839613d3c6db | unity_docs | editor | What is `AssetDatabase.ExportPackage` in Unity? Explain its purpose and usage. | AssetDatabase.ExportPackage
Declaration
public static void
ExportPackage
(string
assetPathName
,
string
fileName
);
Declaration
public static void
ExportPackage
(string
assetPathName
,
string
fileName
,
ExportPackageOptions
flags
);
Declaration
public static void
ExportPackage
(string[]
assetPathName... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b1f2083add0 | unity_docs | scripting | What is `Video.VideoPlayer.sendFrameReadyEvents` in Unity? Explain its purpose and usage. | VideoPlayer.sendFrameReadyEvents
public bool
sendFrameReadyEvents
;
Description
Enables the frameReady events.
If set to
true
, any delegates registered with
VideoPlayer.frameReady
will be invoked when a frame is ready to be drawn. If set to
false
, the registered delegates will not be invoked. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f40bb380dc1 | unity_docs | animation | What is `Animations.AnimatorStateMachine.AddStateMachineTransition` in Unity? Explain its purpose and usage. | AnimatorStateMachine.AddStateMachineTransition
Declaration
public
Animations.AnimatorTransition
AddStateMachineTransition
(
Animations.AnimatorStateMachine
sourceStateMachine
);
Declaration
public
Animations.AnimatorTransition
AddStateMachineTransition
(
Animations.AnimatorStateMachine
sourceStateMachine... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_09daef62be3e | unity_docs | physics | In Unity's 'Optimize performance of moving elements at runtime', what is 'Use usage hints to reduce draw calls and geometry regeneration' and how does it work? | To further enhance performance, leverage usage hints to optimize how elements are processed during runtime. Usage hints help:
Reduce draw calls.
Avoid unnecessary geometry regeneration.
If the transform of the element, such as position, rotation, or scale, changes frequently, set usage hint to
DynamicTransform
. This p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c995af7ff7e7 | unity_docs | rendering | Explain 'Inspect items' in Unity. | What you can view and edit in an Inspector window depends on the type of item you’re inspecting. This section describes what an Inspector window displays for different types of items you can select.
Item type Description Single GameObject
The GameObject’s components and materials. For more information, refer to
Manage ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5e602fa5534 | unity_docs | input | What is `UIElements.DeltaSpeed` in Unity? Explain its purpose and usage. | DeltaSpeed
enumeration
Description
Speed at which the value changes for a given input device delta.
Properties
Property
Description
Fast
The value changes at four times the normal rate.
Normal
The value changes at the normal rate.
Slow
The value changes at one quarter of its normal rate. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7589b268c70c | unity_docs | xr | What is `Rendering.VirtualTexturing.System.AllMips` in Unity? Explain its purpose and usage. | Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future.
System.AllMips
public static int
AllMips
;
Description
Request all avalable mips. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d5792c277606 | unity_docs | rendering | Show me a Unity C# example demonstrating `LineRenderer.textureScale`. | LineRenderer.textureScale
public
Vector2
textureScale
;
Description
A multiplier for the UV coordinates of the line texture.
```csharp
using UnityEngine;
using System.Collections;
using UnityEditor;[RequireComponent(typeof(LineRenderer))]
public class ExampleClass : MonoBehaviour
{
public LineTextureMode te... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_441921476f61 | unity_docs | scripting | What is `ParticleSystem.NoiseModule.remapY` in Unity? Explain its purpose and usage. | ParticleSystem.NoiseModule.remapY
public
ParticleSystem.MinMaxCurve
remapY
;
Description
Define how the noise values are remapped on the y-axis, when using the
ParticleSystem.NoiseModule.separateAxes
option.
Additional resources:
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;[Requir... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e4ff68720c98 | unity_docs | rendering | What is `PlatformIcon` in Unity? Explain its purpose and usage. | PlatformIcon
class in
UnityEditor
Description
Icon slot container.
Properties
Property
Description
height
The height of the icon in pixels.
kind
The PlatformIconKind is specific to the target platform.
layerCount
The number of texture layers the icon slot currently contains.
maxLayerCount
The maximum number... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_94c216cb2541_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Number of csv-columns of values returned the export functions.
Signature:
```csharp
public const int NUM_CSV_EXPORT_COLUMNS = 8;
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_cd6d4df3aebe | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUILayout.Vector3Field`. | style
.
Additional resources:
GUILayout.Width
,
GUILayout.Height
,
GUILayout.MinWidth
,
GUILayout.MaxWidth
,
GUILayout.MinHeight
,
GUILayout.MaxHeight
,
GUILayout.ExpandWidth
,
GUILayout.ExpandHeight
.
Returns
Vector3
The value entered by the user.
Description
Make an X, Y & Z field for entering a
Vec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7d605535bb88 | github | scripting | Write a Unity C# UI script for Tile Controller | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace BehaviourInject.Example
{
//this is our example of monobehaviour that uses dependency from context
public class TileController : MonoBehaviour
{
[SerializeField]
private Image _image;
[Ser... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_d48df177faec | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemSet` in Unity? Explain its purpose and usage. | UnsafeUtility.MemSet
Declaration
public static void
MemSet
(void*
destination
,
byte
value
,
long
size
);
Parameters
Parameter
Description
destination
A pointer to the start of the memory block that you want to fill. Ensure that the memory region has space equal to or greater than the specified size to avo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6462ca5798ba | unity_docs | scripting | What is `Search.SearchMonitorView.StoreProperty` in Unity? Explain its purpose and usage. | SearchMonitorView.StoreProperty
Declaration
public void
StoreProperty
(
Search.PropertyDatabaseRecordKey
recordKey
,
object
value
);
Declaration
public void
StoreProperty
(
Search.PropertyDatabaseRecordKey
recordKey
,
object
value
,
string
alias
);
Parameters
Parameter
Description
recordKey
Propert... | 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.