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_eccd1334b708 | unity_docs | physics | What is `ParticleSystemForceField.directionX` in Unity? Explain its purpose and usage. | ParticleSystemForceField.directionX
public
ParticleSystem.MinMaxCurve
directionX
;
Description
Apply a linear force along the local X axis to particles within the volume of the Force Field.
Additional resources:
ParticleSystemForceField
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6b60a373829b | unity_docs | scripting | Show me a Unity C# example demonstrating `Handheld.StartActivityIndicator`. | static void
StartActivityIndicator
();
Description
Starts os activity indicator.
Please be warned that this informs os ui system to start.
For actual animation to take effect you usually need to wait till the end of this frame.
So if you want activity indicator to be animated during synced operation, please use c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a431e5038f5d_doc_3 | github | scripting | What does `GetActiveInputHandler` do in this Unity script? Explain its purpose and signature. | Gets the activeInputHandler in the Player Settings.-1 - Failed (Old)0 - Input Manager (Old)1 - Input System Package (New)2 - Both
Signature:
```csharp
public static int GetActiveInputHandler()
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_7b51f50d16f9 | unity_docs | editor | What are the parameters of `AssetDatabase.CanConnectToCacheServer` in Unity? | Returns bool Returns true when Editor can connect to the Cache Server. Returns false otherwise. Description Checks the availability of the Cache Server. ```csharp
using UnityEngine;
using UnityEditor;public class AssetDatabaseExamples : MonoBehaviour{
[MenuItem("AssetDatabase/Debugging Connection to the Cache Serve... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4de3eb37a1fe | unity_docs | scripting | Show me a Unity C# example demonstrating `GUISkin.textArea`. | GUISkin.textArea
public
GUIStyle
textArea
;
Description
Style used by default for
GUI.TextArea
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the textArea style of the current GUISkin GUIStyle style;
string str = "A string...\nWith two lines."; void OnGUI()
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dd7a06dfdd98 | unity_docs | scripting | Explain 'Modify Gradle project files with Gradle template files' in Unity. | To have some control over the format and contents of Gradle project files, you can override Unity’s default templates with your own custom template. To do this:
Go to
Edit
>
Project Settings
to open the Project Settings window.
Select the Player tab, then open
Android Player Settings
In the
Publishing Settings
section,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_50257ffe30db | unity_docs | editor | Show me a Unity C# example demonstrating `RuntimePlatform.OSXEditor`. | RuntimePlatform.OSXEditor
Description
In the Unity editor on macOS.
Additional resources:
RuntimePlatform
,
Platform dependent compilation
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
if (Application.platform == RuntimePlatform.OSXEditor)
{
Debug.Log("Do something spec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e42a2b454223 | unity_docs | scripting | What is `SearchService.ObjectSelectorSearchContext.endSessionModes` in Unity? Explain its purpose and usage. | ObjectSelectorSearchContext.endSessionModes
public
SearchService.ObjectSelectorSearchEndSessionModes
endSessionModes
;
Description
Flags describing the different modes that
EndSession
is in.
These flags are only set when
EndSession
is called. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7506d09ecf31 | unity_docs | scripting | Show me a Unity C# example demonstrating `JsonUtility.FromJson`. | any logic in the default constructor are executed during deserialization. After the instance is constructed, fields that appear in the supplied JSON representation are set to those values. Any fields missing from the JSON keep their values as assigned by the constructor or field initializers.
If the input is null or em... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_445d8df34811 | unity_docs | ui | What are the parameters of `Overlays.OverlayCanvas.Add` in Unity? | Description Add an Overlay to this canvas. Added Overlays will be displayed in the associated EditorWindow until they are removed. In most cases, Overlays are instantiated automatically using OverlayAttribute . However, it is also possible to add and remove Overlays from an OverlayCanvas directly. This is useful for sh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62442f444d12 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R16G16_UNorm` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R16G16_UNorm
Description
A two-component, 32-bit unsigned normalized format that has a 16-bit R component in bytes 0..1, and a 16-bit G component in bytes 2..3. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ba2f7b7f07eb | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUILayout.ObjectField`. | reference is stored as part of an asset, since assets can't store references to objects in a Scene.
If the ObjectField is part of a custom Editor for a script component, use EditorUtility.IsPersistent() to check if the component is on an asset or a Scene object.
See the example in the
Editor
class for further informa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9fb6d856e483 | unity_docs | xr | What is `SubsystemManager.reloadSubsytemsCompleted` in Unity? Explain its purpose and usage. | SubsystemManager.reloadSubsytemsCompleted
Description
Called from
SubsystemManager
when it has completed reloading all XR SDK Provider packaged subsystems.
When the Editor starts or when packages are installed or removed, the
SubsystemManager
searches the packages and loads all XR SDK packages that it finds. Ha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7ca34f76f0ca | unity_docs | math | Show me a Unity C# example demonstrating `TestTools.Coverage.GetStatsFor`. | ration
public static
TestTools.CoveredMethodStats
GetStatsFor
(MethodBase
method
);
Parameters
Parameter
Description
method
The method to get coverage statistics for.
Returns
CoveredMethodStats
Coverage summary.
Description
Returns the coverage summary for the specified method. See
CoveredMethodStat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5f6e457c2a9 | unity_docs | scripting | What are the parameters of `Android.AndroidGame.Automatic.SetGameState` in Unity? | Description Sets the current AndroidGameState to be used for Automated game state hinting in Unity . Requires API level 33 (Android 13). You can set the mode parameter based on the current game state. For example, you can use AndroidGameState.None for displaying the game menu and AndroidGameState.GamePlayInterruptible ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e6b01b5be61 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUILayout.BeginVertical`. | he
style
.
Additional resources:
GUILayout.Width
,
GUILayout.Height
,
GUILayout.MinWidth
,
GUILayout.MaxWidth
,
GUILayout.MinHeight
,
GUILayout.MaxHeight
,
GUILayout.ExpandWidth
,
GUILayout.ExpandHeight
.
Description
Begin a vertical group and get its rect back.
This is an extension to
GUILayout.BeginVert... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7b0295ea4d39 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUI.TagField`. | ntent
label
,
string
tag
,
GUIStyle
style
= EditorStyles.popup);
Parameters
Parameter
Description
position
Rectangle on the screen to use for the field.
label
Optional label in front of the field.
tag
The tag the field shows.
style
Optional
GUIStyle
.
Returns
string
The tag selected by the user... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee3dc676e00b | unity_docs | scripting | What is `UIElements.PanelSettings.sortingOrder` in Unity? Explain its purpose and usage. | PanelSettings.sortingOrder
public float
sortingOrder
;
Description
When the Scene uses more than one panel, this value determines where this panel appears in the sorting
order relative to other panels.
Unity renders panels with a higher sorting order value on top of panels with a lower value. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1d747e70822 | unity_docs | scripting | What is `Search.IPropertyDatabaseRecord.key` in Unity? Explain its purpose and usage. | IPropertyDatabaseRecord.key
public
Search.PropertyDatabaseRecordKey
key
;
Description
The key of the record.
The key describes what is stored and is used to sort the records for faster retrieval. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_67ed7ef5d4cc | unity_docs | scripting | What is `Rendering.VertexAttributeFormat.UNorm8` in Unity? Explain its purpose and usage. | VertexAttributeFormat.UNorm8
Description
8-bit unsigned normalized number.
This format stores uniformly quantized numbers in [0..1] range, with 8 bits of precision (256 possible different values). For example,
Mesh.colors32
use this format.
Additional resources:
Mesh
class,
VertexAttribute
enum,
Mesh.GetVert... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fe4edb7ae710 | unity_docs | rendering | What is `Shader.SetGlobalVector` in Unity? Explain its purpose and usage. | Shader.SetGlobalVector
Declaration
public static void
SetGlobalVector
(string
name
,
Vector4
value
);
Declaration
public static void
SetGlobalVector
(int
nameID
,
Vector4
value
);
Parameters
Parameter
Description
nameID
The name ID of the property retrieved by
Shader.PropertyToID
.
name
The na... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_02c706c8cb61 | unity_docs | scripting | What are the parameters of `Object.Destroy` in Unity? | Description Removes a GameObject, component, or asset. Destroys the specified object. If a time delay ( t ) is specified, destruction occurs after t seconds have elapsed. The timer starts from the moment Destroy is called. Actual object destruction is always delayed until after the current Update loop, but always happe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_009a6dbb648c | unity_docs | physics | Explain 'Uses of layers in Unity' in Unity. | You can use layers to optimize your project and workflow. Common uses of layers include:
Layer-based rendering
Layer-based collision
## Use the Camera culling mask with layers
You can render only the objects in a particular layer, or selection of layers, if you use the
Camera
’s
culling mask
. To change the culling m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2b441259010e | unity_docs | scripting | What is `UIElements.Experimental.StyleValues` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues
struct in
UnityEngine.UIElements.Experimental
/
Implemented in:
UnityEngine.UIElementsModule
Description
Container object used to animate multiple style values at once.
Properties
Property
Description
backg... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0a1a86c4db45 | unity_docs | scripting | Show me a Unity code example for 'RectIntField'. | The RectIntField lets users enter a RectInt value in a UI.
Note
: To align an element with other fields in an Inspector window, simply apply the.unity-base-field__aligned
USS class to it. For more information, refer to
BaseField
.
## Create a RectIntField
You can create a RectIntField with UI Builder, UXML, or C#. Th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_53173b41251d | unity_docs | editor | Explain 'Build a macOS application' in Unity. | Refer to the following instructions and considerations on building your Unity application for macOS.
## Target architecture
Before you build an application for macOS, be aware of the chipset differences between Apple devices. Some Apple devices use Intel chipsets and others use Apple silicon. You can use Unity to cre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52e2bb2aedda | unity_docs | scripting | Show me a Unity C# example demonstrating `WindZone.windPulseFrequency`. | WindZone.windPulseFrequency
public float
windPulseFrequency
;
Description
Defines the frequency of the wind changes.
```csharp
// Creates a wind zone to produce a softly changing general wind
// Just place this into an empty game object
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void Start... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2d847817ada3 | github | scripting | Write a Unity C# MonoBehaviour script called Fantasy Portal Rotation | ```csharp
using UnityEngine;
using System.Collections;
namespace PortalFX
{
public class FantasyPortalRotation : MonoBehaviour
{
[Header("Rotate axises by degrees per second")]
public Vector3 rotateVector = Vector3.zero;
public enum spaceEnum { Local, World };
public space... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_59179a23cc09 | unity_docs | xr | Explain 'Google ARCore XR Plugin' in Unity. | com.unity.xr.arcore
## Description
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
## Released for Unity
Package version 6.0.6 is released for Unity ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_156ba9958102 | unity_docs | rendering | What is `Rendering.BatchRendererGroupCreateInfo.cullingCallback` in Unity? Explain its purpose and usage. | BatchRendererGroupCreateInfo.cullingCallback
public
Rendering.BatchRendererGroup.OnPerformCulling
cullingCallback
;
Description
Unity calls this callback when this BatchRendererGroup performs culling. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_329440e75396 | unity_docs | performance | In Unity's 'Jobs overview', what is 'Job types' and how does it work? | IJob
: Runs a single task on a job thread.
IJobParallelFor
: Runs a task in parallel. Each worker thread that runs in parallel has an exclusive index to access shared data between worker threads safely.
IJobParallelForTransform
: Runs a task in parallel. Each worker thread running in parallel has an exclusive Transform... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5acdefbf890f | unity_docs | physics | What is `Search.PropertyDatabase.autoFlush` in Unity? Explain its purpose and usage. | PropertyDatabase.autoFlush
public bool
autoFlush
;
Description
Boolean indicating if the
PropertyDatabase
will update the backing file automatically or not.
When set to true, the
PropertyDatabase
will update the backing file automatically when there are no more changes applied on the
PropertyDatabase
. By ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_61c4b175b108 | unity_docs | scripting | Show me a Unity C# example demonstrating `GraphicsBuffer.Target.CopyDestination`. | GraphicsBuffer.Target.CopyDestination
Description
GraphicsBuffer can be used as a destination for CopyBuffer.
The destination buffer for
Graphics.CopyBuffer
or
CommandBuffer.CopyBuffer
must have
CopyDestination
target set.
This target is most often combined with other target flags.
```csharp
using UnityEngin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ccca59e046bd | unity_docs | rendering | Give me an overview of the `TrailRenderer` class in Unity. | TrailRenderer
class in
UnityEngine
/
Inherits from:
Renderer
/
Implemented in:
UnityEngine.CoreModule
Description
The trail renderer is used to make trails behind objects in the Scene as they move about.
This class is a script interface for a
trail renderer
component.
Properties
Property
Description
al... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d1065c8ec178 | unity_docs | performance | Show me a Unity C# example demonstrating `Unity.Profiling.ProfilerRecorder.CopyTo`. | ecorder.CopyTo
Declaration
public int
CopyTo
(ProfilerRecorderSample*
dest
,
int
destSize
,
bool
reset
);
Parameters
Parameter
Description
dest
Pointer to the destination samples array.
destSize
Destination samples array size.
reset
Reset ProfilerRecorder.
Returns
int
Returns the count of the copie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_face471f1b21 | unity_docs | networking | What is `Android.AndroidUIModeNight.No` in Unity? Explain its purpose and usage. | AndroidUIModeNight.No
Description
Mirrors the Android property value
UI_MODE_NIGHT_NO
.
For information about the property value, refer to the Android developer documentation on
UI_MODE_NIGHT_NO
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3bde30e84061 | unity_docs | rendering | Explain 'Light sources' in Unity. | Resources for adding light to a scene , with Light components,
ambient light
, and cookies.
Page Description Light components
Resources for adding lights to specific points in a scene.
Add ambient light from the environment
Improve the look of a scene with light that doesn’t come from a specific source.
Cookies
Resourc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d5a84dfcb881 | unity_docs | scripting | What are the parameters of `Assertions.Assert.IsTrue` in Unity? | Description Asserts that the condition is true. ```csharp
using UnityEngine;
using UnityEngine.Assertions;public class AssertionExampleClass : MonoBehaviour
{
int i = 0; void Update()
{
// announce if i is larger than zero
Assert.IsTrue(i > 0); // announce if i is zero
Assert.I... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cf64ea545dba | unity_docs | rendering | What is `Build.Content.BuildUsageTagGlobal` in Unity? Explain its purpose and usage. | BuildUsageTagGlobal
struct in
UnityEditor.Build.Content
Description
Container for holding information about lighting information being used in a build.
This struct helps ensure the correct Shared Variants and Mesh Channels are included in the build correctly.
Note: this struct and its members exist to provide low... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6c64a5b01684 | unity_docs | scripting | In Unity's 'Euler curve resampling', what is 'Keeping the original Euler curves on imported animations' and how does it work? | To use the original Euler curve values in an animation file, uncheck the
Resample Curves
option in the
Animation tab
:
When you disable this option, Unity keeps the rotation curve with its original keyframes, in Euler or Quaternion mode as appropriate for the curve type.
Note:
The FBX SDK automatically resamples any ro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_27b299be70e5 | github | scripting | Write a Unity C# script called Base Model | ```csharp
using RMC.Core.Architectures.Umvcs.Context;
using RMC.Core.Architectures.Umvcs.Model.Data;
using UnityEngine;
namespace RMC.Core.Architectures.Umvcs.Model
{
/// <summary>
/// TODO: Add comment
/// </summary>
public class BaseModel : BaseActor
{
protected BaseConfigData ConfigData { get { return _conf... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_19644a2b39a8 | unity_docs | ui | In Unity's 'Platform Browser window reference', what is 'Platform list' and how does it work? | Displays the platforms supported by Unity, which include mobile, desktop, web, servers,
XR
, and
closed platforms
. Access to the closed platforms provides additional platform options. For a complete list of platforms that Unity supports and to know about the minimum system requirements for these platforms, refer to
Sy... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fa5f97483084 | unity_docs | xr | What is `PackageManager.Client.Pack` in Unity? Explain its purpose and usage. | Client.Pack
Declaration
public static
PackageManager.Requests.PackRequest
Pack
(string
packageFolder
,
string
targetFolder
);
Parameters
Parameter
Description
packageFolder
Folder containing the package.
ArgumentException
is thrown if
packageFolder
is
null
or empty.
targetFolder
Folder where the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9cbe56dbfe2d | unity_docs | rendering | Explain 'Preload mipmap levels' in Unity. | If you enable a camera at runtime, mipmap streaming needs time to stream the mipmap levels into memory.
You can use texture preloading to prevent this. Do the following:
Add a
Streaming Controller
component to the disabled camera. For more information about this component, refer to
Configure mipmap streaming
.
Call the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0a69b91d8777 | unity_docs | math | What is `AndroidJNI.FromIntArray` in Unity? Explain its purpose and usage. | AndroidJNI.FromIntArray
Declaration
public static int[]
FromIntArray
(IntPtr
array
);
Description
Converts a Java array of
int
to a managed array of System.Int32.
Additional resources:
AndroidJNI.GetIntArrayElement
,
AndroidJNI.GetArrayLength
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9bdcbe528b79 | unity_docs | scripting | What is `NVIDIA.DLSSContext` in Unity? Explain its purpose and usage. | DLSSContext
class in
UnityEngine.NVIDIA
/
Implemented in:
UnityEngine.NVIDIAModule
Description
Represents the state of DLSS.
This class must be persistent, since internally it keeps track of history buffers and other important implementation details. To modify the results of DLSS, alter values in the ExecuteDat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ffbb3fbbd8f2 | unity_docs | xr | What is `XR.XRSettings.eyeTextureDesc` in Unity? Explain its purpose and usage. | XRSettings.eyeTextureDesc
public static
RenderTextureDescriptor
eyeTextureDesc
;
Description
Fetch the eye texture RenderTextureDescriptor from the active stereo device.
If XR is enabled, this returns a RenderTexureDescriptor configured by the stereo device. This greatly simplifies the process of generating t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eac61286843e | unity_docs | rendering | What is `Rendering.ScriptableRenderContext.CreateShadowRendererList` in Unity? Explain its purpose and usage. | ScriptableRenderContext.CreateShadowRendererList
Declaration
public
Rendering.RendererList
CreateShadowRendererList
(ref
Rendering.ShadowDrawingSettings
settings
);
Parameters
Parameter
Description
settings
The settings used to derive the set of GameObjects the RendererList contains when drawing shadows.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a2e4ed14d24 | unity_docs | scripting | What is `Search.SearchUtils.MatchSearchGroups` in Unity? Explain its purpose and usage. | SearchUtils.MatchSearchGroups
Declaration
public static bool
MatchSearchGroups
(
Search.SearchContext
context
,
string
content
,
bool
ignoreCase
);
Parameters
Parameter
Description
context
Search context containing the searchQuery that search tries to match.
content
String content that is tokenized and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_da2f6e02cb0f | unity_docs | scripting | What is `PlayerSettings.GetScriptingBackend` in Unity? Explain its purpose and usage. | PlayerSettings.GetScriptingBackend
Declaration
public static
ScriptingImplementation
GetScriptingBackend
(
Build.NamedBuildTarget
buildTarget
);
Parameters
Parameter
Description
buildTarget
The
NamedBuildTarget
.
Returns
ScriptingImplementation
Returns IL2CPP, Mono or .NET scripting backends.
Des... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_625be09cffdc | unity_docs | rendering | What is `ImageConversion.EncodeNativeArrayToEXR` in Unity? Explain its purpose and usage. | ImageConversion.EncodeNativeArrayToEXR
Declaration
public static NativeArray<byte>
EncodeNativeArrayToEXR
(NativeArray<T>
input
,
Experimental.Rendering.GraphicsFormat
format
,
uint
width
,
uint
height
,
uint
rowBytes
,
Texture2D.EXRFlags
flags
);
Parameters
Parameter
Description
input
The native ar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_365f89ef3f91 | unity_docs | rendering | Explain 'Enabling Streaming Virtual Texturing in your project' in Unity. | To enable Streaming Virtual Texturing, you need to enable
Virtual Texturing
in your project. To do this, go to
Edit > Project Settings > Player
and enable the
Virtual Texturing
setting.
Virtual Texturing is a project-wide setting that is shared for all platforms. You cannot build a player for platforms and graphics API... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81352447fc74 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUIUtility.AddCursorRect`. | c void
AddCursorRect
(
Rect
position
,
MouseCursor
mouse
);
Declaration
public static void
AddCursorRect
(
Rect
position
,
MouseCursor
mouse
,
int
controlID
);
Parameters
Parameter
Description
position
The rectangle the control should be shown within.
mouse
The mouse cursor to use.
controlID
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ae59775da4b3 | unity_docs | performance | Explain 'Code optimization' in Unity. | Considering performance in all the code you write helps your project scale without bottlenecks. There are several ways you can improve performance, including avoiding bad practices,
profiling
your code, implementing appropriate design patterns, and using techniques like asynchronous programming to split work across mul... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68c8026830ac | unity_docs | scripting | What is `UIElements.GradientField` in Unity? Explain its purpose and usage. | GradientField
class in
UnityEditor.UIElements
/
Inherits from:
UIElements.BaseField_1
Description
Makes a field for editing an
Gradient
. For more information, refer to
UXML element GradientField
.
Static Properties
Property
Description
backgroundUssClassName
USS class name for the background of the g... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e14c98d422f | unity_docs | scripting | What is `Experimental.GlobalIllumination.FalloffType` in Unity? Explain its purpose and usage. | FalloffType
enumeration
Description
Available falloff models for baking.
Properties
Property
Description
InverseSquared
Inverse squared distance falloff model.
InverseSquaredNoRangeAttenuation
Inverse squared distance falloff model (without smooth range attenuation).
Linear
Linear falloff model.
Legacy
Quadr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2edd4b677f9e | unity_docs | xr | What is `Networking.UnityWebRequestAssetBundle` in Unity? Explain its purpose and usage. | UnityWebRequestAssetBundle
class in
UnityEngine.Networking
/
Implemented in:
UnityEngine.UnityWebRequestAssetBundleModule
Description
Helpers for downloading asset bundles using
UnityWebRequest
.
Static Methods
Method
Description
GetAssetBundle
Creates a UnityWebRequest optimized for downloading a Unity Ass... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2d69f335a61c | unity_docs | scripting | What is `Rendering.SupportedOnRenderPipelineAttribute.GetSupportedMode` in Unity? Explain its purpose and usage. | SupportedOnRenderPipelineAttribute.GetSupportedMode
Declaration
public
Rendering.SupportedOnRenderPipelineAttribute.SupportedMode
GetSupportedMode
(Type
renderPipelineAssetType
);
Parameters
Parameter
Description
renderPipelineAssetType
The
RenderPipelineAsset
you want to check.
Returns
SupportedMode
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cac0de673f82 | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.IQueryEngineFilter.ClearMetaInfo`. | IQueryEngineFilter.ClearMetaInfo
Declaration
public
Search.IQueryEngineFilter
ClearMetaInfo
();
Returns
IQueryEngineFilter
The current filter.
Description
Removes all additional information specific to the filter.
```
filter.ClearMetaInfo();
var filtersWithMetaInfo = queryEngine.GetAllFilters().Where(f ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eb8d9f4cfa9a | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.OnTriggerStay`. | Collider
component. At least one of the colliders must be a trigger collider and at least one must be a physics body collider. For more information, refer to
OnTrigger events
.
Both the trigger and the collider that touches the trigger receive
OnTriggerEnter
if they have implemented it. Trigger events are sent to d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d004e3268b02 | unity_docs | physics | What is `PhysicsShapeGroup2D.GetShapeVertex` in Unity? Explain its purpose and usage. | PhysicsShapeGroup2D.GetShapeVertex
Declaration
public
Vector2
GetShapeVertex
(int
shapeIndex
,
int
vertexIndex
);
Parameters
Parameter
Description
shapeIndex
The index of the shape stored in the
PhysicsShapeGroup2D
. The shape index is zero-based with the shape group having a quantity of shapes specified... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_87178cbcbaa5 | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.SetInteger` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.SetInteger
Declaration
public void
SetInteger
(string
name
,
int
value
);
Declaration
public void
SetInteger
(int
id
,
int
value
);
Parameters
Parameter
Description
name
The parameter name.
id
The parameter ID.
value
The new parameter value.
Description
Sets the value ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_044669d08ce0 | unity_docs | scripting | What is `EditorApplication.projectWindowItemInstanceOnGUI` in Unity? Explain its purpose and usage. | EditorApplication.projectWindowItemInstanceOnGUI
public static
EditorApplication.ProjectWindowItemInstanceCallback
projectWindowItemInstanceOnGUI
;
Description
Delegate for OnGUI events for every visible list item in the ProjectWindow.
Additional resources:
ProjectWindowItemInstanceCallback
,
ProjectWindowI... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_17fd13f61e78 | unity_docs | scripting | What is `RuntimePlatform.OSXPlayer` in Unity? Explain its purpose and usage. | RuntimePlatform.OSXPlayer
Description
In the player on macOS.
Additional resources:
RuntimePlatform
,
Platform dependent compilation
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
if (Application.platform == RuntimePlatform.OSXPlayer)
{
Debug.Log("Do something special he... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f8709ca76c0 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddCopyFilesBuildPhaseBeforeTargetPostprocess`. | watch content.
Returns
string
Returns the GUID of the new phase.
Description
Creates a new
Copy Files
build phase for a given target.
If a
Copy Files
build phase with the same name,
dstPath
, and
subfolderSpec
is already configured for the target, the function returns the existing phase. The new phase i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f730433d9312 | unity_docs | scripting | Explain 'Use deep linking on UWP' in Unity. | Deep links are URL links outside of your application that direct users to a location in your application. When the user clicks a deep link for an application, the operating system opens the Unity application at a specified place (for example, a specific scene). You can enable deep linking for Universal Windows Platform... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c96cc71769c7 | unity_docs | physics | What is `Collider2D.layerOverridePriority` in Unity? Explain its purpose and usage. | Collider2D.layerOverridePriority
public int
layerOverridePriority
;
Description
A decision priority assigned to this
Collider2D
used when there is a conflicting decision on whether a contact between itself and another
Collision2D
should happen or not.
The Layer Collision Matrix defines which Layers can and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b67db2c6817f | unity_docs | rendering | Explain 'Application patching' in Unity. | Building an application for Android can take a significant amount of time. For faster iterations during development, you can patch the application package instead of rebuilding it. When you patch an application package, Unity only processes files you made changes to since the last patch and sends them to the connected ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e64f152ac875 | unity_docs | editor | What is `Search.DisplayMode` in Unity? Explain its purpose and usage. | DisplayMode
enumeration
Description
Options for setting the display mode to use for a search view.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Search;
static class Example_ISearchView_displayMode
{
[MenuItem("Examples/ISearchView/displayMode")]
public static void Run()
{
// SearchService... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b5187d60242 | unity_docs | scripting | What is `Presets.Preset` in Unity? Explain its purpose and usage. | Preset
class in
UnityEditor.Presets
/
Inherits from:
Object
Description
A Preset contains default values for an Object.
The Preset class contains the type of the Object used to create it and a list of each serialized property/value pair of this Object.
It can be used to store informations from any serializable ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_024df8d81102_doc_2 | github | scripting | What does `CreateChild` do in this Unity script? Explain its purpose and signature. | Creates a child GameObject from resources.The path to the resourced asset.Will the instantiated GameObject stay in its world position or be set to local origin.The new GameObject
Signature:
```csharp
public static GameObject CreateChild(this GameObject parent, string path, bool worldPositionStays = true)
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_248fb314b27c | unity_docs | scripting | Give me an overview of the `VideoClipImporter` class in Unity. | VideoClipImporter
class in
UnityEditor
/
Inherits from:
AssetImporter
Description
VideoClipImporter lets you modify
VideoClip
import settings from Editor scripts.
See the
Movie File Format Support Notes
section in the
VideoPlayer
class documentation for supported movie file formats and encoding guideline... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ba4d7d024b37 | unity_docs | scripting | Give me an overview of the `ConstantForce2D` class in Unity. | ConstantForce2D
class in
UnityEngine
/
Inherits from:
PhysicsUpdateBehaviour2D
/
Implemented in:
UnityEngine.Physics2DModule
Description
Applies both linear and angular (torque) forces continuously to the rigidbody each physics update.
This is equivalent of calling
Rigidbody2D.AddForce
,
Rigidbody2D.AddRela... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5f844c222a63 | unity_docs | ui | What is `Toolbars.EditorToolbarElementAttribute` in Unity? Explain its purpose and usage. | EditorToolbarElementAttribute
class in
UnityEditor.Toolbars
Description
The EditorToolbarElement attribute allows you to make available a specific
VisualElement
for use in an Editor Toolbar.
Additional resources:
EditorToolbarButton
,
EditorToolbarDropdown
,
EditorToolbarToggle
and
EditorToolbarDropdownTog... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_225a59bed7c6 | unity_docs | scripting | What is `Unity.Properties.IVisitPropertyAdapter` in Unity? Explain its purpose and usage. | IVisitPropertyAdapter
interface in
Unity.Properties
Implements interfaces:
IPropertyVisitorAdapter
Description
Implement this interface to handle visitation for all properties.
IVisitPropertyAdapter_2IVisitPropertyAdapter_1
Public Methods
Method
Description
Visit
Invoked when the visitor encounters any ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6fc24538f1cf | unity_docs | scripting | Give me an overview of the `AssetBundleUnloadOperation` class in Unity. | AssetBundleUnloadOperation
class in
UnityEngine
/
Inherits from:
AsyncOperation
/
Implemented in:
UnityEngine.AssetBundleModule
Description
Async unload operation for an
AssetBundle
.
Public Methods
Method
Description
WaitForCompletion
Synchronously waits for the operation to complete.
Inherited Members
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_64cf1a89e67c | unity_docs | scripting | Explain 'Gradle template variables' in Unity. | You can use the following variables in custom Gradle template files:
Variable Description ABIFILTERS
Specifies the Application Binary Interfaces (ABIs) that your application should support. For example,
armeabi-v7a
,
arm64-v8a
. Gradle creates application builds for the specified ABIFILTERS values only.
APIVERSION
The ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e2ac8f0877a8 | unity_docs | scripting | What is `Search.SearchUtils.EnumerateAllQueries` in Unity? Explain its purpose and usage. | SearchUtils.EnumerateAllQueries
Declaration
public static IEnumerable<ISearchQuery>
EnumerateAllQueries
();
Returns
IEnumerable<ISearchQuery>
Search queries.
Description
Enumerate all user and project search queries. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9b3a3c1f5573 | unity_docs | editor | In Unity's 'Manage search indices', what is 'Index sizes' and how does it work? | To determine the index options you need, refer to this table.
Project size
Index required
Less than 1000 assets
Minimal - enable a minimal set of indexing options
Between 1000 and 2000 assets
Default - index your project assets with File and Type
Over 2000 assets
Extended - index your project with File, Type, Propertie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c361cf47f363 | unity_docs | physics | What is `PhysicsMaterial.ctor` in Unity? Explain its purpose and usage. | PhysicsMaterial Constructor
Declaration
public
PhysicsMaterial
();
Description
Creates a new material.
Note that although this function lets you create a new physics material from a script, it is generally easier to create and assign the material from the editor.
```csharp
using UnityEngine;public class Examp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_341d2ec05393 | unity_docs | scripting | What is `Windows.Speech.PhraseRecognizedEventArgs.semanticMeanings` in Unity? Explain its purpose and usage. | PhraseRecognizedEventArgs.semanticMeanings
public SemanticMeaning[]
semanticMeanings
;
Description
A semantic meaning of recognized phrase.
This field might be null. A semantic meaning is a collection of semantic properties of a recognized phrase. These semantic properties can be specified in SRGS grammar files... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d613a775bbff | unity_docs | scripting | What is `UIElements.PanelSettings.colorClearValue` in Unity? Explain its purpose and usage. | PanelSettings.colorClearValue
public
Color
colorClearValue
;
Description
The color used to clear the color buffer.
The color is specified as a "straight" color but will internally be converted to "premultiplied" before
being applied. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7bfee8fbb592 | unity_docs | physics | In Unity's 'Sphere collider component reference', what is 'Layer overrides' and how does it work? | The Layer Overrides section provides properties that allow you to override the project-wide
Layer-based collision detection
settings for this collider.
Property Description Layer Override Priority
Define the priority of this collider override. When two colliders have conflicting overrides, the settings of the collider ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e4b1663607c8 | unity_docs | rendering | What is `GL.PopMatrix` in Unity? Explain its purpose and usage. | GL.PopMatrix
Declaration
public static void
PopMatrix
();
Description
Restores the model, view and projection matrices off the top of the matrix stack.
Changing the model, view or projection matrices overrides the current rendering matrices.
It is good practice to save and restore these matrices using
GL.PushM... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b2a0c0814b59 | unity_docs | scripting | What is `Experimental.GraphView.EdgeManipulator.ctor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
EdgeManipulator Constructor
Declaration
public
EdgeManipulator
();
Description
EdgeManipulator's constructor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ab17519e1346 | github | scripting | Write a Unity C# script called Manifest Runtime | ```csharp
// Copyright 2021 KOGA Mitsuhiro Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
using System;
using UnityEngine;
namespace OpenXRRuntimeJsons
{
[Serializable]
public class ManifestRuntime : ISerializationCallbackR... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_50c3ac714958 | unity_docs | performance | What is `U2D.SpriteDataAccessExtensions.SetVertexAttribute` in Unity? Explain its purpose and usage. | SpriteDataAccessExtensions.SetVertexAttribute
Declaration
public static void
SetVertexAttribute
(
Sprite
sprite
,
Rendering.VertexAttribute
channel
,
NativeArray<T>
src
);
Parameters
Parameter
Description
src
The list of values for this specific VertexAttribute channel. The array must be disposed of by ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6189cb67d396 | unity_docs | physics | What is `VersionControl.Provider.ChangeSetMove` in Unity? Explain its purpose and usage. | Provider.ChangeSetMove
Declaration
public static
VersionControl.Task
ChangeSetMove
(
VersionControl.AssetList
assets
,
VersionControl.ChangeSet
changeset
);
Declaration
public static
VersionControl.Task
ChangeSetMove
(
VersionControl.Asset
asset
,
VersionControl.ChangeSet
changeset
);
Declaratio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_38905136a9a3 | unity_docs | scripting | Show me a Unity C# example demonstrating `HingeJoint.limits`. | ic
JointLimits
limits
;
Description
Limit of angular rotation (in degrees) on the hinge joint.
The joint will be limited so that the angle is always between
JointLimits.min
and
JointLimits.max
.
The joint angle is in degrees relative to the rest angle. The rest angle between the bodies is always zero at the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a3c466d350ee | unity_docs | physics | What are the parameters of `MonoBehaviour.OnControllerColliderHit` in Unity? | Description OnControllerColliderHit is called when the CharacterController component hits a collider while performing a Move. Use this to implement behaviour like pushing rigidbodies, playing sounds, or triggering events in response to objects colliding with the character. Additional resources: CharacterController , Co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_edc74b9c7baf | unity_docs | editor | Show me a Unity C# example demonstrating `SerializedProperty.depth`. | SerializedProperty.depth
public int
depth
;
Description
Nesting depth of the property. (Read Only)
Additional resources:
propertyPath
.
```csharp
using System;
using System.Text;
using UnityEngine;
using UnityEditor;public class SerializePropertyDepthExample : ScriptableObject
{
// Declare fields to demonstr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f706ccbe933 | unity_docs | rendering | What is `Object.hideFlags` in Unity? Explain its purpose and usage. | Object.hideFlags
public
HideFlags
hideFlags
;
Description
Should the object be hidden, saved with the Scene or modifiable by the user?
Additional resources:
HideFlags
.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
// Creates a material that is explicitl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_43ad0f2f871b | unity_docs | editor | What are the parameters of `ObjectNames.GetUniqueName` in Unity? | Returns string A name not found in the list of pre-existing names. Description Make a unique name using the provided name as a base. If the target name is in the provided list of existing names, a unique name is generated by appending the next available numerical increment. Additional resources: GameObjectUtility.GetUn... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_375fe9ae2c3a | unity_docs | rendering | Show me a Unity code example for 'Wrapped diffuse Surface Shader example in the Built-In Render Pipeline'. | The following example shows
Wrapped Diffuse
, a modification of Diffuse lighting where illumination “wraps around” the edges of objects. It’s useful for simulating subsurface scattering effects. Only the CGPROGRAM section changes, so once again, the surrounding Shader code is omitted:
```csharp
...ShaderLab code...
CG... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec6b96cf949a | unity_docs | rendering | What is `RenderTexture.GetNativeDepthBufferPtr` in Unity? Explain its purpose and usage. | RenderTexture.GetNativeDepthBufferPtr
Declaration
public IntPtr
GetNativeDepthBufferPtr
();
Returns
IntPtr
Pointer to an underlying graphics API depth buffer resource.
Description
Retrieve a native (underlying graphics API) pointer to the depth buffer resource.
Use this function to retrieve a pointer/han... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_277f9c40d55e | unity_docs | scripting | What is `UIElements.UxmlColorAttributeDescription.TryGetValueFromBag` in Unity? Explain its purpose and usage. | UxmlColorAttributeDescription.TryGetValueFromBag
Declaration
public bool
TryGetValueFromBag
(
UIElements.IUxmlAttributes
bag
,
UIElements.CreationContext
cc
,
ref
Color
value
);
Parameters
Parameter
Description
bag
The bag of attributes.
cc
The context in which the values are retrieved.
value
The ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1d549a0890fb | unity_docs | scripting | What is `UIElements.BackgroundPositionKeyword` in Unity? Explain its purpose and usage. | BackgroundPositionKeyword
enumeration
Description
Defines the position of the background.
Properties
Property
Description
Center
Vertical alignment is centered and/or Horizontal alignment is centered.
This is the default value to make sure it's backward compatible
with unity-background-scale-mode default... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_33e13383233a | unity_docs | rendering | What is `SystemInfo.supportsRayTracing` in Unity? Explain its purpose and usage. | SystemInfo.supportsRayTracing
public static bool
supportsRayTracing
;
Description
Checks if any ray tracing features are supported by the current system configuration. (Read Only)
Ray tracing support depends on the following: operating system support, GPU, graphics drivers and graphics API.
Additional resources... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ab47d0a66a2 | unity_docs | rendering | What is `TextureCompressionQuality` in Unity? Explain its purpose and usage. | TextureCompressionQuality
enumeration
Description
Compression Quality.
Corresponds to the settings in a
texture inspector
.
Properties
Property
Description
Fast
Fast compression.
Normal
Normal compression (default).
Best
Best compression. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_538b20e6b724 | unity_docs | editor | What are the parameters of `Profiling.RawFrameDataView.GetSampleMetadataAsLong` in Unity? | Returns long Returns long representation of sample metadata value. Description Gets sample metadata value as long. Use to obtain additional data associated with the sample. metadataIndex must be between 0 and GetSampleMetadataCount . ```csharp
using System;
using Unity.Collections;
using UnityEditor.Profiling;
using Un... | 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.