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_3701cf45e3b8 | unity_docs | scripting | Give me an overview of the `AssetBundle` class in Unity. | AssetBundle
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.AssetBundleModule
Description
API for accessing the content of AssetBundle files.
This class exposes an API, via static methods, for loading and managing AssetBundles.
This same class offers non-static methods and propertie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_114525f05e49 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.ISearchView.SetSelection`. | ISearchView.SetSelection
Declaration
public void
SetSelection
(params int[]
selection
);
Parameters
Parameter
Description
selection
Array of item indices to select.
Description
Updates the search view with a new selection.
.
```csharp
using UnityEditor;
using UnityEditor.Search;
static class Example_ISe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a58911c58619 | unity_docs | scripting | What is `UIElements.FocusEventBase_1.relatedTarget` in Unity? Explain its purpose and usage. | FocusEventBase<T0>.relatedTarget
public
UIElements.Focusable
relatedTarget
;
Description
For FocusOut and Blur events, contains the element that gains the focus. For FocusIn and Focus events, contains the element that loses the focus. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_92ca41c89f4f | unity_docs | scripting | In Unity's 'Handling dependencies between AssetBundles', what is 'How Unity tracks references' and how does it work? | Unity tracks references between AssetBundles in the following ways:
Manifest-level dependencies
: Dependencies between AssetBundles are in the build folder’s root.manifest
file and accessible via
AssetBundleManifest.GetAllDependencies
.
Low-level SerializedFile references
: Direct object references between AssetBundles... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2a993da34e9 | unity_docs | rendering | What is `LightTransport.PostProcessing.ReferenceProbePostProcessor.AddSphericalHarmonicsL2` in Unity? Explain its purpose and usage. | ReferenceProbePostProcessor.AddSphericalHarmonicsL2
Declaration
public bool
AddSphericalHarmonicsL2
(
LightTransport.IDeviceContext
context
,
BufferSlice<SphericalHarmonicsL2>
a
,
BufferSlice<SphericalHarmonicsL2>
b
,
BufferSlice<SphericalHarmonicsL2>
sum
,
int
probeCount
);
Parameters
Parameter
Descripti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a253262327b2 | unity_docs | physics | In Unity's 'Physics', what is 'Settings' and how does it work? | The Settings panel contain settings for all Physics SDKs. The following tabs are available:
Shared
: Settings that apply to all Physics SDKs.
GameObject
: Settings that apply to all GameObject physics in your project.
Cloth
: Settings that apply to all Cloth physics. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d8f02d2f7f8 | unity_docs | scripting | What is `UIElements.PanelScaleMode` in Unity? Explain its purpose and usage. | PanelScaleMode
enumeration
Description
Options that specify how elements in the panel scale when the screen size changes. See
PanelSettings.scaleMode
.
Properties
Property
Description
ConstantPixelSize
Elements stay the same size, in pixels, regardless of screen size.
ConstantPhysicalSize
Elements st... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef7b2465170a | unity_docs | scripting | What is `SceneVisibilityManager.TogglePicking` in Unity? Explain its purpose and usage. | SceneVisibilityManager.TogglePicking
Declaration
public void
TogglePicking
(
GameObject
gameObject
,
bool
includeDescendants
);
Parameters
Parameter
Description
gameObject
GameObject on which to toggle picking ability.
includeDescendants
Whether to include descendants.
Description
Toggles the picking a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ed5ee0eaf12d | unity_docs | scripting | What are the parameters of `Object.FindFirstObjectByType` in Unity? | Returns T Returns the first active loaded object that matches the specified type. If no object matches the specified type, returns null. Description Retrieves the first active loaded object of Type type . Object.FindFirstObjectByType doesn't return Assets (for example meshes, textures, or prefabs), or inactive objects.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_16ff974c3a68 | unity_docs | rendering | What is `Material.HasVector` in Unity? Explain its purpose and usage. | Material.HasVector
Declaration
public bool
HasVector
(string
name
);
Declaration
public bool
HasVector
(int
nameID
);
Parameters
Parameter
Description
name
The name of the property.
nameID
The name ID of the property. Use
Shader.PropertyToID
to get this ID.
Returns
bool
Returns true if the Shad... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2bf1669b7c74 | unity_docs | scripting | What is `SerializedPropertyType.Float` in Unity? Explain its purpose and usage. | SerializedPropertyType.Float
Description
Represents a single or double precision floating point property.
SerializedProperty.numericType
can be used to determine whether the property is a single or double precision float.
Additional resources:
SerializedProperty
,
SerializedProperty.floatValue
,
SerializedProp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ca8e7760cfd8 | unity_docs | editor | What is `Search.SearchDocument.ctor` in Unity? Explain its purpose and usage. | SearchDocument.SearchDocument Constructor
Declaration
public
SearchDocument
(
Search.SearchDocument
doc
,
int
score
);
Declaration
public
SearchDocument
(string
id
,
string
name
,
string
source
,
int
score
);
Declaration
public
SearchDocument
(
Search.SearchDocument
doc
,
string
path
);
Paramete... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a66a28216ef5 | unity_docs | rendering | Show me a Unity C# example demonstrating `Texture.SetStreamingTextureMaterialDebugProperties`. | latest GPU upload, Streaming Status Code and 0 in its x, y, z, and w fields.
For lightmaps, this function sets the
unity_Lightmap_MipInfo
and
unity_Lightmap_StreamInfo
properties.
You can use
Camera.SetReplacementShader
to set a custom Unity shader that a camera renders debugging information for, using the materi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_79937cf9abc9 | unity_docs | rendering | What is `Windows.WebCam.PhotoCaptureFileOutputFormat` in Unity? Explain its purpose and usage. | PhotoCaptureFileOutputFormat
enumeration
Description
Image Encoding Format.
The image encoding format that should be used when saving the texture to disk.
Properties
Property
Description
PNG
PNG Encoding.
JPG
JPEG Encoding. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73f9cd00a5ad | unity_docs | scripting | Show me a Unity C# example demonstrating `Rigidbody.GetPointVelocity`. | Rigidbody.GetPointVelocity
Declaration
public
Vector3
GetPointVelocity
(
Vector3
worldPoint
);
Description
The velocity of the rigidbody at the point
worldPoint
in global space.
GetPointVelocity will take the angularVelocity of the rigidbody into account when calculating the velocity.
```csharp
using Un... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e8839d3a5d7 | unity_docs | math | What is `UIElements.ITransform` in Unity? Explain its purpose and usage. | ITransform
interface in
UnityEngine.UIElements
Description
This interface provides access to a VisualElement transform data.
Reading properties of this object gives information about the transform of its VisualElement.
It is possible to write the position, scale and rotation of the transform.
Properties
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4e13dc809379 | unity_docs | physics | In Unity's 'Call Unity C# script functions from JavaScript', what is 'Use the SendMessage helper function' and how does it work? | Use SendMessage to call a Unity method of the Unity scripting API from JavaScript code.
There are some restrictions for what sort of methods you can pass. You can only call methods of a GameObject, not general C# methods attached to other objects. Also, only use SendMessage to call a method if one of the following is t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3f7ae8a8a495 | unity_docs | rendering | Show me a Unity C# example demonstrating `ImageConversion.EncodeArrayToTGA`. | the encoded data as a file or send it over the network without further processing.
This function does not work on any compressed format.
The encoded TGA data will be uncompressed 8bit grayscale, RGB or RGBA (depending on the passed in format).
For single-channel red textures (
R8
,
R16
,
RFloat
and
RHalf
), th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e8348fe8f90 | unity_docs | rendering | What is `TextureMipmapLimitGroups.GetGroups` in Unity? Explain its purpose and usage. | TextureMipmapLimitGroups.GetGroups
Declaration
public static string[]
GetGroups
();
Returns
string[]
String array of texture mipmap limit group names.
Description
Retrieves a string array containing the name of all texture mipmap limit groups available in the project.
```csharp
using UnityEngine;public cl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e50dc287708f | unity_docs | input | What is `UIElements.PointerEventBase_1.pressure` in Unity? Explain its purpose and usage. | PointerEventBase<T0>.pressure
public float
pressure
;
Description
Gets the amount of pressure currently applied by a touch.
If the device does not report pressure, the value of this property is 1.0f. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_41074dae2d36 | unity_docs | rendering | What is `Light.renderMode` in Unity? Explain its purpose and usage. | Light.renderMode
public
LightRenderMode
renderMode
;
Description
Controls how often the light's contribution is calculated during rendering.
The render mode of a light determines how Unity calculates and applies lighting to objects in the Scene. Depending on the selected mode, lighting is evaluated either pe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5dd6e9d8720b | unity_docs | editor | What is `PlayerSettings.Android.targetSdkVersion` in Unity? Explain its purpose and usage. | PlayerSettings.Android.targetSdkVersion
public static
AndroidSdkVersions
targetSdkVersion
;
Description
The target API level of your application.
This value must be higher than or equal to minSdkVersion.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class TargetSdkVersionSam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e8d4de4ee55 | unity_docs | scripting | What is `Playables.PlayableOutputExtensions.SetWeight` in Unity? Explain its purpose and usage. | PlayableOutputExtensions.SetWeight
Declaration
public static void
SetWeight
(U
output
,
float
value
);
Parameters
Parameter
Description
output
The
PlayableOutput
used by this operation.
value
The new weight.
Description
Sets the weight of the connection from the
PlayableOutput
to the source playable... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5ddad11a932f | unity_docs | scripting | Show me a Unity code example for 'Create a runtime binding in C# scripts'. | named vector3Value and a float property named sumOfVector3Properties , which is the sum of the x ,
y
, and z components of the vector3Value property. For more information about this data source object, refer to the
Create a data source asset
section of the
Bind to multiple properties with runtime binding
example.
You c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_500377163333 | unity_docs | scripting | What is `SceneManagement.SceneManagerAPI.overrideAPI` in Unity? Explain its purpose and usage. | SceneManagerAPI.overrideAPI
public static
SceneManagement.SceneManagerAPI
overrideAPI
;
Description
The specific
SceneManagerAPI
instance to use to handle overridden
SceneManager
methods. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6ffeb1e1113a | unity_docs | math | What is `Rendering.RayTracingMeshInstanceConfig.accelerationStructureBuildFlags` in Unity? Explain its purpose and usage. | RayTracingMeshInstanceConfig.accelerationStructureBuildFlags
public
Rendering.RayTracingAccelerationStructureBuildFlags
accelerationStructureBuildFlags
;
Description
The flags Unity uses when it builds the acceleration structure for the geometry referenced by this ray tracing instance configuration.
If you se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f84f087850c2 | unity_docs | scripting | Explain 'Create a runtime binding in C# scripts' in Unity. | To bind a property of a
visual element
to a data source in C#, create an instance of
DataBinding
. With this binding type, you can define a dataSource and a dataSourcePath directly on the binding instance.
## Basic workflow
To create a runtime binding in C#, follow these steps:
Create a binding. Bindings are objects ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a973a0a8200 | unity_docs | math | What is `Quaternion.SlerpUnclamped` in Unity? Explain its purpose and usage. | Quaternion.SlerpUnclamped
Declaration
public static
Quaternion
SlerpUnclamped
(
Quaternion
a
,
Quaternion
b
,
float
t
);
Parameters
Parameter
Description
a
Start unit quaternion value, returned when t = 0.
b
End unit quaternion value, returned when t = 1.
t
Interpolation ratio. Value is unclamped... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_94fdf74e9bf0 | unity_docs | physics | What is `Rendering.RenderingThreadingMode.NativeGraphicsJobsSplitThreading` in Unity? Explain its purpose and usage. | RenderingThreadingMode.NativeGraphicsJobsSplitThreading
Description
Generates intermediate graphics commands via several worker threads and render thread dispatches several worker threads to convert them into low-level platform API graphics commands.
In this mode, the main thread processes the application's high-le... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5dadfa52860c | unity_docs | scripting | What is `SortingLayer.onLayerRemoved` in Unity? Explain its purpose and usage. | SortingLayer.onLayerRemoved
public static
SortingLayer.LayerCallback
onLayerRemoved
;
Description
Delegate for sorting layer events when a layer is removed.
Additional resources:
LayerCallback
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4b733223bffd | unity_docs | xr | Explain 'Asset Store package revenue and sales' in Unity. | When a customer buys a package on the
Asset Store
, information about that sale appears in the Asset Store publisher portal. Learn how to manage revenue from sales of your Asset Store Packages and create a free customer voucher.
Topic Description Collect revenue from Asset Store package sales
Learn how to collect custo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bad76a106f2b | unity_docs | scripting | Show me a Unity C# example demonstrating `FilterMode.Point`. | FilterMode.Point
Description
Point filtering - texture pixels become blocky up close.
Additional resources:
Texture.filterMode
,
texture assets
.
```csharp
//This script changes the filter mode of your Texture you attach when you press the space key in Play Mode. It switches between Point, Bilinear and Trilinear... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a8dbc1ea053a | unity_docs | physics | What is `EditorApplication.quitting` in Unity? Explain its purpose and usage. | EditorApplication.quitting
Description
Unity raises this event when the editor application is quitting.
Add an event handler to this event to receive a notification that the application is quitting.
Note that this will not fire if the Editor is forced to quit or if there is a crash. This event is raised when the qu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c0e965bec8c0 | unity_docs | scripting | What are the parameters of `RenderingLayerMask.RenderingLayerToName` in Unity? | Returns string Returns empty string if not found. Description Given a rendering layer index, returns the name of the layer as defined in the Tags and Layers manager . ```csharp
using UnityEngine;
using UnityEngine.Rendering;public class Example : MonoBehaviour
{
void Start()
{
// Prints the name of the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_655f0b6012e6 | unity_docs | animation | What is `Animations.AnimatorTransitionBase.AddCondition` in Unity? Explain its purpose and usage. | AnimatorTransitionBase.AddCondition
Declaration
public void
AddCondition
(
Animations.AnimatorConditionMode
mode
,
float
threshold
,
string
parameter
);
Parameters
Parameter
Description
mode
The
AnimatorCondition
mode of the condition.
threshold
The threshold value of the condition.
parameter
The na... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_534ee0688ba0 | unity_docs | rendering | In Unity's 'Light component Inspector window reference for the Built-In-Render-Pipeline', what is 'Light settings' and how does it work? | Property:
Function:
Type
The current type of light. Possible values are Directional ,
Point
,
Spot and Area
(Rectangle or Disc light). For information on these values, see
Types of Light
.
Range
Define how far the light emitted from the center of the object travels (
Point and Spot
lights only).
Spot Angle
Define the a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f7b1ff24ee3 | unity_docs | scripting | What is `IMGUI.Controls.SearchField.SearchFieldCallback` in Unity? Explain its purpose and usage. | SearchField.SearchFieldCallback
Declaration
public delegate void
SearchFieldCallback
();
Description
This is a generic callback delegate for SearchField events and does not take any parameters. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_42698da7aeb4 | unity_docs | rendering | What is `Rendering.RayTracingSubMeshFlagsConfig.alphaTestedMaterials` in Unity? Explain its purpose and usage. | RayTracingSubMeshFlagsConfig.alphaTestedMaterials
public
Rendering.RayTracingSubMeshFlags
alphaTestedMaterials
;
Description
The corresponding
RayTracingSubMeshFlags
value for alpha tested Materials.
Using
RayTracingSubMeshFlags.Enabled
alone will allow the GPU to execute
any hit shaders
where a ray-geo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_720be343c7d8 | unity_docs | editor | What is `QualitySettings.TryExcludePlatformAt` in Unity? Explain its purpose and usage. | QualitySettings.TryExcludePlatformAt
Declaration
public static bool
TryExcludePlatformAt
(string
buildTargetGroupName
,
int
index
,
out Exception
error
);
Parameters
Parameter
Description
buildTargetGroupName
The platform name.
index
The index of the Quality Level, must be positive and lower than the co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2d114da9d7dc | unity_docs | scripting | What is `ChangeChildrenOrderEventArgs` in Unity? Explain its purpose and usage. | ChangeChildrenOrderEventArgs
struct in
UnityEditor
Description
A change of this type indicates that a GameObject's children have been reordered. This happens when
Undo.RegisterChildrenOrderUndo
is called or when reordering a child in the hierarchy under the same parent.
Properties
Property
Description
instan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8928530fcc63 | unity_docs | rendering | Show me a Unity C# example demonstrating `LightBakingOutput`. | LightBakingOutput
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Struct describing the result of a Global Illumination bake for a given light.
The example below demonstrates how you can check the baked status of a light and change its active state.
```csharp
using UnityEngine;
using... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_835d85411258 | unity_docs | performance | What is `Profiling.Profiler.GetTotalUnusedReservedMemoryLong` in Unity? Explain its purpose and usage. | Profiler.GetTotalUnusedReservedMemoryLong
Declaration
public static long
GetTotalUnusedReservedMemoryLong
();
Returns
long
The amount of unused memory in the reserved pools. This returns 0 if the Profiler is not available.
Description
Unity allocates memory in pools for usage when unity needs to allocate m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f95ab2511156 | unity_docs | editor | What is `PlayerSettings.Android.reportGooglePlayAppDependencies` in Unity? Explain its purpose and usage. | PlayerSettings.Android.reportGooglePlayAppDependencies
public static bool
reportGooglePlayAppDependencies
;
Description
Indicates whether to track application dependencies for Google Play Store verification.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class ReportGooglePlayAp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b35d3c1a8240 | unity_docs | physics | Explain 'Profiler markers reference' in Unity. | Unity’s code is instrumented with
profiler markers
that give you insight into what takes up time in your application. The following tables contain a list of some of the in-built markers.
Main thread base markers
Script update markers
Rendering and VSync markers
Back end scripting markers
Multithreading markers
Physics ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b2bdafca06c2 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.IPropertyDatabaseView`. | a view.
All operations available on the
PropertyDatabase
class are available on the view itself. When operating directly on the
PropertyDatabase
instance, an internal view is created to handle all the synchronization. Since we are dealing with files, opening a view has a non-negligible cost. Therefore, it is recomm... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_02a197c34889 | unity_docs | audio | What is `Audio.AudioMixer.updateMode` in Unity? Explain its purpose and usage. | AudioMixer.updateMode
public
Audio.AudioMixerUpdateMode
updateMode
;
Description
How time should progress for this AudioMixer. Used during Snapshot transitions.
During update of AudioMixers and Snapshot transitions, this property defines how those transitions should progress.
AudioMixerUpdateMode.Normal upda... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73ad9445c14c | unity_docs | scripting | What are the parameters of `GridLayout.LocalToCellInterpolated` in Unity? | Returns Vector3 Interpolated cell position of the local position. Description Converts a local position to cell position. Returns the interpolated cell position in floats, rather than the exact cell position. ```csharp
// Move GameObject left by 1/4th of cell width of parent GridLayout
using UnityEngine;public class Ex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_193d35206445 | unity_docs | scripting | What is `AndroidJNIHelper.Box` in Unity? Explain its purpose and usage. | AndroidJNIHelper.Box
Declaration
public static IntPtr
Box
(sbyte
value
);
Declaration
public static IntPtr
Box
(short
value
);
Declaration
public static IntPtr
Box
(int
value
);
Declaration
public static IntPtr
Box
(long
value
);
Declaration
public static IntPtr
Box
(float
value
);
Declaratio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_133d7340f59e | unity_docs | scripting | What is `iOSLaunchScreenType.ImageAndBackgroundConstant` in Unity? Explain its purpose and usage. | iOSLaunchScreenType.ImageAndBackgroundConstant
Description
Use a custom launch screen image specified in the iOS Player Settings or with
PlayerSettings.iOS.SetLaunchScreenImage
and use its original dimensions. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c447eed073ef | unity_docs | scripting | What is `ISerializationCallbackReceiver` in Unity? Explain its purpose and usage. | ISerializationCallbackReceiver
interface in
UnityEngine
Description
Interface for receiving callbacks before serialization and after deserialization, to process datatypes that can't otherwise be serialized or deserialized.
The Unity serializer can automatically serialize most data types, but not all of them. In c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4c3933d9ebf4 | unity_docs | scripting | What is `Compilation.Assembly.rootNamespace` in Unity? Explain its purpose and usage. | Assembly.rootNamespace
public string
rootNamespace
;
Description
Sets the root namespace of the assembly.
This property is used to specify in which root namespace each script in the assembly belongs. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d2769333a81a | unity_docs | scripting | In Unity's 'Vector4Field', what is 'Create a Vector4Field' and how does it work? | You can create a Vector4Field with UI Builder, UXML, and C#. The following C# example creates a Vector4Field and sets the default value to
(0, 0, 0, 0)
:
```
Vector4Field myElement = new Vector4Field("Label text");
// Set the default value to (0, 0, 0, 0).
myElement.value = Vector4.zero;
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63b06c449c19 | unity_docs | rendering | What is `RenderTextureFormat.R8` in Unity? Explain its purpose and usage. | RenderTextureFormat.R8
Description
Single channel (R) render texture format, 8 bit integer.
Note that not all graphics cards support integer render textures.
Use
SystemInfo.SupportsRenderTextureFormat
to check for support.
Additional resources:
RenderTexture
class,
SystemInfo.SupportsRenderTextureFormat
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_66ad1417aa2a | unity_docs | scripting | What is `iOS.Xcode.PBXProject.SetDevelopmentRegion` in Unity? Explain its purpose and usage. | PBXProject.SetDevelopmentRegion
Declaration
public void
SetDevelopmentRegion
(string
code
);
Parameters
Parameter
Description
code
The identifier of the provided Locale.
Description
Sets the default language and region for the bundle in Xcode Project. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d41d93a017cf | unity_docs | scripting | What is `GradientAlphaKey` in Unity? Explain its purpose and usage. | GradientAlphaKey
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Alpha key used by Gradient.
Additional resources:
GradientColorKey
,
Gradient
.
Properties
Property
Description
alpha
Alpha channel of key.
time
Time of the key (0 - 1).
Constructors
Constructor
Description
Gr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a1d319e247a1 | unity_docs | scripting | What is `UIElements.Experimental.StyleValues.borderBottomLeftRadius` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues.borderBottomLeftRadius
public float
borderBottomLeftRadius
;
Description
The radius of the bottom-left corner when a rounded rectangle is drawn in the element's box. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3f60a6e382e1_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | class SystemManagerObserverThe class is used for integration of TinyECS with Unity3D and stores a reference to someISystemManager implementation
Signature:
```csharp
public class SystemManagerObserver: MonoBehaviour
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_117113193304 | unity_docs | scripting | Show me a Unity C# example demonstrating `SystemLanguage.Belarusian`. | SystemLanguage.Belarusian
Description
Belarusian.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Belarusian language
if (Application.systemLanguage == SystemLanguage.Belarusian)
{
//Outputs into console that the sys... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a9933db521a2 | unity_docs | ui | What is `Experimental.GraphView.Pill.right` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Pill.right
public
UIElements.VisualElement
right
;
Description
The VisualElement to the right of the pill. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f184ba98cac | unity_docs | scripting | What is `UIElements.SortColumnDescriptions.Remove` in Unity? Explain its purpose and usage. | SortColumnDescriptions.Remove
Declaration
public bool
Remove
(
UIElements.SortColumnDescription
desc
);
Parameters
Parameter
Description
desc
The sort description to remove.
Returns
bool
Whether it was removed or not.
Description
Removes the first occurence of a sort description from the collection... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb42032d5ac4 | unity_docs | scripting | What is `WindZoneMode` in Unity? Explain its purpose and usage. | WindZoneMode
enumeration
Description
Modes a Wind Zone can have, either Spherical or Directional.
You can have more than one Spherical Wind Zone in a Scene, but it does not make much
sense to have more than one Directional Wind Zone in your Scene as it affects
the whole Scene. This Wind Zone Mode is used by the
W... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_629b98a50e5c | unity_docs | physics | Explain 'Sub Emitters module reference' in Unity. | View and edit the settings for the Sub Emitters module.
Sub emitters are particle emitters that Unity uses to spawn additional particles at the location of an existing particle.
## Properties
For some properties in this section, you can use different modes to set their value. For information on the modes you can use,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1e4e1ace2826 | unity_docs | rendering | In Unity's 'Key concepts', what is '3D models' and how does it work? | Models are 3D representations of objects. The majority of the visuals for 3D games consist of models, such as characters, interactive objects, and the world around the player.
You can use tools like ProBuilder to create models in the Unity Editor. However, these work best for prototyping, rather than for your final pro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ba295bf89965 | unity_docs | math | What is `Transform.TransformVectors` in Unity? Explain its purpose and usage. | Transform.TransformVectors
Declaration
public void
TransformVectors
(Span<Vector3>
vectors
);
Parameters
Parameter
Description
vectors
The vectors to be transformed, each is replaced by the transformed version.
Description
Transforms multiple vectors from local space to world space overwriting each origin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dbee3b0038ec | unity_docs | scripting | What is `Unity.IO.LowLevel.Unsafe.VirtualFileSystem` in Unity? Explain its purpose and usage. | VirtualFileSystem
class in
Unity.IO.LowLevel.Unsafe
/
Implemented in:
UnityEngine.CoreModule
Description
Class that provides access to some of the Unity low level virtual file system APIs.
Static Methods
Method
Description
GetLocalFileSystemName
This method looks up the virtual file entry specified, and retu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c1fedd78d7d | unity_docs | scripting | What is `PrefabUtility.GetObjectOverrides` in Unity? Explain its purpose and usage. | PrefabUtility.GetObjectOverrides
Declaration
public static List<ObjectOverride>
GetObjectOverrides
(
GameObject
prefabInstance
,
bool
includeDefaultOverrides
);
Parameters
Parameter
Description
prefabInstance
The Prefab instance to get information about.
includeDefaultOverrides
If true, components will a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_699612fd3f29 | unity_docs | ui | Explain 'Bind to a UXML template' in Unity. | This example demonstrates how to set binding paths with UXML templates.
## Example overview
The example uses UXML templates to create three toggles and binds them to the properties of a GameSwitchesAsset object.
You can find the completed files that this example creates in this
GitHub repository
.
## Create the Game... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_99cad5661bde | unity_docs | input | What is `UIElements.VisualElement.SetEnabled` in Unity? Explain its purpose and usage. | VisualElement.SetEnabled
Declaration
public void
SetEnabled
(bool
value
);
Parameters
Parameter
Description
value
New enabled state
Description
Changes the
VisualElement
enabled state. A disabled visual element does not receive most events.
The method disables the local flag of the VisualElement and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3cbd620b6cdf | unity_docs | editor | What is `AssetDatabase.AssetEditingScope` in Unity? Explain its purpose and usage. | AssetEditingScope
class in
UnityEditor
Description
Places the Asset Database into a state that temporarily prevents automatic import, allowing you to group several asset imports together into one larger import.
This class allows you to pause the Asset Database's automatic import of new or modified assets. This is... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c29f6067031a | unity_docs | math | What is `AI.NavMesh.AddLink` in Unity? Explain its purpose and usage. | NavMesh.AddLink
Declaration
public static
AI.NavMeshLinkInstance
AddLink
(
AI.NavMeshLinkData
link
);
Parameters
Parameter
Description
link
Object that describes the properties of the link.
Returns
NavMeshLinkInstance
Object that identifies the added link.
Description
Adds a link to the NavMesh. T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_236c9b7effe4 | unity_docs | scripting | Show me a Unity C# example demonstrating `EventType.ExecuteCommand`. | EventType.ExecuteCommand
Description
Execute a special command (eg. copy & paste).
"Copy", "Cut", "Paste", "Delete", "FrameSelected", "Duplicate", "SelectAll" and so on.
Sent only in the editor.
Example. Checking that that a frame has the focus:
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e83c9cd06ac8 | unity_docs | rendering | What is `Mesh.uv3` in Unity? Explain its purpose and usage. | Mesh.uv3
public Vector2[]
uv3
;
Description
The texture coordinates (UVs) in the third channel.
This channel is also commonly called "UV2". It maps to the shader semantic `TEXCOORD2`. When you call
Mesh.HasVertexAttribute
, this channel corresponds to
VertexAttribute.TexCoord2
.
Unity can use this channel to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c6ba8b18587 | unity_docs | animation | What is `Animations.PropertyStreamHandle.SetBool` in Unity? Explain its purpose and usage. | PropertyStreamHandle.SetBool
Declaration
public void
SetBool
(
Animations.AnimationStream
stream
,
bool
value
);
Parameters
Parameter
Description
stream
The
AnimationStream
that holds the animated values.
value
The new boolean property value.
Description
Sets the boolean property value into a stream.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae51616266f8 | unity_docs | scripting | What is `Camera.WorldToViewportPoint` in Unity? Explain its purpose and usage. | Camera.WorldToViewportPoint
Declaration
public
Vector3
WorldToViewportPoint
(
Vector3
position
);
Declaration
public
Vector3
WorldToViewportPoint
(
Vector3
position
,
Camera.MonoOrStereoscopicEye
eye
);
Parameters
Parameter
Description
position
A 3D point in world space.
eye
Optional argumen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bad73a15e735 | unity_docs | rendering | In Unity's 'Transparent Vertex-Lit', what is 'Transparent Properties' and how does it work? | Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader can make mesh geometry partially or fully transparent by reading the alpha channel of the main texture. In the alpha, 0 (black) is completely transparent while 255 (white) is completely opaque. If your main texture does not have an alp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9efc443bfe27 | unity_docs | rendering | What is `Rendering.GraphicsTextureDescriptor.flags` in Unity? Explain its purpose and usage. | GraphicsTextureDescriptor.flags
public
Rendering.GraphicsTextureDescriptorFlags
flags
;
Description
A set of
GraphicsTextureDescriptorFlags
that control how the texture can be rendered to or read from.
To use a GraphicsTexture as a render target, it must have
GraphicsTextureDescriptorFlags.RenderTarget
en... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_28b144930285 | unity_docs | editor | What is `Handles.MakeBezierPoints` in Unity? Explain its purpose and usage. | Handles.MakeBezierPoints
Declaration
public static Vector3[]
MakeBezierPoints
(
Vector3
startPosition
,
Vector3
endPosition
,
Vector3
startTangent
,
Vector3
endTangent
,
int
division
);
Description
Retuns an array of points to representing the bezier curve.
The
division
argument provides the numbe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f275e170c34a | unity_docs | animation | Show me a Unity code example for 'In-game time and real time'. | t’s sometimes useful to slow the passage of game time so that animations and time-based calculations in your code happen at a slower pace. Furthermore, you may sometimes want to freeze game time completely, as when the game is paused.
The Time window has a property to let you set the time scale globally but it’s usuall... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_42f975e62356 | unity_docs | rendering | What is `LightingSettings.respectSceneVisibilityWhenBakingGI` in Unity? Explain its purpose and usage. | LightingSettings.respectSceneVisibilityWhenBakingGI
public bool
respectSceneVisibilityWhenBakingGI
;
Description
When Unity is precomputing or baking Global Illumination, respect the Scene Visibility setting of a [[GameObject] with a
MeshRenderer
or
Terrain
component.
This property requires that a
SceneVi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1c1693dc74b1 | unity_docs | animation | What is `Animator.GetLayerIndex` in Unity? Explain its purpose and usage. | Animator.GetLayerIndex
Declaration
public int
GetLayerIndex
(string
layerName
);
Parameters
Parameter
Description
layerName
The layer name.
Returns
int
The layer index.
Description
Returns the index of the layer with the given name. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0719619361fc | unity_docs | xr | What is `XR.InputDevices.GetDevicesAtXRNode` in Unity? Explain its purpose and usage. | InputDevices.GetDevicesAtXRNode
Declaration
public static void
GetDevicesAtXRNode
(
XR.XRNode
node
,
List<InputDevice>
inputDevices
);
Parameters
Parameter
Description
node
The XRNode that owns the requested device.
inputDevices
A List of type InputDevices to receive the available input devices.
Descrip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4d2c12b88b01 | unity_docs | rendering | In Unity's 'Low-level native plug-in interface', what is 'Interface Registry' and how does it work? | To handle main Unity events, a plug-in must export UnityPluginLoad and UnityPluginUnload functions. IUnityInterfaces enables the plug-in to access these functions, which you can find in
IUnityInterface.h
in the plug-in API:
```csharp
#include "IUnityInterface.h"
#include "IUnityGraphics.h"
// Unity plugin load event
ex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e842c148ec59 | unity_docs | scripting | What is `AI.NavMeshAgent.nextOffMeshLinkData` in Unity? Explain its purpose and usage. | NavMeshAgent.nextOffMeshLinkData
public
AI.OffMeshLinkData
nextOffMeshLinkData
;
Description
The next
OffMeshLinkData
on the current path.
In the case that the current path does not contain an OffMeshLink the
OffMeshLinkData
is marked as invalid. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_064200e0616e | unity_docs | rendering | Show me a Unity C# example demonstrating `MaterialPropertyBlock.SetColor`. | rtyToID
.
value
The
Color
value to set.
Description
Set a color property.
Adds a property to the block. If a color property with the given name already exists, the old value is replaced.
The color value is considered to be always set in sRGB space and is converted to linear if the active color space is linear. Y... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ee317dc9614 | unity_docs | performance | What are the parameters of `Unity.Profiling.ProfilerRecorder.StartNew` in Unity? | Returns ProfilerRecorder Returns new enabled recorder instance. Description Initialize a new instance of ProfilerRecorder and start data collection. For a list of built-in Profiler markers available,
see the User Manual documentation on Common Profiler markers . Note: capacity paramether must be greater... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b59db100e068 | unity_docs | rendering | What is `CanvasRenderer.hasPopInstruction` in Unity? Explain its purpose and usage. | CanvasRenderer.hasPopInstruction
public bool
hasPopInstruction
;
Description
Enable 'render stack' pop draw call.
When rendering using the hierarchy the renderer can insert a 'pop'. The pop instruction is executed after all children have been rendered. The canvas renderer is rerendered using the configured pop ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4760e492c471 | unity_docs | physics | What are the parameters of `Physics2D.IgnoreCollision` in Unity? | Description Makes the collision detection system ignore all collisions/triggers between collider1 and collider2 . Ignoring collisions refers to any type of interaction between the selected Colliders i.e. no collision or trigger interaction will occur. Collision layers are first checked to see the two layers can intera... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4e1f57de03c2 | unity_docs | editor | What is `Build.Profile.BuildProfile.scenes` in Unity? Explain its purpose and usage. | BuildProfile.scenes
public EditorBuildSettingsScene[]
scenes
;
Description
The list of scenes specified in the build profile.
These scenes will be included in the build only if the build profile is active and
BuildProfile.overrideGlobalScenes
is set to
true
. Additional resources:
EditorBuildSettingsScene
,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1408cae7c634 | unity_docs | rendering | What is `Rendering.CullingResults.FillLightAndReflectionProbeIndices` in Unity? Explain its purpose and usage. | CullingResults.FillLightAndReflectionProbeIndices
Declaration
public void
FillLightAndReflectionProbeIndices
(
ComputeBuffer
computeBuffer
);
Declaration
public void
FillLightAndReflectionProbeIndices
(
GraphicsBuffer
buffer
);
Parameters
Parameter
Description
computeBuffer
The compute buffer object t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a69c9d7c1043 | unity_docs | math | In Unity's 'Optimize your Web build with WebAssembly 2023', what is 'Support for WebAssembly Single Instruction Multiple Data (SIMD)' and how does it work? | The WebAssembly SIMD feature enables Unity to use the SIMD instruction support the browser provides. Internally, the browser targets the SIMD instruction sets in x86 intel and ARM architectures. So, this feature works on both desktop and mobile browsers that are supported. For a list of supported browsers, refer to
Pre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af64beb887f6 | unity_docs | rendering | Show me a Unity C# example demonstrating `LightTransport.InputExtraction.GetShadowmaskChannelsFromLightIndices`. | a channel.
-1: Light has no shadowmask channel assigned.
The shadowmask channels are automatically assigned by Unity's lighting system based on light overlap and priority. Use this information to correctly interpret occlusion data from
IProbeIntegrator.IntegrateOcclusion
.
Additional resources:
InputExtraction.Comp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a5889bb29b1c_doc_23 | github | scripting | What does `SetOrientation` do in this Unity script? Explain its purpose and signature. | Sets an orientation at the position in the brush.Position to set the orientation in the brush.Orientation to set in the brush.
Signature:
```csharp
public void SetOrientation(Vector3Int position, Quaternion orientation)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_295bc1ad39bc | unity_docs | scripting | What is `PackageManager.PackageInfo.FindForAssetPath` in Unity? Explain its purpose and usage. | PackageInfo.FindForAssetPath
Declaration
public static PackageInfo
FindForAssetPath
(string
assetPath
);
Parameters
Parameter
Description
assetPath
The file path of the asset.
Returns
PackageInfo
The
PackageInfo
instance describing the package, or null if the asset is not in a package.
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4082a83f70e3 | unity_docs | rendering | Show me a Unity C# example demonstrating `Graphics.CopyBuffer`. | Description
Copies the contents of one
GraphicsBuffer
into another.
The GPU copies the buffer contents efficiently.
Total buffer sizes (i.e.
count
multiplied by
stride
) must match between source and destination buffers. The source buffer must have a
GraphicsBuffer.Target.CopySource
target flag, and the destin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0defeae2d119 | unity_docs | editor | What is `EditorUtility.ClearDirty` in Unity? Explain its purpose and usage. | EditorUtility.ClearDirty
Declaration
public static void
ClearDirty
(
Object
target
);
Description
Clear
target's
dirty flag.
Unity uses the dirty flag to find changed assets that must be saved to disk. Clear the dirty flag if you make changes to an asset that don't need to be saved, such as temporary change... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2a0783c07b64 | unity_docs | scripting | What is `VersionControl.AssetList.FilterCount` in Unity? Explain its purpose and usage. | AssetList.FilterCount
Declaration
public int
FilterCount
(bool
includeFolder
,
params States[]
states
);
Parameters
Parameter
Description
includeFolder
Whether or not to include folders.
states
Which states to include in the count.
Description
Count the list of assets by given a set of states. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ea0fbb5945b | unity_docs | scripting | What is `UIElements.TimerState.Equals` in Unity? Explain its purpose and usage. | TimerState.Equals
Declaration
public bool
Equals
(object
obj
);
Parameters
Parameter
Description
obj
The object to compare with.
Returns
bool
True if the objects are equal.
Description
Compare this object with another object and return true if they are equal.
Declaration
public bool
Equals
(
UIE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1fd9675d5877 | unity_docs | scripting | Explain 'Submit an asset package for approval' in Unity. | The
Asset Store
team reviews each package draft to make sure it meets the
Submission Guidelines
before you can publish it to the Asset Store.
To send an Asset Store package draft for review:
Open the
Asset Store Publisher Portal
.
Select
Draft
.
Select the package you want to submit.
Select
Submit
.
The
Submit package ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7190b4af2f95 | unity_docs | rendering | What is `HandleUtility.WorldPointToSizedRect` in Unity? Explain its purpose and usage. | HandleUtility.WorldPointToSizedRect
Declaration
public static
Rect
WorldPointToSizedRect
(
Vector3
position
,
GUIContent
content
,
GUIStyle
style
);
Parameters
Parameter
Description
position
The world-space position to use.
content
The content to make room for.
style
The style to use. The style'... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c77aa250434d | unity_docs | rendering | In Unity's 'Add built-in keyword sets', what is 'Remove variants' and how does it work? | You can use the skip_variants directive to remove keywords you don’t use.
For example, the following example adds the keywords for the multi_compile_fwdadd set, but removes the POINT and POINT_COOKIES variants.
```
#pragma multi_compile_fwdadd
#pragma skip_variants POINT POINT_COOKIE
```
Refer to
Strip shader variants
... | 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.