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_c69d7afa7ccf | unity_docs | scripting | Show me a Unity C# example demonstrating `FilterMode.Bilinear`. | FilterMode.Bilinear
Description
Bilinear filtering - texture samples are averaged.
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 fi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b49e2a0fba03 | unity_docs | physics | In Unity's 'Introduction to Wheel colliders', what is 'Wheel collider visualization' and how does it work? | When you select a Wheel collider, the
Scene view
displays a gizmo which provides a visualization of some key Wheel collider properties.
The gizmo’s visual indicators are as follows:
Large 2D circle: Represents the size of the physics wheel. To change the size, use the Wheel collider’s Radius property.
Horizontal green ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_462b1e52f7a7 | unity_docs | rendering | What is `Texture.streamingMipmapUploadCount` in Unity? Explain its purpose and usage. | Texture.streamingMipmapUploadCount
public static ulong
streamingMipmapUploadCount
;
Description
How many times has a Texture been uploaded due to Texture mipmap streaming.
Each time the streaming system decides that a different mipmap level should be loaded for a Texture, a new read and upload is scheduled. Thi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_34452329691b | github | scripting | Write a Unity C# UI script for Canvas Loader | ```csharp
using UnityEngine;
public class CanvasLoader : MonoBehaviour
{
public void enableCanvas(GameObject InfoCanvas)
{
InfoCanvas.SetActive(true);
}
public void disableCanvas(GameObject InfoCanvas)
{
InfoCanvas.SetActive(false);
}
}
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_dbb3bb0f6137 | unity_docs | rendering | What is `Mesh.GetUVDistributionMetric` in Unity? Explain its purpose and usage. | Mesh.GetUVDistributionMetric
Declaration
public float
GetUVDistributionMetric
(int
uvSetIndex
);
Parameters
Parameter
Description
uvSetIndex
UV set index to return the UV distibution metric for. 0 for first.
Returns
float
Average of triangle area / uv area.
Description
The UV distribution metric can... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35305706dccd | unity_docs | physics | What is `Rigidbody.mass` in Unity? Explain its purpose and usage. | Rigidbody.mass
public float
mass
;
Description
The mass of the rigidbody.
Different Rigidbodies with large differences in mass can make the physics simulation unstable.
Higher mass objects push lower mass objects more when colliding. Think of a big truck, hitting a small car.
A common mistake is to assume that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9fd7a1422901 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.RGBA_ASTC8X8_SRGB` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.RGBA_ASTC8X8_SRGB
Description
A four-component, ASTC compressed format where each 128-bit compressed texel block encodes an 8×8 rectangle of unsigned normalized RGBA texel data with sRGB nonlinear encoding applied ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3f2840409169 | unity_docs | rendering | What is `Graphics.CopyBuffer` in Unity? Explain its purpose and usage. | Graphics.CopyBuffer
Declaration
public static void
CopyBuffer
(
GraphicsBuffer
source
,
GraphicsBuffer
dest
);
Parameters
Parameter
Description
source
The source buffer.
dest
The destination buffer.
Description
Copies the contents of one
GraphicsBuffer
into another.
The GPU copies the buffer conte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f46b15188eda | unity_docs | rendering | What is `ParticleSystemRenderer.meshDistribution` in Unity? Explain its purpose and usage. | ParticleSystemRenderer.meshDistribution
public
ParticleSystemMeshDistribution
meshDistribution
;
Description
Specifies how the system randomly assigns meshes to particles.
Additional resources:
ParticleSystemRenderer.renderMode
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c8cc5e777b08 | unity_docs | editor | What is `Device.SystemInfo.processorManufacturer` in Unity? Explain its purpose and usage. | SystemInfo.processorManufacturer
public static string
processorManufacturer
;
Description
This has the same functionality as
SystemInfo.processorManufacturer
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7770854ffd25 | unity_docs | scripting | What is `Camera.eventMask` in Unity? Explain its purpose and usage. | Camera.eventMask
public int
eventMask
;
Description
Mask to select which layers can trigger events on the camera.
Just as the camera's
cullingMask
determines if the camera is able to see the
GameObject
, the event mask determines whether the
GameObject
is able to receive mouse events.
Only objects visible... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6284bd24060e | unity_docs | editor | What is `Unity.Profiling.Editor.ProfilerModuleViewController.ProfilerWindow` in Unity? Explain its purpose and usage. | ProfilerModuleViewController.ProfilerWindow
protected
ProfilerWindow
ProfilerWindow
;
Description
The Profiler window that the view controller belongs to.
use this property to subscribe to Profiler window events in a view controller, such as
ProfilerWindow.SelectedFrameIndexChanged
.
A
ProfilerWindow
. Read... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b43396e1c2c3 | unity_docs | rendering | In Unity's 'Application patching', what is 'From the Editor' and how does it work? | To patch an application from the Unity Editor:
Open the
Build Profiles
window (menu:
File
>
Build Profiles
).
From the list of platforms in the Platforms panel, select Android or
create a build profile
for the Android platform.
In the
Platform Settings
section, enable
Development Build
.
In the
Build to Device
setting,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5678ab072cd4 | unity_docs | rendering | In Unity's 'Unity Editor command line arguments reference', what is 'Batch mode arguments' and how does it work? | Use the following arguments to configure Unity’s batch mode. Batch mode enables Unity to run predefined tasks without user input, which makes batch mode useful for automated tasks like testing.
Important:
Unless subject to separate Commercial Terms with Unity, using Unity in batch mode is subject to Unity’s Terms of Se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_04b19c3d2845 | unity_docs | scripting | What are the parameters of `LightTransport.RadeonRaysContext.WriteBuffer` in Unity? | Description Write data into the memory buffer allocated by the context. This is an asynchronous operation. Pass an EventID created with IDeviceContext.CreateEvent to track the completion status, if desired. The WriteBuffer method returns immediately after enqueuing the command in the context. Note: EventID is single-us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f1f157bcc776 | unity_docs | scripting | What is `Experimental.GraphView.PlacematContainer.RemoveAllPlacemats` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
PlacematContainer.RemoveAllPlacemats
Declaration
public void
RemoveAllPlacemats
();
Description
Removes the placemats in this PlacematContainer. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_741d265cb815 | unity_docs | physics | What is `Tilemaps.TilemapCollider2D.maximumTileChangeCount` in Unity? Explain its purpose and usage. | TilemapCollider2D.maximumTileChangeCount
public uint
maximumTileChangeCount
;
Description
Maximum number of Tile Changes accumulated before doing a full collider rebuild instead of an incremental rebuild.
Change this if incremental rebuilds are slow for the number of Tile Changes accumulated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e24162b78940 | unity_docs | scripting | What is `GUILayout.MinWidth` in Unity? Explain its purpose and usage. | GUILayout.MinWidth
Declaration
public static
GUILayoutOption
MinWidth
(float
minWidth
);
Description
Option passed to a control to specify a minimum width.
Note:
This option will override the Automatic width Layout parameter
Minimum allowed width for a Window.
```csharp
using UnityEngine;public class Exam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2f073947096f | unity_docs | scripting | Explain 'Recommended Player settings to optimize your Web build' in Unity. | Use the following recommended Player settings to optimize your builds for the Unity Web platform.
## Player settings quick reference
Find these settings under
Edit
>
Project settings
>
Player
. For more information on each setting, refer to the details in
Player settings
.
Setting
Recommended Setting Description API ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65181cf53ae1 | unity_docs | physics | Show me a Unity C# example demonstrating `Rigidbody.WakeUp`. | Rigidbody.WakeUp
Declaration
public void
WakeUp
();
Description
Forces a rigidbody to wake up.
For more information about
Rigidbody
sleeping, refer to the
Rigidbody overview
.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
private float fallTime;
private Rigidbody rbGO;
private... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e8dc3536720b | unity_docs | editor | Explain 'Command events' in Unity. | Command events are sent to allow the Unity Editor to forward top-level menu actions to the Editor UI, as well as their equivalent keyboard shortcuts.
The following are the available commands:
Copy Cut Paste Delete DeselectAll SoftDelete Duplicate FrameSelected FrameSelectedWithLock SelectAll Find FocusProjectWindow Eve... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ac24ef9d477d | unity_docs | rendering | What is `U2D.SpriteAtlasPackingSettings.blockOffset` in Unity? Explain its purpose and usage. | SpriteAtlasPackingSettings.blockOffset
public int
blockOffset
;
Description
Block offset to use while packing.
To avoid compression artifacts in certain texture compression formats, pixels of each Sprite in the Sprite Atlas cannot share a block (block size is determined by the Block Offset). | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1a53153eda0 | unity_docs | rendering | Show me a Unity C# example demonstrating `Experimental.Rendering.IScriptableRuntimeReflectionSystem`. | Experimental
: this API is experimental and might be changed or removed in the future.
IScriptableRuntimeReflectionSystem
interface in
UnityEngine.Experimental.Rendering
Description
Defines the required members for a Runtime Reflection Systems.
You can use the empty implementation as base class, see
ScriptableR... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0380ad4b9fcc | unity_docs | scripting | Show me a Unity C# example demonstrating `Assertions.Assert.IsFalse`. | Assert.IsFalse
Declaration
public static void
IsFalse
(bool
condition
);
Declaration
public static void
IsFalse
(bool
condition
,
string
message
);
Parameters
Parameter
Description
condition
true
or
false
.
message
The string used to describe the result of the
Assert
.
Description
Return
true
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d5c94bfcc88c | unity_docs | scripting | In Unity's 'Upgrade an asset package for the Asset Store', what is 'Publish an upgrade' and how does it work? | To apply an upgrade to a package on the Asset Store:
Open the
Asset Store Publisher Portal
.
Select the Upgrades tab.
Select
Create a paid upgrade
.
Select the upgrade
Type
.
Select the package to upgrade from and to.
Set a Price for the package upgrade.
Select
Create Upgrade
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f29df5027f7c | unity_docs | xr | What is `XR.XRDisplaySubsystem.XRRenderPass.renderTarget` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.XRRenderPass.renderTarget
public
Rendering.RenderTargetIdentifier
renderTarget
;
Description
The output target for the render pass.
This a resource owned directly by the XR Display and is only valid this frame. Can be a texture array. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6dc21c1a3964 | unity_docs | scripting | What is `UIElements.IEventHandler.HasBubbleUpHandlers` in Unity? Explain its purpose and usage. | IEventHandler.HasBubbleUpHandlers
Declaration
public bool
HasBubbleUpHandlers
();
Returns
bool
True if the object has event handlers for the BubbleUp phase.
Description
Returns true if event handlers for the event propagation BubbleUp phase, have been attached to this object. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c6b1bedc48a5 | unity_docs | xr | What is `Mesh.indexBufferTarget` in Unity? Explain its purpose and usage. | Mesh.indexBufferTarget
public
GraphicsBuffer.Target
indexBufferTarget
;
Description
The intended target usage of the Mesh GPU index buffer.
By default, Mesh index buffers have
GraphicsBuffer.Target.Index
usage target. If you want to access
the mesh index buffer from a compute shader, additional targets nee... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3a2fe6e7f6a0 | unity_docs | scripting | Give me an overview of the `Cache` class in Unity. | Cache
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Data structure for cache. For more information, see
Caching.AddCache
.
**Note:** The Cache API is not supported in WebGL because AssetBundles are stored in the browser cache for the WebGL platform.
Properties
Property
Descripti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7bc0f3c1a95d | unity_docs | math | What is `Mathf.Sin` in Unity? Explain its purpose and usage. | Mathf.Sin
Declaration
public static float
Sin
(float
f
);
Parameters
Parameter
Description
f
The input angle, in radians.
Returns
float
The return value between -1 and +1.
Description
Returns the sine of angle
f
.
Note:
If using very large numbers with this function, there is an acceptable range ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35591c75471a | unity_docs | physics | What is `AreaEffector2D.drag` in Unity? Explain its purpose and usage. | AreaEffector2D.drag
public float
drag
;
Description
The linear drag to apply to rigid-bodies.
The
drag
coefficient is applied in addition to the standard
Rigidbody2D
drag coefficient to provide additional drag in the effector area. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7d5222a11faa | unity_docs | rendering | In Unity's 'Rendering Profiler module reference', what is 'Availability in Players' and how does it work? | The Rendering module
Profiler counters
are also available in Players. Use the
ProfilerRecorder API
to access Render Profiler module information in Players. High level counters are also available in Release Player.
The following example contains a simple script that collects
SetPass Calls Count
,
Draw Calls Count and Ve... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_58d09760cef8 | unity_docs | ui | What is `UIElements.MultiColumnController.MakeItem` in Unity? Explain its purpose and usage. | MultiColumnController.MakeItem
Declaration
public
UIElements.VisualElement
MakeItem
();
Returns
VisualElement
A VisualElement for the row.
Description
Creates a VisualElement to use in the virtualization of the collection view.
It will create a cell for every visible column. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c373de714fb8_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Base settings singleton class for
Signature:
```csharp
public abstract class BaseFieldSearchSettings : ScriptableObject
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_2cd6fd0db542 | unity_docs | scripting | What is `Unity.Properties.PropertyPath.FromPart` in Unity? Explain its purpose and usage. | PropertyPath.FromPart
Declaration
public static
Unity.Properties.PropertyPath
FromPart
(ref
Unity.Properties.PropertyPathPart
part
);
Parameters
Parameter
Description
part
The <see cref="PropertyPathPart" />
Returns
PropertyPath
A new
PropertyPath
Description
Returns a new
PropertyPath
from the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7628825b3ec | unity_docs | scripting | What is `RectTransform.GetWorldCorners` in Unity? Explain its purpose and usage. | RectTransform.GetWorldCorners
Declaration
public void
GetWorldCorners
(Vector3[]
fourCornersArray
);
Parameters
Parameter
Description
fourCornersArray
The array that corners are filled into.
Description
Get the corners of the calculated rectangle in world space.
Each corner provides its world space value.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fc7fe14a89f7 | unity_docs | physics | What is `LowLevelPhysics.SphereGeometry` in Unity? Explain its purpose and usage. | SphereGeometry
struct in
UnityEngine.LowLevelPhysics
/
Implemented in:
UnityEngine.PhysicsModule
Implements interfaces:
IGeometry
Description
Contains the basic geometric shape of a sphere.
Properties
Property
Description
GeometryType
Returns the geometry type of this shape, which is SphereGeometry.
Radius... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c172f42b56be | unity_docs | scripting | What is `ExposedReference_1` in Unity? Explain its purpose and usage. | ExposedReference<T0>
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Creates a type whos value is resolvable at runtime.
ExposedReference is a generic type that can be used to create references to Scene objects and resolve their actual values at runtime and by using a context object. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e1ada71d080 | unity_docs | editor | What is `Search.AssetIndexChangeSet` in Unity? Explain its purpose and usage. | AssetIndexChangeSet
struct in
UnityEditor.Search
Description
Defines a set of changes that happens in order to update a search asset index.
See
SearchMonitor
for how this structure is used.
Properties
Property
Description
all
Enumerate all changes.
empty
Indicates if the changeset is empty.
removed
Enumer... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_74e749daeed7 | unity_docs | scripting | What is `PlayerSettings.SetApplicationIdentifier` in Unity? Explain its purpose and usage. | PlayerSettings.SetApplicationIdentifier
Declaration
public static void
SetApplicationIdentifier
(
Build.NamedBuildTarget
buildTarget
,
string
identifier
);
Obsolete
Use SetApplicationIdentifier(NamedBuildTarget buildTarget, string identifier) instead.
Declaration
public static void
SetApplicationIdentifie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2ff712f583c5 | unity_docs | math | Explain 'Recommended Quality settings to optimize your Web build' in Unity. | Use the following recommended Quality settings to optimize your builds for the Unity Web platform.
Configure the following recommended settings in
Edit
>
Project Settings
>
Quality
. For more information on these settings, refer to
Quality
.
## Quality Level
The Quality settings contain a group of possible
Quality Le... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d6ce65127c57 | unity_docs | scripting | What is `TerrainWizard.ResetDefaults` in Unity? Explain its purpose and usage. | TerrainWizard.ResetDefaults
Declaration
public void
ResetDefaults
(
Terrain
terrain
);
Parameters
Parameter
Description
terrain
The Terrain object.
Description
Initializes the terrain wizard defaults. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_159b4b721659 | unity_docs | scripting | What is `Experimental.GraphView.GraphViewEditorWindow` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphViewEditorWindow
class in
UnityEditor.Experimental.GraphView
/
Inherits from:
EditorWindow
Description
Abstract base class for an editor window that contains a GraphView.
Use this base class for a GraphView tool window ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f15300306e14_doc_0 | github | scripting | What does `StreamlineStackTrace` do in this Unity script? Explain its purpose and signature. | Returns a smaller, easier-to-read-in-VR stack trace
Signature:
```csharp
public static string StreamlineStackTrace(string stackTrace)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_a633a32081b2 | unity_docs | rendering | Show me a Unity code example for 'Example of a DOTS Instancing shader that accesses constant data in URP'. | is not set, the accessor macros that fall back to defaults don’t access
unity_DOTSInstanceData
. This means that:
c0
will contain the value from unity_DOTSInstanceData address
0x1000
.
c1
will contain the value of the regular material property Color , and cause a compile error if the Color property doesn’t exist.
c2
wi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_710ef052074c | unity_docs | editor | In Unity's 'Project window reference', what is 'Search filters' and how does it work? | Search filters work by adding an extra term in the search text. A term beginning with
t:
filters by the specified asset type, while
l:
filters by label. You can type these terms directly into the search box rather than use the menu if you know what you are looking for. You can search for more than one type or label at ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a367d88316d7 | unity_docs | performance | Show me a Unity C# example demonstrating `Unity.Profiling.ProfilerRecorder.Reset`. | ProfilerRecorder.Reset
Declaration
public void
Reset
();
Description
Stops data collection and clears collected samples.
Sets
Count
to 0 and
WrappedAround
to false and stops collection.
```csharp
using Unity.Profiling;
using UnityEngine;public class ExampleScript : MonoBehaviour
{
ProfilerRecorder recorde... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_359e5e8b6082 | unity_docs | scripting | What is `MonoBehaviour.OnGUI` in Unity? Explain its purpose and usage. | MonoBehaviour.OnGUI()
Description
OnGUI is called for rendering and handling GUI events.
OnGUI is the only function that can implement the
"Immediate Mode" GUI (IMGUI)
system for rendering and handling GUI events. Your OnGUI implementation might be called several times per frame (one call per event). For more in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c6d91d43b279 | unity_docs | editor | What is `EditorGUILayout.EndHorizontal` in Unity? Explain its purpose and usage. | EditorGUILayout.EndHorizontal
Declaration
public static void
EndHorizontal
();
Description
Close a group started with BeginHorizontal.
Additional resources:
EditorGUILayout.BeginHorizontal
Horizontal Compound group.
```csharp
using UnityEngine;
using UnityEditor;// Create a Horizontal Compound Buttonpublic c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8d593f581973 | unity_docs | input | Show me a Unity C# example demonstrating `WebGLInput.mobileKeyboardSupport`. | bGLInput.mobileKeyboardSupport
public static bool
mobileKeyboardSupport
;
Description
Enable mobile keyboard support for UI input fields.
This property determines whether to enable mobile keyboard support for UI input fields. If this is enabled (default), the browser's soft keyboard will be requested when selec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4c35107ddd96 | unity_docs | rendering | Show me a Unity C# example demonstrating `Mesh.GetBlendShapeBuffer`. | information, see
BlendShapeBufferLayout.PerShape
and
BlendShapeBufferLayout.PerVertex
. Compute shader support is required to access this buffer.
The version of this function that takes no parameter is equivalent to calling it with
BlendShapeBufferLayout.PerShape
as argument.
Mesh.isReadable
does not need to be
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_41367f751582 | unity_docs | rendering | What is `ShaderInfo` in Unity? Explain its purpose and usage. | ShaderInfo
struct in
UnityEditor
Description
Contains the following information about a shader:
-If the shader has compilation errors or warnings.
-If the shader is supported on the currently selected platform.
-The name of the shader.
Properties
Property
Description
hasErrors
Indicates whether the shader has ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dd6312ff5d8f | unity_docs | physics | What is `HingeJoint.motor` in Unity? Explain its purpose and usage. | HingeJoint.motor
public
JointMotor
motor
;
Description
The motor will apply a force up to a maximum force to achieve the target velocity in degrees per second.
The motor tries to reach
JointMotor.targetVelocity
angular velocity in degrees per second.
The motor will only be able to reach
targetVelocity
, i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5fcfe9f8e877 | unity_docs | editor | What is `MonoImporter.GetScript` in Unity? Explain its purpose and usage. | MonoImporter.GetScript
Declaration
public
MonoScript
GetScript
();
Returns
MonoScript
Returns the imported script.
Description
Gets the imported
MonoScript
. If the imported C# file contains multiple classes, the first is returned.
```csharp
using UnityEngine;
using UnityEditor;class Example
{
[MenuIt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cfba215e1212 | unity_docs | editor | What are the parameters of `EditorUtility.OpenPropertyEditor` in Unity? | Description Open properties editor for an Object. Opens an Inspector-like window to show and edit the properties of an Object. ```csharp
using UnityEditor;
using UnityEngine;public class EditorUtilityOpenPropertyEditor
{
[MenuItem("Examples/OpenPropertyEditor")]
public static void OpenSceneProperties()
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad924e3fba58 | unity_docs | rendering | What is `ParticleSystem.LightsModule.range` in Unity? Explain its purpose and usage. | ParticleSystem.LightsModule.range
public
ParticleSystem.MinMaxCurve
range
;
Description
Define a curve to apply custom range scaling to particle Lights.
Additional resources:
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;// For best results, use Deferred Rendering (see Camera settings... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b65146abde6f | unity_docs | ui | Show me a Unity code example for 'Toggle'. | mera Inspector
. It displays additional options when you activate
Physical Camera
mode.
Note
: To align an element with other fields in an Inspector window, simply apply the.unity-base-field__aligned
USS class to it. For more information, refer to
BaseField
.
## Create a Toggle
You can create a Toggle with UI Builder... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2819c1f69c24 | unity_docs | rendering | What is `ParticleSystem.SubEmittersModule.SetSubEmitterEmitProbability` in Unity? Explain its purpose and usage. | ParticleSystem.SubEmittersModule.SetSubEmitterEmitProbability
Declaration
public void
SetSubEmitterEmitProbability
(int
index
,
float
emitProbability
);
Parameters
Parameter
Description
index
The index of the sub-emitter you want to modify.
emitProbability
The probability value.
Description
Sets the pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c20045c86a85 | unity_docs | scripting | What is `GUISkin.verticalScrollbar` in Unity? Explain its purpose and usage. | GUISkin.verticalScrollbar
public
GUIStyle
verticalScrollbar
;
Description
Style used by default for the background part of
GUI.VerticalScrollbar
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the default background of the
// vertical scrollbar of the current... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7d140eaa7e3e | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.Action` in Unity? Explain its purpose and usage. | Action
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseElement
Description
The C# definition of the
<action>
Android Manifest element.
For more information about the element, see Android's documentation:
Action element
Properties
Property
Description
Attributes... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6db3af444341 | unity_docs | rendering | What is `AssetDatabase.AddObjectToAsset` in Unity? Explain its purpose and usage. | AssetDatabase.AddObjectToAsset
Declaration
public static void
AddObjectToAsset
(
Object
objectToAdd
,
string
path
);
Parameters
Parameter
Description
objectToAdd
Object to add to the existing asset.
path
Project relative path to the destination asset.
Description
Adds
objectToAdd
to an existing asset... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8424223df98a | unity_docs | input | What is `Terrain.GetClosestReflectionProbes` in Unity? Explain its purpose and usage. | Terrain.GetClosestReflectionProbes
Declaration
public void
GetClosestReflectionProbes
(List<ReflectionProbeBlendInfo>
result
);
Parameters
Parameter
Description
result
[in / out] A list to hold the returned reflection probes and their weights. See
ReflectionProbeBlendInfo
.
Description
Fills the list with... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d71ed894e7a | unity_docs | rendering | What is `Mesh.GetNativeVertexBufferPtr` in Unity? Explain its purpose and usage. | Mesh.GetNativeVertexBufferPtr
Declaration
public IntPtr
GetNativeVertexBufferPtr
(int
index
);
Parameters
Parameter
Description
index
Which vertex buffer to get (some Meshes might have more than one). See
vertexBufferCount
.
Returns
IntPtr
Pointer to the underlying graphics API vertex buffer.
Descri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0705f01507f1 | unity_docs | scripting | Show me a Unity C# example demonstrating `Font.HasCharacter`. | asCharacter
(char
c
);
Parameters
Parameter
Description
c
The character to check for.
Returns
bool
Whether or not the font has the character specified.
Description
Does this font have a specific character?
This function checks whether the font has a particular character defined. Some fonts do not have ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_222d490a4380 | unity_docs | math | What is `ScriptableWizard.OnWizardUpdate` in Unity? Explain its purpose and usage. | ScriptableWizard.OnWizardUpdate()
Description
This is called when the wizard is opened or whenever the user changes something in the wizard.
This allows you to set the
helpString
,
errorString
and enable/disable the Create button via
isValid
.
Also it lets you change labels (for timers i.e.) or buttons when the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6aa3b0bf38a4 | unity_docs | ui | What is `Experimental.GraphView.GraphView.contentViewContainer` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.contentViewContainer
public
UIElements.VisualElement
contentViewContainer
;
Description
Main content container. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a8e9fa639d5 | unity_docs | ui | What is `UIElements.VisualElement.FindAncestorUserData` in Unity? Explain its purpose and usage. | VisualElement.FindAncestorUserData
Declaration
public object
FindAncestorUserData
();
Description
Searches up the hierarchy of this VisualElement and retrieves stored userData, if any is found.
This ignores the current userData and returns the first parent's non-null userData. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_44bf28e44874_doc_3 | github | scripting | What does `SetUseTheme` do in this Unity script? Explain its purpose and signature. | Define if this element should use the theme managerTrue to use theme manager
Signature:
```csharp
public void SetUseTheme(bool enable = true)
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_54eca8fb8a14 | unity_docs | scripting | What is `Experimental.Rendering.SceneStateHash.skySettingsHash` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
SceneStateHash.skySettingsHash
public
Hash128
skySettingsHash
;
Description
A hash representing the settings of the sky. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cdb55bcb90ef | unity_docs | rendering | What is `Search.TextCursorPlacement.MoveLineStart` in Unity? Explain its purpose and usage. | TextCursorPlacement.MoveLineStart
Description
Move the cursor to the beginning of the line of text.
```csharp
[MenuItem("Examples/ISearchView/SetSearchText_WithCursorPosition")]
public static void SetSearchText_WithCursorPosition()
{
var view = SearchService.ShowContextual("asset");
view.SetSearchText("t:material... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ff0dcf0751b0 | unity_docs | editor | In Unity's 'Set background images', what is 'Set background images with an image asset' and how does it work? | You can use an imported or built-in image asset to set a background image. When you set the background image, you must select a supported background image type:
Textures Sprites Render textures
SVG Vector images
Note
:
To use an SVG image as a background image, you must
install the
com.unity.vectorgraphics
package
.
Wh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ede043661ae5 | unity_docs | ui | What is `UIElements.ToggleButtonGroupState.GetInactiveOptions` in Unity? Explain its purpose and usage. | ToggleButtonGroupState.GetInactiveOptions
Declaration
public Span<int>
GetInactiveOptions
(Span<int>
inactiveOptionsIndices
);
Parameters
Parameter
Description
inactiveOptionsIndices
A Span of type integers with the allocated size to hold the number of inactive indices.
Description
Retrieves a Span of int... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_116f6f5aeca6 | unity_docs | performance | What is `Unity.Profiling.ProfilerMarker.Handle` in Unity? Explain its purpose and usage. | ProfilerMarker.Handle
public IntPtr
Handle
;
Description
Gets native handle of the
ProfilerMarker
.
Use
Handle
to obtain a native marker handle and extend funtionality of
ProfilerMarker
.
```csharp
using System.Diagnostics;
using System.Runtime.CompilerServices;
using Unity.Collections.LowLevel.Unsafe;
usi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93cfe2795aa8 | unity_docs | rendering | What is `Terrain.heightmapRenderTextureFormat` in Unity? Explain its purpose and usage. | Terrain.heightmapRenderTextureFormat
public static
RenderTextureFormat
heightmapRenderTextureFormat
;
Description
RenderTextureFormat of the terrain heightmap.
Additional resources:
RenderTextureFormat
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_91547afb681c | unity_docs | performance | What is `Search.ParsedQuery_2.Optimize` in Unity? Explain its purpose and usage. | ParsedQuery<T0,T1>.Optimize
Declaration
public void
Optimize
(bool
propagateNotToLeaves
,
bool
swapNotToRightHandSide
);
Declaration
public void
Optimize
(
Search.QueryGraphOptimizationOptions
options
);
Parameters
Parameter
Description
propagateNotToLeaves
Propagate "Not" operations to leaves, so onl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_30b0b9545164 | unity_docs | scripting | What is `MeshFilter` in Unity? Explain its purpose and usage. | MeshFilter
class in
UnityEngine
/
Inherits from:
Component
/
Implemented in:
UnityEngine.CoreModule
Description
A class to access the
Mesh
of the
mesh filter
.
Use this with a procedural mesh interface. Additional resources:
Mesh
class.
Properties
Property
Description
mesh
Returns either a new mesh ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c98b06d5e78a | unity_docs | scripting | In Unity's 'Set up your Render Texture to display video', what is 'Prepare your Render Texture for video' and how does it work? | To optimize your Render Texture for use with video content:
Click on your Render Texture to open the Inspector window.
Make sure the resolution of the Render Texture matches the resolution of your video content.
Set
Anti-aliasing to None
.
Set
Color Format to R8G8B8A8_UNORM
. If you notice excessive banding with your R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e7882d474873 | unity_docs | rendering | What is `EditorUtility.CompressTexture` in Unity? Explain its purpose and usage. | EditorUtility.CompressTexture
Declaration
public static void
CompressTexture
(
Texture2D
texture
,
TextureFormat
format
,
int
quality
);
Declaration
public static void
CompressTexture
(
Texture2D
texture
,
TextureFormat
format
,
TextureCompressionQuality
quality
);
Description
Compress a textur... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c81ea0a09632 | unity_docs | input | What is `Touch.radiusVariance` in Unity? Explain its purpose and usage. | Touch.radiusVariance
public float
radiusVariance
;
Description
This value determines the accuracy of the touch radius. Add this value to the radius to get the maximum touch size, subtract it to get the minimum touch size.
Android
: Returns 0 for the majority of devices. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_53f0d613addb | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.ExportPackage`. | array of asset paths to export.
fileName
The file path to create a new unitypackage file at.
flags
Options for how Unity exports a package.
assetPathName
The path of an asset to export.
Description
Exports the assets identified by
assetPathNames
to a unitypackage file in
fileName
.
Additional resources:
Ex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2da55d309728 | unity_docs | ui | Show me a Unity C# example demonstrating `GUISkin.verticalScrollbarDownButton`. | GUISkin.verticalScrollbarDownButton
public
GUIStyle
verticalScrollbarDownButton
;
Description
Style used by default for the down button on
GUI.VerticalScrollbar
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the vertical scrollbar
// down button of the curre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f4323b6678dc | unity_docs | xr | In Unity's 'Collect asset loading metrics', what is 'Development build requirement' and how does it work? | The AsyncReadManagerMetrics class is only available in
development builds
. To ensure compatibility, wrap calls to AsyncReadManagerMetrics APIs in an
#if
preprocessor directive using the ENABLE_PROFILER symbol. For older Unity versions, use the UNITY_2020_2_OR_NEWER symbol to remove the metric code. For example:
```
#i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff124d0c29ac | unity_docs | physics | Show me a Unity C# example demonstrating `Collision.body`. | Collision.body
public
Component
body
;
Description
The
Rigidbody
or
ArticulationBody
of the collider that your
Component
collides with (Read Only).
This returns the
Rigidbody
or
ArticulationBody
of the collider that your
Component
collides with. If the collider doesn't have a rigid or articulation... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bcd5beb040a5 | unity_docs | ui | What is `Experimental.GraphView.IconBadge.target` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
IconBadge.target
protected
UIElements.VisualElement
target
;
Description
Target element to which this badge is attached. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_abdf66b85021 | unity_docs | rendering | Explain 'Group commands with the Category block' in Unity. | Use the Category block to group commands that set the render state, so that you can “inherit” the grouped rendering state within the block.
For example, your Shader object might have multiple SubShaders , each of which requires blending set to additive. You can use the Category block for that:
```
Shader "example" {
Ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_71e5b2bc9ec9 | unity_docs | physics | Give me an overview of the `JointLimitState2D` class in Unity. | JointLimitState2D
enumeration
Description
Represents the state of a joint limit.
Additional resources:
DistanceJoint2D
,
HingeJoint2D
,
SliderJoint2D
.
Properties
Property
Description
Inactive
Represents a state where the joint limit is inactive.
LowerLimit
Represents a state where the joint limit is at th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_35658c6158ac | unity_docs | xr | Explain 'AR feature set' in Unity. | Unity provides powerful
augmented reality
(AR) tools to create rich, engaging augmented reality experiences that intelligently interact with the real world. Unity’s AR feature set
provides a starting point for augmented reality development, spanning from head-mounted displays to mobile.
## Getting started
Unity’s AR ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3708fa1e837b | unity_docs | scripting | What is `PropertyDrawer.OnGUI` in Unity? Explain its purpose and usage. | PropertyDrawer.OnGUI
Declaration
public void
OnGUI
(
Rect
position
,
SerializedProperty
property
,
GUIContent
label
);
Parameters
Parameter
Description
position
Rectangle on the screen to use for the property GUI.
property
The SerializedProperty to make the custom GUI for.
label
The label of this ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d83ecf84c046 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormatUtility.IsDepthStencilFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.IsDepthStencilFormat
Declaration
public static bool
IsDepthStencilFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Description
Returns true if the format is a depth or stencil format. Returns f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_11ba737db537 | unity_docs | physics | What is `StatusQueryOptions.ForceUpdate` in Unity? Explain its purpose and usage. | StatusQueryOptions.ForceUpdate
Description
Force a refresh of the version control system status of the file. This is slow but accurate.
Additional resources:
AssetDatabase.IsOpenForEdit
,
AssetDatabase.IsMetaFileOpenForEdit
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9ae8be79f14a | unity_docs | physics | Show me a Unity C# example demonstrating `QueryTriggerInteraction.Ignore`. | QueryTriggerInteraction.Ignore
Description
Queries never report Trigger hits.
```csharp
//Create two GameObjects (e.g. a Cube) and place them near each other. Attach this script to one of them.
//Click on the GameObject with the script. Attach the other GameObject to the “My Game Object” field in the Inspector.
//M... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a5889bb29b1c_doc_13 | github | scripting | What does `FloodFill` do in this Unity script? Explain its purpose and signature. | This is not supported but it should floodfill GameObjects starting from a given position within the selected layers.Grid used for layout.Target of the flood fill operation. By default the currently selected GameObject.Starting position of the flood fill.
Signature:
```csharp
public override void FloodFill(GridLayout g... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_b79aac3aa329 | unity_docs | scripting | What is `Unity.IO.LowLevel.Unsafe.FileHandle` in Unity? Explain its purpose and usage. | FileHandle
struct in
Unity.IO.LowLevel.Unsafe
/
Implemented in:
UnityEngine.CoreModule
Description
A handle to an asynchronously opened file.
Opening a file with
AsyncReadManager.OpenFileAsync
returns a FileHandle instance. You can use this handle to check the status of the asynchronous open operation.
Use
A... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4632ff9b4772 | unity_docs | scripting | Show me a Unity C# example demonstrating `Selection.GetTransforms`. | lable modes.
Returns
Transform[]
The transforms of the selected objects determined by the
mode
.
Description
Retrieves the transforms of selected objects.
Retrieves the transform of the current Editor selection after applying the provided
SelectionMode
flags. You can use this to iterate through relevant sce... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_90e21afdc6da | unity_docs | rendering | What is `MaterialEditor.TextureScaleOffsetProperty` in Unity? Explain its purpose and usage. | MaterialEditor.TextureScaleOffsetProperty
Declaration
public float
TextureScaleOffsetProperty
(
Rect
position
,
MaterialProperty
property
);
Declaration
public float
TextureScaleOffsetProperty
(
Rect
position
,
MaterialProperty
property
,
bool
partOfTexturePropertyControl
);
Parameters
Parameter
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b665c8afe77 | unity_docs | input | What is `Event` in Unity? Explain its purpose and usage. | Event
class in
UnityEngine
/
Implemented in:
UnityEngine.IMGUIModule
Description
A UnityGUI event.
Events correspond to user input (key presses, mouse actions), or are UnityGUI layout or rendering events.
For each event
OnGUI
is called in the scripts; so OnGUI is potentially
called multiple times per frame.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b6a51e66843 | unity_docs | scripting | What is `SystemInfo.deviceType` in Unity? Explain its purpose and usage. | SystemInfo.deviceType
public static
DeviceType
deviceType
;
Description
Returns the kind of device the application is running on (Read Only).
See
DeviceType
enumeration for possible values.
Additional resources:
deviceModel
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b149bc4e4ab3 | unity_docs | scripting | What is `ParticleSystem.MainModule.ringBufferLoopRange` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.ringBufferLoopRange
public
Vector2
ringBufferLoopRange
;
Description
When
ParticleSystem.MainModule.ringBufferMode
is set to loop, this value defines the proportion of the particle life that loops.
This enables you to use other particle properties that are applied over the particl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bb7d2f5778e0 | unity_docs | physics | In Unity's 'Rigidbody component reference', what is 'Properties' and how does it work? | Property Function Mass
Define the mass of the GameObject (in kilograms).
Mass
is set to 1 by default. As in real life, mass does not affect how quickly an item falls under gravity. To simulate resistance forces that slow down movement, use
Drag
.
Linear Damping
Define the decay rate of a Rigidbody’s linear velocity, to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_27d04690946b | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.RGBA_ASTC6X6_UFloat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.RGBA_ASTC6X6_UFloat
Description
A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 6×6 rectangle of float RGBA texel data. | 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.