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_90cbaece6b55 | unity_docs | input | What is `Experimental.GraphView.Edge.OnPortChanged` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Edge.OnPortChanged
Declaration
public void
OnPortChanged
(bool
isInput
);
Parameters
Parameter
Description
isInput
True if the input port was changed. False if the output port was changed.
Description
Called when a port... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_50e80773273b | unity_docs | rendering | What is `Experimental.Rendering.GraphicsStateCollection.BeginTrace` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsStateCollection.BeginTrace
Declaration
public bool
BeginTrace
();
Returns
bool
Returns true if tracing successfully started, false otherwise.
Description
Start tracing shader variants and graphics states encount... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e56eea7634c6 | unity_docs | editor | What is `EditorTools.EditorTool.OnToolGUI` in Unity? Explain its purpose and usage. | EditorTool.OnToolGUI
Declaration
public void
OnToolGUI
(
EditorWindow
window
);
Parameters
Parameter
Description
window
The window that is displaying the custom editor tool.
Description
Use this method to implement a custom editor tool.
This method is called for each window where the custom editor tool i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5ddd82e93b2 | unity_docs | rendering | What is `GraphicsBuffer.Target.Constant` in Unity? Explain its purpose and usage. | GraphicsBuffer.Target.Constant
Description
GraphicsBuffer can be used as a constant buffer (uniform buffer).
If you use this target, you can use the
GraphicsBuffer
as a parameter to
ComputeShader.SetConstantBuffer
and
Material.SetConstantBuffer
.
If you also need the buffer to be bound as a structured buffer, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7dbb54c1c3c1 | unity_docs | scripting | Give me an overview of the `HDRDisplaySupportFlags` class in Unity. | HDRDisplaySupportFlags
enumeration
Description
A set of flags that describe the level of HDR display support available on the GPU and driver.
See
SystemInfo.hdrDisplaySupportFlags
for more details.
Properties
Property
Description
None
Denotes that support for HDR displays is not available for the GPU and the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b3ca11747f71 | unity_docs | rendering | Show me a Unity code example for 'Example of a DOTS Instancing shader that accesses per-instance data in URP'. | ample:
The metadata value for Color is
0x80001000
.
The instance index is
5
.
Data for instance 0 starts at address 0x1000.
Data for instance 5 is at address 0x1000 + 5 * sizeof(float4) = 0x1050
Because the most significant bit is already set, the accessor macros don’t load defaults. This means that c0 ,
c1
, and c2 wi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88f257eb2f88 | unity_docs | rendering | What is `Rendering.SubPassFlags` in Unity? Explain its purpose and usage. | SubPassFlags
enumeration
Description
Flags to indicate specialized native subpass behaviour.
Properties
Property
Description
None
Default flags.
ReadOnlyDepth
The depth attachment is read-only in this sub pass. Some renderers require this in order to be able to use the depth attachment as input.
ReadOnlyStenc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0761133af23b | unity_docs | rendering | Explain 'Global illumination' in Unity. | Global illumination is a group of techniques that model both direct and indirect lighting to provide realistic lighting results.
Unity has the following
global illumination
systems:
Baked Global Illumination Enlighten Realtime Global Illumination
With both systems, you need to make sure you set up texture UVs correctly... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5806d4dbd909 | unity_docs | audio | In Unity's 'Video file compatibility with the Unity Editor', what is 'WebM videos - Supported video and audio codecs' and how does it work? | Unity usually only supports the import of WebM videos with VP8 (video) and Vorbis (audio) codecs. However, you can use the StreamingAssets folder to add WebM videos with the other codecs to the project. When you use this folder, the Editor doesn’t interpret the file itself, instead the Editor imports the raw file into ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eba56ea8d1ae | unity_docs | scripting | Show me a Unity C# example demonstrating `Color.operator_add`. | Color.operator +
public static
Color
operator +
(
Color
a
,
Color
b
);
Description
Adds two colors together. Each component is added separately.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Color magenta = Color.blue + Color.red;
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c11e077abf03 | unity_docs | rendering | What is `DetailRenderMode` in Unity? Explain its purpose and usage. | DetailRenderMode
enumeration
Description
Render mode for detail prototypes.
Properties
Property
Description
GrassBillboard
The detail prototype will be rendered as billboards that are always facing the camera.
VertexLit
Will show the prototype using diffuse shading.
Grass
The detail prototype will use the gra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f70d57471253 | unity_docs | performance | What is `Unity.Collections.NativeSlice_1` in Unity? Explain its purpose and usage. | NativeSlice<T0>
struct in
Unity.Collections
/
Implemented in:
UnityEngine.CoreModule
Description
Provides a view on a buffer of native memory most commonly acquired from a
NativeArray<T0>
.
A NativeSlice provides systems that means they can be used safely with jobs. In contrast to a
NativeArray<T0>
,
a Nativ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0bd68e96d9f6 | unity_docs | scripting | In Unity's 'Preset Manager', what is 'Preset Manager reference' and how does it work? | Property Description Filter
Use the Filter field to define which components or importers the Preset is applied to.
Preset
Use the Preset field to set the Preset you want to use. By default, a Preset applies to all components or asset importers of that Preset type once you create it. If you want to only apply it to spec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7aef13953dd5 | github | scripting | Write a Unity C# XR/VR script for Toggle Graphic Toggler | ```csharp
using UnityEngine.UI;
namespace UnityEngine.XR.Interaction.Toolkit.Samples.Hands
{
/// <summary>
/// Toggles between two graphic objects based on the state of a toggle.
/// </summary>
[RequireComponent(typeof(Toggle))]
public class ToggleGraphicToggler : MonoBehaviour
{
[Seria... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_438bd202a2f7 | unity_docs | scripting | What is `Caching.RemoveCache` in Unity? Explain its purpose and usage. | Caching.RemoveCache
Declaration
public static bool
RemoveCache
(
Cache
cache
);
Parameters
Parameter
Description
cache
The Cache to be removed.
Returns
bool
Returns true if the Cache is removed.
Description
Removes the Cache from cache list.
```csharp
using System.IO;
using UnityEngine;public class... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c2133619a04e | unity_docs | scripting | What are the parameters of `Search.QueryEngine_1.RemoveFilter` in Unity? | Description Removes a custom filter. You will get a warning if you try to remove a non-existent filter. ```
// Remove the filter with token "id"
var token = "id";
queryEngine.RemoveFilter("id");
``` Declaration public void RemoveFilter ( Search.IQueryEngineFilter filter ); Parameters Parameter Description filter The fi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_532e9e74b919 | unity_docs | scripting | Show me a Unity code example for 'Custom package legal requirements'. | You can use the
Third Party Notices.md and LICENSE.md
files to make sure your package meets any legal requirements. For example, here’s a sample license file from the Unity Timeline package:
```
Unity Timeline copyright © 2017-2019 Unity Technologies ApS
Licensed under the Unity Companion License for Unity-dependent p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b129540dd18a | unity_docs | rendering | What is `Light.shadowResolution` in Unity? Explain its purpose and usage. | Light.shadowResolution
public
Rendering.LightShadowResolution
shadowResolution
;
Description
The resolution of the shadow map. Change it to balance shadow visual quality and performance.
Affects how sharp and detailed shadows look and directly impacts GPU usage and frame rate. The result is most visible on s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31c93efb233a | unity_docs | editor | What is `BuildPlayerOptions` in Unity? Explain its purpose and usage. | BuildPlayerOptions
struct in
UnityEditor
Description
Provide various options to control the behavior of
BuildPipeline.BuildPlayer
.
Additional resources:
EditorBuildSettings
,
BuildPlayerWindow.DefaultBuildMethods.GetBuildPlayerOptions
```csharp
using UnityEditor;
using UnityEngine;public class BuildPlayerOpt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4e042639ac1 | unity_docs | physics | What is `ParticleSystem.CollisionModule.RemovePlane` in Unity? Explain its purpose and usage. | ParticleSystem.CollisionModule.RemovePlane
Declaration
public void
RemovePlane
(int
index
);
Parameters
Parameter
Description
index
The collision plane to remove.
Description
Removes a collision plane associated with this Particle System.
Declaration
public void
RemovePlane
(
Transform
transform
);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9334e3ee43b | unity_docs | editor | What is `iOS.Xcode.PBXProject.UpdateBuildProperty` in Unity? Explain its purpose and usage. | PBXProject.UpdateBuildProperty
Declaration
public void
UpdateBuildProperty
(string
targetGuid
,
string
name
,
IEnumerable<string>
addValues
,
IEnumerable<string>
removeValues
);
Declaration
public void
UpdateBuildProperty
(IEnumerable<string>
targetGuids
,
string
name
,
IEnumerable<string>
addValues
,
IEn... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63c1144cc3e4 | unity_docs | scripting | What is `UIElements.IMGUIContainer.ctor` in Unity? Explain its purpose and usage. | IMGUIContainer Constructor
Declaration
public
IMGUIContainer
();
Description
Constructor.
Declaration
public
IMGUIContainer
(
Unity.Android.Gradle.Manifest.Action
onGUIHandler
);
Parameters
Parameter
Description
onGUIHandler
The function assigned to <see cref="onGUIHandler" />.
Description
Const... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c0406ef669de | unity_docs | scripting | What is `Space` in Unity? Explain its purpose and usage. | Space
enumeration
Description
The coordinate spaces in which to apply transformation to a GameObject.
You can pass a value from this enum as a parameter to methods such as
Transform.Rotate
and
Transform.Translate
to specify which coordinate space the transformation is applied in.
World coordinate space repre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b166a83b0fbf | unity_docs | performance | Show me a Unity C# example demonstrating `Profiling.CustomSampler.Create`. | object or
null
if a built-in Sampler with the same name exists.
Description
Creates a new CustomSampler for profiling parts of your code.
Multiple calls with the same
name
parameter return different
CustomSampler
objects which refer to the same native representation.
CustomSampler represents scripting profil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52eb313c5293 | unity_docs | scripting | What is `UIElements.BindingContext.dataSourcePath` in Unity? Explain its purpose and usage. | BindingContext.dataSourcePath
public
Unity.Properties.PropertyPath
dataSourcePath
;
Description
The resolved path to the value in the source, including relative data source paths found in the hierarchy
between the target and to the resolved source owner. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0a717178a2ee | unity_docs | editor | Show me a Unity C# example demonstrating `AndroidAutoRotationBehavior`. | AndroidAutoRotationBehavior
enumeration
Description
Options to control the application window orientation when
Default orientation
is set to
Auto rotation
.
```csharp
using UnityEditor;
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class AutoRotationBehaviorSample : MonoBehaviour
{
[Menu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c2bb82fd792a | unity_docs | ui | What is `Experimental.GraphView.GraphView.viewport` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.viewport
public
UIElements.VisualElement
viewport
;
Description
The graph's viewport. This is currently just itself. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b38359b94e4a | unity_docs | editor | What is `Device.SystemInfo.IsFormatSupported` in Unity? Explain its purpose and usage. | SystemInfo.IsFormatSupported
Declaration
public static bool
IsFormatSupported
(
Experimental.Rendering.GraphicsFormat
format
,
Experimental.Rendering.GraphicsFormatUsage
usage
);
Description
This has the same functionality as
SystemInfo.IsFormatSupported
and also mimics platform-specific behavior in the U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5892aca5a35 | unity_docs | rendering | What is `Rendering.ShaderTagId.operator_ShaderTagId` in Unity? Explain its purpose and usage. | ShaderTagId.ShaderTagId
Parameters
Parameter
Description
name
The name to represent the shader tag id.
Description
Converts a string to a
ShaderTagId
.
Gets or creates a shader tag id representing the given name. This is equivalent to using the constructor for
ShaderTagId
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b655dcf09bbd | unity_docs | physics | What is `ParticleSystem.MainModule.gravitySource` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.gravitySource
public
ParticleSystemGravitySource
gravitySource
;
Description
Specify whether to use the gravity strength from the 2D or 3D physics system.
Additional resources:
ParticleSystem.MainModule.gravityModifier
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7b0643254b44 | unity_docs | editor | In Unity's 'Web native plug-ins for Emscripten', what is 'Targeted versions' and how does it work? | Unity bundles the Emscripten compiler with the Web platform package, so that you don’t have to manually download it. The version of Emscripten that the Editor uses varies by Editor version:
Unity Version
Emscripten version
Supported native
plug-in
file formats
Unity 2023.2 and later
Emscripten 3.1.38-unity.a, .bc
Unity... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1f7c3c138a75 | unity_docs | scripting | What is `Progress.Item.SetDescription` in Unity? Explain its purpose and usage. | Progress.Item.SetDescription
Declaration
public void
SetDescription
(string
newDescription
);
Parameters
Parameter
Description
newDescription
The progress indicator's new description.
Description
Sets the progress indicator's description. To clear the description pass null.
Additional resources:
Progress... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d05ba768f18f | unity_docs | rendering | What are the parameters of `CubemapArray.SetPixelData` in Unity? | Description Sets the raw data of an entire mipmap level of a face directly in CPU memory. This method sets pixel data for the texture in CPU memory. Texture.isReadable must be true , and you must call Apply after SetPixelData to upload the changed pixels to the GPU. SetPixelData is useful if you want to load compressed... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_507a0c3dea6b | unity_docs | scripting | What is `Rendering.RenderPipelineGlobalSettings.Contains` in Unity? Explain its purpose and usage. | RenderPipelineGlobalSettings.Contains
Declaration
protected bool
Contains
(Type
type
);
Parameters
Parameter
Description
type
A valid ISRPGraphicsSetting type.
Returns
bool
True if the type exists, otherwise false.
Description
If the given ISRPGraphicsSetting type is present in this
RenderPipelineGl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_688286630bb1 | unity_docs | scripting | What is `NetworkReachability.NotReachable` in Unity? Explain its purpose and usage. | NetworkReachability.NotReachable
Description
Network is not reachable.
```csharp
//Attach this script to a GameObject
//This script checks the device’s ability to reach the internet and outputs it to the console windowusing UnityEngine;public class Example : MonoBehaviour
{
string m_ReachabilityText; void Update()... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cae68b85686a | unity_docs | scripting | What is `Unity.Collections.NativeLeakDetectionMode` in Unity? Explain its purpose and usage. | NativeLeakDetectionMode
enumeration
Description
Sets which native leak memory leak detection mode to use.
Properties
Property
Description
Disabled
Disable native memory leak detection.
Enabled
Enable native memory leak detection without stack traces.
EnabledWithStackTrace
Enable native memory leak detection w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_df506d286c92 | unity_docs | rendering | In Unity's 'Tab', what is 'Examples' and how does it work? | The following UXML example creates a TabView with Tabs:
```
<UXML xmlns="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements">
<TabView>
<Tab label="UXML Tab A">
<Label text="UXML tab: This is some content for the first Tab." />
</Tab>
<Tab label="UXML Tab B">
<Label text="UXML tab: This is some content for... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e64cdd674a1e | unity_docs | input | What is `IMGUI.Controls.TreeViewSelectionOptions.RevealAndFrame` in Unity? Explain its purpose and usage. | TreeViewSelectionOptions.RevealAndFrame
Description
If this flag is passed to
TreeView.SetSelection
then the TreeView will make sure the last item in the input selection list is visible on screen.
Additional resources:
FireSelectionChanged
,
None
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6eefdca8c075 | unity_docs | ui | Give me an overview of the `AssetPostprocessorStaticVariableIgnoreAttribute` class in Unity. | AssetPostprocessorStaticVariableIgnoreAttribute
class in
UnityEditor
Description
Allows you to decorate static variables in AssetPostprocessor and ScriptedImporter classes that should be ignored by the static variable warning system in the Import Activity window.
This attribute is introduced to decorate static var... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5b96ec760e07_doc_6 | github | scripting | What does `StopAllCoroutines` do in this Unity script? Explain its purpose and signature. | Stops all coroutines running on this behaviour.
Signature:
```csharp
protected void StopAllCoroutines()
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_997cae93c6e7 | unity_docs | scripting | What is `Rendering.RTClearFlags.All` in Unity? Explain its purpose and usage. | RTClearFlags.All
Description
Clear all color render targets, the depth buffer, and the stencil buffer. This is equivalent to combining
RTClearFlags.Color
,
RTClearFlags.Depth
and
RTClearFlags.Stencil
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c2fdfd2d5cec | unity_docs | rendering | In Unity's 'Supported asset type reference', what is 'Asset importers' and how does it work? | Unity uses importers to process and convert external files into assets that can be used in your project. Each file type has a corresponding importer that handles its specific requirements.
Unity supports many asset file types via its collection of built-in importers. Most of these importers are implemented in the Unity... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_34f50b6bd7e0 | unity_docs | rendering | What are the parameters of `ParticleSystem.Emit` in Unity? | Description Emit count particles immediately. Declaration public void Emit ( ParticleSystem.EmitParams emitParams ,
int count ); Parameters Parameter Description emitParams Overidden particle properties. count Number of particles to emit. Description Emit a number of particles from script. Setting properties in the emi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9cb7d47bd334 | unity_docs | editor | What is `AssetDatabase.GetAssetPathFromTextMetaFilePath` in Unity? Explain its purpose and usage. | AssetDatabase.GetAssetPathFromTextMetaFilePath
Declaration
public static string
GetAssetPathFromTextMetaFilePath
(string
path
);
Parameters
Parameter
Description
path
The .meta file name.
Description
Gets the path to the asset file associated with a text .meta file.
```csharp
using System.IO;
using UnityE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_98123012f7c2 | unity_docs | editor | What is `PlayerSettings.Android.minAspectRatio` in Unity? Explain its purpose and usage. | PlayerSettings.Android.minAspectRatio
public static float
minAspectRatio
;
Description
Minimum aspect ratio which is supported by the application.
This value is expressed as (longer dimension / shorter dimension) in decimal form. For example, if the minimum aspect ratio is 4:3, set this value to 1.33. This val... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7691856dcec7 | unity_docs | rendering | What is `Rendering.SupportedRenderingFeatures` in Unity? Explain its purpose and usage. | SupportedRenderingFeatures
class in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Describes the rendering features supported by a given render pipeline.
Set the active supported rendering features when enabling a render pipeline. This will change the state of the editor UI to reflec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_31857a76f89d | unity_docs | input | In Unity's 'UnsignedLongField', what is 'Customize the input text selection' and how does it work? | Input text is selectable by default. You can customize the selection behaviors such as selectAllOnMouseUP and
selectAllOnFocus
.
In C#, set them through
textSelection
:
```
myElement.textSelection.selectAllOnMouseUp = false;
myElement.textSelection.selectAllOnFocus = false;
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f213911a6bc2 | unity_docs | math | What is `RectInt.min` in Unity? Explain its purpose and usage. | RectInt.min
public
Vector2Int
min
;
Description
The lower left corner of the rectangle; which is the minimal position of the rectangle along the x- and y-axes, when it is aligned to both axes.
If you enter a minimum value that is greater than the current maximum value, then the entered value becomes the new m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_925235c680f6 | unity_docs | scripting | Show me a Unity code example for 'Call and implement native UWP plug-ins'. | g backend
supports the P/Invoke mechanism for native plug-ins. This means that you can call into native plug-ins directly from your C# code. To do this, you specify the native function prototype and then call it.
The following examples show you how to implement a native plug-in and call it from a C# script.
Create a ne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1b922affea59 | unity_docs | scripting | What is `ModelImporterSkinWeights` in Unity? Explain its purpose and usage. | ModelImporterSkinWeights
enumeration
Description
Skin weights options for
ModelImporter
.
In order to import more than 4 skin weights per vertex, set
ModelImporter.skinWeights
to
ModelImporterSkinWeights.Custom
and set
ModelImporter.maxBonesPerVertex
to the required number. You may also limit the number of ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4ae1244bd55 | unity_docs | performance | What is `Unity.Jobs.LowLevel.Unsafe.JobProducerTypeAttribute` in Unity? Explain its purpose and usage. | JobProducerTypeAttribute
class in
Unity.Jobs.LowLevel.Unsafe
/
Implemented in:
UnityEngine.CoreModule
Description
Indicates that a job interface's Execute method can be Burst compiled.
All job interface types must be marked with the JobProducerType. This is used to compile the Execute method by the Burst ASM in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_734d9c57d0f1 | unity_docs | rendering | Show me a Unity C# example demonstrating `AnimationClip.SetCurve`. | meters start with the
material
prefix followed
by the property name starting with an underscore. For example, color (
material._Color
) and scale
(
material._BumpScale
) can be animated.
The example script below shows how a GameObject can be animated in two ways at the
same time. In this example, the position of ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e3a8e085a902 | unity_docs | xr | What is `InsecureHttpOption.AlwaysAllowed` in Unity? Explain its purpose and usage. | InsecureHttpOption.AlwaysAllowed
Description
Allow
UnityWebRequest
to use plain text HTTP connections at all times.
Warning:
Plain text HTTP connections are not secure, and can make your application vulnerable to security threats. This option is not recommended. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_951f9398feca | unity_docs | scripting | Show me a Unity C# example demonstrating `TextMesh.fontSize`. | TextMesh.fontSize
public int
fontSize
;
Description
The font size to use (for dynamic fonts).
If this is set to a non-zero value, the font size specified in the font importer is overriden with a custom size.
This is only supported for fonts set to use dynamic font rendering. Other fonts will always use the def... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7afc7869faa4 | unity_docs | scripting | What is `PrimitiveType.Plane` in Unity? Explain its purpose and usage. | PrimitiveType.Plane
Description
A plane primitive.
Additional resources:
GameObject.CreatePrimitive
.
```csharp
using UnityEngine;
using System.Collections;// Creates a plane primitivepublic class ExampleClass : MonoBehaviour
{
void Start()
{
GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0350a1b57a1a | unity_docs | math | What is `AndroidJNI.ToDoubleArray` in Unity? Explain its purpose and usage. | AndroidJNI.ToDoubleArray
Declaration
public static IntPtr
ToDoubleArray
(double[]
array
);
Description
Converts a managed array of System.Double to a Java array of
double
.
Additional resources:
AndroidJNI.NewDoubleArray
,
AndroidJNI.SetDoubleArrayElement
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1b1c9bc89342 | unity_docs | editor | What is `EditorGUILayout.DelayedDoubleField` in Unity? Explain its purpose and usage. | EditorGUILayout.DelayedDoubleField
Declaration
public static double
DelayedDoubleField
(double
value
,
params GUILayoutOption[]
options
);
Declaration
public static double
DelayedDoubleField
(double
value
,
GUIStyle
style
,
params GUILayoutOption[]
options
);
Declaration
public static double
DelayedDo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d09643c3ca9 | unity_docs | scripting | What is `SkinWeights.TwoBones` in Unity? Explain its purpose and usage. | SkinWeights.TwoBones
Description
Two bones affect each vertex. When used to access
Mesh.GetBoneWeightBuffer
the Bone Weight buffer will contain two indices and two floats per vertex.
Additional resources:
QualitySettings.skinWeights
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f35fc0aca579 | unity_docs | scripting | What is `VersionControl.VersionControlObject` in Unity? Explain its purpose and usage. | VersionControlObject
class in
UnityEditor.VersionControl
/
Inherits from:
ScriptableObject
Description
The abstract base class for representing a version control system.
You can add support for a custom VCS by creating a new class derived from VersionControlObject and applying the
VersionControlAttribute
.
``... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2428dcb7bd3d | unity_docs | ui | What is `UIElements.VisualElement.ClearBinding` in Unity? Explain its purpose and usage. | VisualElement.ClearBinding
Declaration
public void
ClearBinding
(
UIElements.BindingId
bindingId
);
Parameters
Parameter
Description
bindingId
The id of the binding to unbind on this element.
Description
Removes a binding from the element. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e5e16e8b5d6 | unity_docs | physics | What is `ParticlePhysicsExtensions` in Unity? Explain its purpose and usage. | ParticlePhysicsExtensions
class in
UnityEngine
/
Implemented in:
UnityEngine.ParticleSystemModule
Description
Method extension for Physics in Particle System.
Static Methods
Method
Description
GetCollisionEvents
Get the particle collision events for a GameObject. Returns the number of events written to the a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dcb292a6e6d6 | unity_docs | scripting | What is `UIElements.SerializedObjectChangeEvent.GetPooled` in Unity? Explain its purpose and usage. | SerializedObjectChangeEvent.GetPooled
Declaration
public static
UIElements.SerializedObjectChangeEvent
GetPooled
(
SerializedObject
value
);
Parameters
Parameter
Description
value
The SerializedObject that changed.
Returns
SerializedObjectChangeEvent
An initialized event.
Description
Gets an even... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_758966a39229 | unity_docs | rendering | Explain 'Tree level of detail (LOD)' in Unity. | Trees from Tree Editor and trees from SpeedTree handle their level of detail (LOD) differently.
## SpeedTree
A SpeedTree Prefab has an LODGroup component. Refer to LOD and
LOD Group
for more information about configuring LOD components.
## Tree Editor
Tree Editor trees don’t have an LODGroup component. Unity’s LOD ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_238c26bf1628 | unity_docs | scripting | Give me an overview of the `ScreenOrientation` class in Unity. | ScreenOrientation
enumeration
Description
Describes screen orientation.
Currently this is only relevant on mobile devices.
Additional resources:
Screen.orientation
.
Properties
Property
Description
Portrait
Portrait orientation.
PortraitUpsideDown
Portrait orientation, upside down.
LandscapeLeft
Landscape o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4b76f0bf74a | unity_docs | scripting | What is `ContextMenu` in Unity? Explain its purpose and usage. | ContextMenu
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Use the ContextMenu attribute to add commands to the context menu of the Inspector window.
In the Inspector window of the attached script, when the user selects the context menu,
the function executes.
This is most useful for ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abc0d638a841 | unity_docs | scripting | Give me an overview of the `ParticleSystemSimulationSpace` class in Unity. | ParticleSystemSimulationSpace
enumeration
Description
The space to simulate particles in.
Properties
Property
Description
Local
Simulate particles in local space.
World
Simulate particles in world space.
Custom
Simulate particles relative to a custom transform component, defined by ParticleSystem.MainModule.c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9872ffdd7466 | unity_docs | scripting | What is `Search.SearchProvider.fetchItems` in Unity? Explain its purpose and usage. | SearchProvider.fetchItems
public Func<SearchContext,List<SearchItem>,SearchProvider,object>
fetchItems
;
Description
MANDATORY: Handler to get items for a given search context. The return value is an object that can be of type IEnumerable or IEnumerator. The enumeration of those objects should return SearchItems... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0551ba502743 | unity_docs | scripting | What is `Search.SearchSelection.Contains` in Unity? Explain its purpose and usage. | SearchSelection.Contains
Declaration
public bool
Contains
(
Search.SearchItem
item
);
Parameters
Parameter
Description
item
Search item to be compared.
Returns
bool
True if the item is contained in the selection.
Description
Checks if the search item is contained in the current selection. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_38963a4094d6 | unity_docs | rendering | What is `Experimental.Lightmapping.GetCustomBakeResultsNoCopy` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Lightmapping.GetCustomBakeResultsNoCopy
Declaration
public static ReadOnlySpan<Vector4>
GetCustomBakeResultsNoCopy
();
Returns
ReadOnlySpan<Vector4>
The unnormalized amount of sky visibility for the input points (in xyz). T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4e685b8ee63 | unity_docs | rendering | Give me an overview of the `CustomRenderTextureUpdateZoneSpace` class in Unity. | CustomRenderTextureUpdateZoneSpace
enumeration
Description
Space in which coordinates are provided for Update Zones.
Additional resources:
CustomRenderTexture
.
Properties
Property
Description
Normalized
Coordinates are normalized. (0, 0) is top left and (1, 1) is bottom right.
Pixel
Coordinates are expresse... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_92fcc7b3e272 | unity_docs | scripting | What is `Search.SearchColumn.getter` in Unity? Explain its purpose and usage. | SearchColumn.getter
public GetterEntry
getter
;
Description
If defined, the getter delegate is used to customize how the search field data is extracted and transformed for display (see
SearchColumn.drawer
). | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e75377d868ef | unity_docs | scripting | In Unity's 'Load SSH keys automatically on macOS', what is 'Before you begin' and how does it work? | Check if you have any existing SSH keys. Refer to the GitHub Docs article,
Checking for existing SSH keys
.
If you don’t have an SSH key:
Create one by following the GitHub Docs article,
Generating a new SSH key
.
Add the new SSH key to your GitHub account, by following the GitHub Docs article,
Adding a new SSH key to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a99d7d60f681 | unity_docs | xr | What are the parameters of `Search.IPropertyDatabaseView.IsPersistableType` in Unity? | Returns bool True if the type can be persisted in the file, false otherwise. Description Returns a boolean indicating if a type can be persisted into the backing file. Only certain types can be persisted in the backing file to survive a domain reload and quitting Unity. However, any type can be stored without backing i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9f4917548802_doc_2 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Destroys the child GameObject and creates a new child GameObject, by loading from resources and instantiating.IHierarchyBehaviour's will be initialized.The child Component to destroy.The path to the resourced asset.Will the instantiated GameObject stay in its world position or be set to local origin.The type of Compone... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_84eae19898a7 | unity_docs | scripting | Give me an overview of the `ForceMode` class in Unity. | ForceMode
enumeration
Description
Use ForceMode to specify how to apply a force using
Rigidbody.AddForce
or
ArticulationBody.AddForce
.
The AddForce function impacts how your GameObject moves by allowing you to define your own force vector, as well as choosing how to apply this force to the GameObject (this Gam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6d81e4784576 | github | scripting | Write a Unity C# XR/VR script for Continuous Movement | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;
using UnityEngine.XR.Interaction.Toolkit;
public class ContinuousMovement : MonoBehaviour
{
public float speed = 1;
public LayerMask groundLayer;
public float gravity = -9.81f;
public float a... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
gh_8b989826f601 | github | scripting | Write a Unity C# UI script for A Job Behaviour Editor | ```csharp
using System.Reflection;
using Gilzoide.UpdateManager.Jobs;
using UnityEditor;
using UnityEngine;
namespace Gilzoide.UpdateManager.Editor
{
[CustomEditor(typeof(AJobBehaviour<>), true)]
[CanEditMultipleObjects]
public class AJobBehaviourEditor : UnityEditor.Editor
{
private GUIStyle T... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_f3cd89fe92ea | unity_docs | scripting | What is `SerializedObject.ApplyModifiedPropertiesWithoutUndo` in Unity? Explain its purpose and usage. | SerializedObject.ApplyModifiedPropertiesWithoutUndo
Declaration
public bool
ApplyModifiedPropertiesWithoutUndo
();
Description
Applies property modifications without registering an undo operation. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3606f6aa6b2e | unity_docs | editor | What are the parameters of `DragAndDrop.AddDropHandler` in Unity? | Description Allow override of the default behavior for the corresponding window. Multiple handlers can be registered on the same window. If a handler returns DragAndDropVisualMode.None the system will check the next handler. Any other results ( DragAndDropVisualMode.Rejected or others DragAndDropVisualMode ) means this... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5673bb4ab04b | unity_docs | ui | In Unity's 'Position element with the layout engine', what is 'Main style properties' and how does it work? | The following are the main style properties:
Flex > Direction
(
flex-direction
in USS): Defines the layout direction the
main-axis
. The default is column and that makes the
main-axis
run from top to bottom.
Flex > Grow
(
flex-grow
in USS): Defines how much an element grows relative to its siblings along the
main-axis
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c8c90c29f29 | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUtility.GetGraphicsFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.GetGraphicsFormat
Declaration
public static
Experimental.Rendering.GraphicsFormat
GetGraphicsFormat
(
TextureFormat
format
,
bool
isSRGB
);
Declaration
public static
Experimental.Rendering.GraphicsF... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_59747ae9f56c | unity_docs | scripting | What is `Device.Application.installMode` in Unity? Explain its purpose and usage. | Application.installMode
public static
ApplicationInstallMode
installMode
;
Description
This has the same functionality as
Application.installMode
. At the moment, the Device Simulator doesn't support simulation of this property. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2a3864614380 | unity_docs | rendering | Explain 'Creating models for animation' in Unity. | This page contains guidance on creating a model for use with Unity’s
Animation System
.
For general best practice guidance on creating all types of models, see
Creating models for optimal performance
. For information on importing a model with animations into Unity, see
Importing a model with humanoid animations or Imp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31efb97ee6f7 | unity_docs | rendering | Show me a Unity C# example demonstrating `Rect.ctor`. | Rect Constructor
Declaration
public
Rect
(float
x
,
float
y
,
float
width
,
float
height
);
Parameters
Parameter
Description
x
The X value the rect is measured from.
y
The Y value the rect is measured from.
width
The width of the rectangle.
height
The height of the rectangle.
Description
Creates a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6b69fbb9e214 | unity_docs | ui | Explain 'Bind to multiple properties with runtime binding' in Unity. | Version
: 6000.0+
This example demonstrates how to bind multiple properties of a data source asset to a UI control in UI Builder.
## Example overview
This example creates a data source asset that contains a Vector3 property and a float property. The float property is a read-only property that returns the sum of the x... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d8e6ace7d3b | unity_docs | performance | What is `Profiling.ProfilerTimeSampleSelection.rawSampleIndex` in Unity? Explain its purpose and usage. | ProfilerTimeSampleSelection.rawSampleIndex
public int
rawSampleIndex
;
Description
The raw index of a sample, i.e. the index as if would be used with
RawFrameDataView
and NOT an Item ID as it would be used with
HierarchyFrameDataView
.
Note: When
HierarchyFrameDataView
uses HierarchyFrameDataView.ViewMode.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09c3fafcbee7 | unity_docs | rendering | Give me an overview of the `TextureImporterNPOTScale` class in Unity. | TextureImporterNPOTScale
enumeration
Description
Scaling mode for non power of two textures in
TextureImporter
.
Additional resources:
TextureImporter.npotScale
.
Properties
Property
Description
None
Keep non power of two textures as is.
ToNearest
Scale to nearest power of two.
ToLarger
Scale to larger pow... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_16fb44f6eace | unity_docs | scripting | What is `GUILayoutUtility` in Unity? Explain its purpose and usage. | GUILayoutUtility
class in
UnityEngine
/
Implemented in:
UnityEngine.IMGUIModule
Description
Utility functions for implementing and extending the GUILayout class.
Use this class to make your own GUI layouting code.
Static Methods
Method
Description
GetAspectRect
Reserve layout space for a rectangle with a sp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_00393c4ba05c | unity_docs | rendering | What is `Rendering.BatchRendererGroup.RemoveBatch` in Unity? Explain its purpose and usage. | BatchRendererGroup.RemoveBatch
Declaration
public void
RemoveBatch
(
Rendering.BatchID
batchID
);
Parameters
Parameter
Description
batchID
Batch ID.
Description
Delete a batch that was previously created with
AddBatch
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb925321a771 | unity_docs | rendering | What is `MaterialPropertyBlock.GetMatrixArray` in Unity? Explain its purpose and usage. | MaterialPropertyBlock.GetMatrixArray
Declaration
public Matrix4x4[]
GetMatrixArray
(string
name
);
Declaration
public Matrix4x4[]
GetMatrixArray
(int
nameID
);
Parameters
Parameter
Description
nameID
The name ID of the property retrieved by
Shader.PropertyToID
.
name
The name of the property.
Descri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5150d6f7610 | unity_docs | scripting | Show me a Unity C# example demonstrating `Sprite.OverrideGeometry`. | le of 3. The vertices connected to the
triangle can be shared by simply indexing into the same vertex.
Sprite UVs are calculated automatically by mapping the provided geometry onto the Sprite's Texture.
The Sprite's mesh type will be changed to
SpriteMeshType.Tight
when the API is called.
Additional resources:
Sprit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9de397352987 | unity_docs | scripting | What is `U2D.SpriteAtlasExtensions.IsIncludeInBuild` in Unity? Explain its purpose and usage. | SpriteAtlasExtensions.IsIncludeInBuild
Declaration
public static bool
IsIncludeInBuild
(
U2D.SpriteAtlas
spriteAtlas
);
Parameters
Parameter
Description
spriteAtlas
Whether the Sprite Atlas is included in the build.
Returns
bool
Returns true if the Sprite Atlas is included in the build.
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2cc74767db08 | unity_docs | scripting | What is `MonoBehaviour.OnAnimatorMove` in Unity? Explain its purpose and usage. | MonoBehaviour.OnAnimatorMove()
Description
Callback for processing animation movements for modifying root motion.
This callback will be invoked at each frame after the state machines and the animations have been evaluated,
but before
OnAnimatorIK
.
Additional resources:
Root motion
.
```csharp
// Attach this sc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f5673f7ea789_doc_2 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | World-space position of the HMD (or main camera position as fallback).
Signature:
```csharp
public Vector3 HeadPosition
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_7c4e20094ee5 | unity_docs | scripting | What is `Media.VideoTrackAttributes.frameRate` in Unity? Explain its purpose and usage. | VideoTrackAttributes.frameRate
public
Media.MediaRational
frameRate
;
Description
Frames per second.
Expressed as a fraction so that rates such as 29.97 (precisely 30000/1001) are represented accurately.
Note
Specifying a 0 or invalid rate (see
MediaRational.isValid
) indicates the video track uses Variable ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_471b6e72330a | unity_docs | math | What is `AndroidJNI.CallStaticBooleanMethodUnsafe` in Unity? Explain its purpose and usage. | AndroidJNI.CallStaticBooleanMethodUnsafe
Declaration
public static bool
CallStaticBooleanMethodUnsafe
(IntPtr
clazz
,
IntPtr
methodID
,
jvalue*
args
);
Description
Invokes the specified
methodID
static method on a Java object, optionally passing in an array of arguments (
args
).
Additional resources:
Jav... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8ca59e8127cf | unity_docs | rendering | What is `MixedLightingMode` in Unity? Explain its purpose and usage. | MixedLightingMode
enumeration
Description
Enum describing what lighting mode to be used with Mixed lights.
Summary of the baked data associated with each mode:
IndirectOnly
Lightmaps
direct: no
occlusion: no
Light probes
direct: no
occlusion: no
Shadowmask
Lightmaps
direct: no
occlusion: yes
Ligh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1970f53c8396 | unity_docs | math | What are the parameters of `Display.Activate` in Unity? | Description Windows platforms only. Activates an external display with a specific width, height and refresh rate. For example, a secondary monitor connected to the system. This method only works fully on Windows platforms. If you use this method on Linux or macOS platforms, the display uses the screen width and height.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c3028d7c8c7 | unity_docs | editor | What is `Search.SearchPropositionOptions` in Unity? Explain its purpose and usage. | SearchPropositionOptions
class in
UnityEditor.Search
Description
Search proposition options are used define how search propositions are fetched and displayed.
Properties
Property
Description
flags
Flags used to drive how the search propositions should be fetched and displayed. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_837191a2afd9 | unity_docs | scripting | In Unity's 'Create prefabs', what is 'Replace a prefab asset' and how does it work? | You can replace a prefab asset with a GameObject or
prefab instance
that’s in the
Hierarchy window
. To replace a prefab asset:
Select the GameObject or prefab in the Hierarchy window.
Drag it on top of an existing prefab asset in the Project window.
If the contents of the GameObject or prefab instance differ from the ... | 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.