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_man_8b29e8732dea | unity_docs | rendering | Show me a Unity code example for 'Change or detect the active render pipeline'. | values of
GraphicsSettings.defaultRenderPipeline and QualitySettings.renderPipeline
. For information on how to use these values, see
Determining the active render pipeline
or the following code sample.
To detect and execute code when the type of the active render pipeline changes, use
RenderPipelineManager.activeRende... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_834998cf4d6d | unity_docs | math | What is `Mesh.MeshData.GetIndexData` in Unity? Explain its purpose and usage. | Mesh.MeshData.GetIndexData
Declaration
public NativeArray<T>
GetIndexData
();
Returns
NativeArray<T>
Returns a
NativeArray
containing the index buffer data.
Description
Gets raw data from the index buffer of the
MeshData
.
GetIndexData
returns a direct "pointer" into the raw index buffer data without... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4c73cef12fc0 | unity_docs | scripting | What are the parameters of `Camera.ScreenToWorldPoint` in Unity? | Returns Vector3 The world space point created by converting the screen space point at the provided distance z from the camera plane. Description Transforms a point from screen space into world space, where world space is defined as the coordinate system at the very top of your game's hierarchy. World space coordinates ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8438be556ee | unity_docs | scripting | Give me an overview of the `MeshTopology` class in Unity. | MeshTopology
enumeration
Description
Topology of
Mesh
faces.
Normally meshes are composed of triangles (three vertex indices per face), but
in some cases you might want to render complex things that are made up from lines
or points. Creating a
Mesh
with that topology and using it to render is usually the
most ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e3edd2db657 | unity_docs | rendering | What is `Renderer.GetMaterials` in Unity? Explain its purpose and usage. | Renderer.GetMaterials
Declaration
public void
GetMaterials
(List<Material>
m
);
Parameters
Parameter
Description
m
A list of materials to populate.
Description
Returns all the instantiated materials of this object.
Use this method instead of
materials
if you control the life cycle of the list passed in ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d7f253e608fd | unity_docs | scripting | What is `UIElements.IBinding.PreUpdate` in Unity? Explain its purpose and usage. | IBinding.PreUpdate
Declaration
public void
PreUpdate
();
Description
Called at regular intervals to synchronize bound properties to their IBindable counterparts. Called before the Update() method. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_871b5c53a0dc | unity_docs | physics | What is `SpringJoint2D.frequency` in Unity? Explain its purpose and usage. | SpringJoint2D.frequency
public float
frequency
;
Description
The frequency at which the spring oscillates around the distance distance between the objects.
The spring will oscillate with a certain frequency as it attempts to reestablish the desired distance between the objects. A
damping ratio
can be set to c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_33f991fb3f5e | unity_docs | ui | Show me a Unity C# example demonstrating `EditorGUI.MinMaxSlider`. | .
minValue
The lower value of the range the slider shows, passed by reference.
maxValue
The upper value at the range the slider shows, passed by reference.
minLimit
The limit at the left end of the slider.
maxLimit
The limit at the right end of the slider.
Description
Makes a special slider the user can use t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_810f7a6f9992 | unity_docs | physics | Explain 'Debug shaders with Visual Studio' in Unity. | You can use Visual Studio to debug shaders in a Unity application on Windows platforms using DirectX 11 or 12. This page contains information on how to do this.
Note:
If you are using DirectX 12, Microsoft recommends that you use PIX to debug shaders instead of Visual Studio. For information on using PIX on Windows wit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c74127026190 | unity_docs | math | What is `TerrainData.GetSupportedLayers` in Unity? Explain its purpose and usage. | TerrainData.GetSupportedLayers
Declaration
public int[]
GetSupportedLayers
(int
xBase
,
int
yBase
,
int
totalWidth
,
int
totalHeight
);
Declaration
public int[]
GetSupportedLayers
(
Vector2Int
positionBase
,
Vector2Int
size
);
Description
Returns an array of all supported detail layer indices in the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce1dc987f2d2 | unity_docs | physics | What is `ParticleSystem.ForceOverLifetimeModule` in Unity? Explain its purpose and usage. | ForceOverLifetimeModule
struct in
UnityEngine
/
Implemented in:
UnityEngine.ParticleSystemModule
Description
Script interface for the ForceOverLifetimeModule of a Particle System.
Additional resources:
ParticleSystem
,
ParticleSystem.forceOverLifetime
.
Properties
Property
Description
enabled
Specifies w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_289fc4bce548 | unity_docs | scripting | What is `HandleUtility.pickGameObjectCustomPasses` in Unity? Explain its purpose and usage. | HandleUtility.pickGameObjectCustomPasses
Description
Subscribe to this event to add additional picking objects to the
HandleUtility.PickGameObject
method.
PickGameObject
invokes this delegate when clicking in the
SceneView
.
An example use case for this event would be if you are rendering meshes with
Graphics.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_10b00f7d54ad | unity_docs | rendering | What is `Mesh.SetUVs` in Unity? Explain its purpose and usage. | Mesh.SetUVs
Declaration
public void
SetUVs
(int
channel
,
Vector2[]
uvs
);
Declaration
public void
SetUVs
(int
channel
,
Vector3[]
uvs
);
Declaration
public void
SetUVs
(int
channel
,
Vector4[]
uvs
);
Declaration
public void
SetUVs
(int
channel
,
List<Vector2>
uvs
);
Declaration
public void
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_84836a55adbe | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddRemotePackageReferenceAtVersion`. | PBXProject.AddRemotePackageReferenceAtVersion
Declaration
public string
AddRemotePackageReferenceAtVersion
(string
url
,
string
version
);
Parameters
Parameter
Description
url
The URL of the repository.
version
The version to use.
Returns
string
Returns the GUID of the remote package reference.
Des... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cbd91cd6430c | unity_docs | scripting | What is `Screen.autorotateToLandscapeRight` in Unity? Explain its purpose and usage. | Screen.autorotateToLandscapeRight
public static bool
autorotateToLandscapeRight
;
Description
Enables auto-rotation to landscape right.
This property is used when
orientation
is set to
AutoRotation
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3acad3f9ab0f | unity_docs | animation | What is `AnimationMode.AddEditorCurveBinding` in Unity? Explain its purpose and usage. | AnimationMode.AddEditorCurveBinding
Declaration
public static void
AddEditorCurveBinding
(
GameObject
gameObject
,
EditorCurveBinding
binding
);
Parameters
Parameter
Description
gameObject
The GameObject being modified.
binding
The binding for the property being modified.
Description
Marks a property... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_560c0d246d5e | unity_docs | math | What is `Transform.TransformDirection` in Unity? Explain its purpose and usage. | Transform.TransformDirection
Declaration
public
Vector3
TransformDirection
(
Vector3
direction
);
Description
Transforms
direction
from local space to world space.
This operation is not affected by scale or position of the transform. The returned vector has the same length as
direction
.
If you need the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fd6a25efd420 | unity_docs | xr | In Unity's 'Set up your IIS server configuration for Web builds', what is 'Configure your IIS server configuration for uncompressed Web builds' and how does it work? | To update your server configuration file so that it works with an uncompressed Web build, follow these instructions:
Use the following server configuration:
```csharp
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--
IIS does not provide default handlers for .data and .wasm files (and in ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88659d40937b | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.SetCompileFlagsForFile` in Unity? | Description Sets the compilation flags for the given file in the given target. ```csharp
using UnityEditor;
using System.Collections.Generic;
using System.IO;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using System;public class Sample_SetCompileFlagsForFile
{
[PostProcessBuild]
public static vo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9ca62d2a3cd | unity_docs | rendering | What is `Rendering.LightShadowResolution` in Unity? Explain its purpose and usage. | LightShadowResolution
enumeration
Description
Shadow resolution options for a
Light
.
Additional resources:
Light.shadowResolution
,
QualitySettings.shadowResolution
,
Shadow map size calculation
.
Properties
Property
Description
FromQualitySettings
Use resolution from QualitySettings (default).
Low
Low s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b3ab3ad21a6 | unity_docs | rendering | What is `UIElements.Vertex.uv` in Unity? Explain its purpose and usage. | Vertex.uv
public
Vector2
uv
;
Description
The UV coordinate of the vertex.
This is used to sample the required region of the associated texture if any. Values outside the range 0..1 are currently not supported and could lead to undefined results. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af19b4f5e7be | unity_docs | scripting | What is `iOS.Xcode.XcScheme.FrameCaptureMode` in Unity? Explain its purpose and usage. | FrameCaptureMode
enumeration
Description
Frame Capture mode.
Use the members of the
FrameCaptureMode
enumeration to set the /GPU Frame Capture Mode/ option in the scheme of an Xcode project generated by Unity. These options determine whether GPU frames are captured when using the Metal API.
Additional resources:... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_68566e3cc88a | github | scripting | Write a Unity C# XR/VR script for Action To Control | ```csharp
using System.Collections;
using UnityEngine.InputSystem;
using UnityEngine.UI;
using UnityEngine.XR.OpenXR.Input;
namespace UnityEngine.XR.OpenXR.Samples.ControllerSample
{
public class ActionToControl : MonoBehaviour
{
[Tooltip("Action Reference that represents the control")]
[Serial... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_473edc65523f | unity_docs | networking | What is `Android.AndroidScreenLayoutSize.Large` in Unity? Explain its purpose and usage. | AndroidScreenLayoutSize.Large
Description
Mirrors the Android property value
SCREENLAYOUT_SIZE_LARGE
.
For information about the property value, refer to the Android developer documentation on
SCREENLAYOUT_SIZE_LARGE
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_40ee83b51022 | unity_docs | editor | Give me an overview of the `EditorSnapSettings` class in Unity. | EditorSnapSettings
class in
UnityEditor
Description
Control the behavior of handle snapping in the editor.
Static Properties
Property
Description
gridSize
Gets or sets the grid size used for snapping.
gridSnapActive
Gets whether grid snapping is active.
gridSnapEnabled
Gets or sets whether grid snapping is e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a65faa19714 | unity_docs | scripting | What is `Rendering.RenderTargetBinding.depthStoreAction` in Unity? Explain its purpose and usage. | RenderTargetBinding.depthStoreAction
public
Rendering.RenderBufferStoreAction
depthStoreAction
;
Description
Store action for the depth/stencil buffer.
Not all platforms support store actions. If the platform you are using does not support store actions,
RenderBufferStoreAction.Store
will be used instead. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_77eb6338e7cc | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.SearchExpressionType`. | SearchExpressionType
enumeration
Description
Type used to characterize an expression. An expression might have multiple types. For example a Set is also an iterable. A keyword is also considered a string value.
SearchExpressionType
can be used with
SearchExpressionEvaluatorAttribute
to describe the parameter li... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a5bcf089e29e | unity_docs | xr | What is `XR.XRDisplaySubsystem` in Unity? Explain its purpose and usage. | XRDisplaySubsystem
class in
UnityEngine.XR
/
Inherits from:
IntegratedSubsystem
/
Implemented in:
UnityEngine.XRModule
Description
An XRDisplaySubsystem controls rendering to a head tracked display.
Properties
Property
Description
appliedViewportScale
The portion of the allocated display texture used by th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5c9a50f7e6b5 | unity_docs | rendering | Show me a Unity code example for 'Load and unload assets with the Resources system'. | .
Note:
You can have multiple Resources folders located in different subfolders within your Assets folder, and packages can also contain Resources folders.
Whenever you want to load an asset from one of these folders, call
Resources.Load
in your code. Only assets in the Resources folder can be accessed in this way.
For... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8d0cb3356c38_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | JSON serialization utilitiesHandles complex objects and arrays
Signature:
```csharp
public static class JsonUtils
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_9e2084af0d02 | unity_docs | ui | Show me a Unity C# example demonstrating `UIElements.ScrollView.ScrollTo`. | ScrollView.ScrollTo
Declaration
public void
ScrollTo
(
UIElements.VisualElement
child
);
Parameters
Parameter
Description
child
The child to scroll to.
Description
Scroll to a specific child element.
This example creates a ScrollView that contains multiple labels. A Button is used to scroll to a sele... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d002e22ac1d2 | unity_docs | scripting | What are the parameters of `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemMove` in Unity? | Description Copies a specified number of bytes from a source memory location to a destination, allowing overlapping regions. The MemMove method is designed to transfer a block of memory from one location to another. Unlike standard memory copy operations, MemMove can safely handle overlapping memory regions by ensuring... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_548c4d13f88f | unity_docs | physics | Explain 'Particle emissions and emitters' in Unity. | Understand particle emissions, and how Unity manages them via
Particle System
modules.
## Rate of emission
The rate of emission can be constant or can vary over the lifetime of the system according to a curve. If the
Emission module
Rate over Distance
mode is active, a certain number of particles are released per uni... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6910d9d9a9ea_doc_28 | github | scripting | What does `OnBecameVisibleAsObservable` do in this Unity script? Explain its purpose and signature. | OnBecameVisible is called when the renderer became visible by any camera.
Signature:
```csharp
public static IObservable<Unit> OnBecameVisibleAsObservable(this Component component)
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
gh_400776c26109_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Type info of .could monified by .
Signature:
```csharp
public struct TypeInfo : IEquatable<TypeInfo>
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_7aa656d5edd1 | unity_docs | scripting | What is `Build.NamedBuildTarget.FromBuildTargetGroup` in Unity? Explain its purpose and usage. | NamedBuildTarget.FromBuildTargetGroup
Declaration
public static
Build.NamedBuildTarget
FromBuildTargetGroup
(
BuildTargetGroup
buildTargetGroup
);
Parameters
Parameter
Description
buildTargetGroup
Build target group.
Description
Returns the appropriate NamedBuildTarget that corresponds to the specified ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1623432092ad | unity_docs | scripting | What is `Undo.PostprocessModifications` in Unity? Explain its purpose and usage. | Undo.PostprocessModifications
Declaration
public delegate UndoPropertyModification[]
PostprocessModifications
(UndoPropertyModification[]
modifications
);
Parameters
Parameter
Description
modifications
The set of property modifications to process.
Description
Delegate used for
postprocessModifications
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9616a1f953e7 | unity_docs | rendering | Explain 'Particle systems' in Unity. | A particle system simulates and renders many small images or Meshes, called particles, to produce a visual effect. Each particle in a system represents an individual graphical element in the effect. The system simulates every particle collectively to create the impression of the complete effect.
Particle systems are us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1dcdad67864e | unity_docs | rendering | Explain 'Optimize baking' in Unity. | In most configurations, the Progressive GPU Lightmapper performs much faster than the Progressive CPU Lightmapper. The performance depends on the selected
Baking Profile
.
However, the specifications of the GPU you use to bake and the amount of VRAM dedicated to that GPU both influence your experience of the lightmappe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_86b1358c01dd | unity_docs | rendering | What is `Mesh.uv2` in Unity? Explain its purpose and usage. | Mesh.uv2
public Vector2[]
uv2
;
Description
The texture coordinates (UVs) in the second channel.
This channel is also commonly called "UV1". It maps to the shader semantic `TEXCOORD1`. When you call
Mesh.HasVertexAttribute
, this channel corresponds to
VertexAttribute.TexCoord1
.
Unity can use this channel t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d35333d1dcce_doc_4 | github | scripting | What does `RemoveSubscription_internal` do in this Unity script? Explain its purpose and signature. | Entirely removes the subscription to a given GameProperty or GameEvent.Don't use it for OnDisable/OnEnable safety; this functionality is automatic.
Signature:
```csharp
protected void RemoveSubscription<T>(IEventSource<T> eventSource)
=> RemoveSubscription_internal(eventSource);
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_0a63e1754571 | unity_docs | scripting | What is `Windows.Speech.PhraseRecognizer.OnPhraseRecognized` in Unity? Explain its purpose and usage. | PhraseRecognizer.OnPhraseRecognized
Parameters
Parameter
Description
value
Delegate that will be invoked when the event occurs.
Description
Event that gets fired when the phrase recognizer recognizes a phrase. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5d58acad4054 | unity_docs | scripting | What is `Windows.WebCam.WebCamMode.PhotoMode` in Unity? Explain its purpose and usage. | WebCamMode.PhotoMode
Description
Resource is in Photo Mode.
This mode is entered when calling
PhotoCapture.StartPhotoModeAsync
and this mode is exited when calling
PhotoCapture.StopPhotoModeAsync
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d7d11fef59e | unity_docs | physics | What is `PhysicsScene.ReleaseLastSimulationStepBuffers` in Unity? Explain its purpose and usage. | PhysicsScene.ReleaseLastSimulationStepBuffers
Declaration
public void
ReleaseLastSimulationStepBuffers
();
Description
Clear and deallocate the simulation results.
Calling this method will result in all simulation result buffers used by this PhysicsScene to be deallocated. The method offers a manual alternative... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9939c7633d7c | unity_docs | rendering | In Unity's 'Set a shader to require a package', what is 'Require a version within a range' and how does it work? | Inside the PackageRequirements block, use
[MINIMUM,MAXIMUM]
, where MININUM is the minimum version and MAXIMUM is the maximum version. The range is inclusive. For example:
"com.my.package": "[17.2,17.5]"
to require package version
17.2
or later, up to and including
17.5
.
"unity": "[6000.2,6000.3]"
to require Unity ver... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a105af3a9cbe | unity_docs | rendering | What is `Editor.GetInfoString` in Unity? Explain its purpose and usage. | Editor.GetInfoString
Declaration
public string
GetInfoString
();
Description
Implement this method to show asset information on top of the asset preview.
You will also have to implement
HasPreviewGUI
and
OnPreviewGUI
in addition to this method.
The default implementation just returns an empty string, which ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1349980dc1bc | unity_docs | rendering | What is `Video.VideoPlayer.Stop` in Unity? Explain its purpose and usage. | VideoPlayer.Stop
Declaration
public void
Stop
();
Description
Stops the playback and sets the current time to 0.
This also destroys all internal resources such as textures or buffered content. After calling /Stop()/,
VideoPlayer.isPrepared
becomes
false
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82df1b1f09d0 | unity_docs | editor | What is `PrefabUtility.ApplyRemovedComponent` in Unity? Explain its purpose and usage. | PrefabUtility.ApplyRemovedComponent
Declaration
public static void
ApplyRemovedComponent
(
GameObject
instanceGameObject
,
Component
assetComponent
,
InteractionMode
action
);
Parameters
Parameter
Description
instanceGameObject
The GameObject on the Prefab instance which the component has been removed... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_05bfb98f10ff | unity_docs | rendering | Explain 'Choose a Light Mode' in Unity. | You can choose whether lighting is pre-calculated (baked), updated in real-time, or a combination (mixed), depending on the performance and visual quality you aim for:
Baked: Provides essential illumination without significant performance impact.
Mixed: Ensures a stable lighting setup and preserves shadows.
Realtime: A... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_b9f412052fdc | github | scripting | Write a Unity C# script called Prefab Pool Asset | ```csharp
using Gilzoide.PrefabPool.Internal;
using UnityEngine;
namespace Gilzoide.PrefabPool
{
public class PrefabPoolAsset<T> : APrefabPoolAsset<T, PrefabPool<T>>
where T : Object
{
}
[CreateAssetMenu(menuName = "Prefab Pool/Prefab Pool Asset")]
public class PrefabPoolAsset : PrefabPool... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_cafad74c0e0f | unity_docs | editor | What is `IMGUI.Controls.SearchField.autoSetFocusOnFindCommand` in Unity? Explain its purpose and usage. | SearchField.autoSetFocusOnFindCommand
public bool
autoSetFocusOnFindCommand
;
Description
Changes the keyboard focus to the search field when the user presses ‘Ctrl/Cmd + F’ when set to true. It is true by default.
An ExecuteCommand event is dispatched when a user presses ‘Ctrl/Cmd + F’. The search field automa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5ea575093c15 | unity_docs | rendering | What is `Rendering.RendererListStatus` in Unity? Explain its purpose and usage. | RendererListStatus
enumeration
Description
Options that represent the result of a ScriptableRenderContext.QueryRendererList operation.
Properties
Property
Description
kRendererListInvalid
The RendererList from the query operation is invalid.
kRendererListProcessing
Unity is still processing the RendererList.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_913d92823924 | unity_docs | editor | In Unity's 'Introduction to runtime asset management', what is 'Runtime asset management options' and how does it work? | Choosing the right approach depends on factors like your target platform, content delivery requirements, and whether you need dynamic loading capabilities. The following management systems are available:
Direct references
: The default way of managing assets. Unity loads all assets referenced in a scene into memory bef... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_84b35345c60d_doc_5 | github | scripting | What does `GetCharacterFromFontAssets` do in this Unity script? Explain its purpose and signature. | Returns the text element (character) for the given unicode value taking into consideration the requested font style and weight.Function searches the provided list of font assets, the list of font assets assigned as alternative typefaces to them as well as their fallbacks.The font asset out parameter contains a referenc... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_d18eb44a6b50 | unity_docs | physics | What is `Joint.connectedBody` in Unity? Explain its purpose and usage. | Joint.connectedBody
public
Rigidbody
connectedBody
;
Description
A reference to another rigidbody this joint connects to.
If not set then the joint connects the object to a fixed point in world space.
Unity does not support connecting a joint to a
Rigidbody
in a different
Scene
that is using a local physi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8fea91fae563 | unity_docs | rendering | What is `ParticleSystemRenderer.maxParticleSize` in Unity? Explain its purpose and usage. | ParticleSystemRenderer.maxParticleSize
public float
maxParticleSize
;
Description
Clamp the maximum particle size.
Particles can become very heavy on fillrate. Use this setting to make sure they don't
use too much performance when up close to the viewer.
```csharp
using UnityEngine;
using System.Collections;[R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fb324676c0df | unity_docs | xr | In Unity's 'Choose and configure XR provider plug-ins', what is 'Enable provider plug-ins' and how does it work? | You must enable each provider plug-in your project targets using XR Plug-in Management.
To enable provider plug-ins:
Open the
Project Settings
window (menu:
Edit > Project Settings
).
Select
XR Plug-in Management
from the sections on the left side of the
Project Settings
window.
Select the tab for your target build pla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_135b58362c11 | unity_docs | scripting | Show me a Unity C# example demonstrating `UIElements.ToolbarBreadcrumbs`. | b UI element for the toolbar to help users navigate a hierarchy. For example, the visual scripting breadcrumb toolbar makes it easier to explore scripts because users can jump to any level of the script by clicking a breadcrumb item. For more information, refer to
UXML element ToolbarBreadcrumbs
.
Represents a bre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_279cf08bcb23 | unity_docs | math | What is `Rendering.ScriptableRenderContext.ExecuteCommandBufferAsync` in Unity? Explain its purpose and usage. | ScriptableRenderContext.ExecuteCommandBufferAsync
Declaration
public void
ExecuteCommandBufferAsync
(
Rendering.CommandBuffer
commandBuffer
,
Rendering.ComputeQueueType
queueType
);
Parameters
Parameter
Description
commandBuffer
The
CommandBuffer
to be executed.
queueType
Describes the desired async ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_33c32d3079a9 | github | scripting | Write a Unity C# UI script for Text Asset Loader | ```csharp
#if UNITY_EDITOR
using UnityEditor;
#endif
using System;
using System.IO;
using UnityEngine;
using UnityEngine.Networking;
namespace GameUtil.Config
{
/// <summary>
/// 加载文本资源
/// </summary>
public static class TextAssetLoader// : MonoBehaviour
{
// private static TextAssetLoader ... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_95fb8dcc1862 | unity_docs | rendering | What is `XR.XRDisplaySubsystem.XRRenderPass.motionVectorRenderTarget` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.XRRenderPass.motionVectorRenderTarget
public
Rendering.RenderTargetIdentifier
motionVectorRenderTarget
;
Description
The output render-texture target for the motion-vector generation render pass. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4b49154e18dc | unity_docs | math | What is `Mesh.GetNormals` in Unity? Explain its purpose and usage. | Mesh.GetNormals
Declaration
public void
GetNormals
(List<Vector3>
normals
);
Parameters
Parameter
Description
normals
A list of vertex normals to populate.
Description
Gets the vertex normals of the Mesh.
The normal at each index corresponds to the vertex with the same index.
Use this method instead of
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e951fe7bbad4 | unity_docs | scripting | What is `EditorGUI.Vector4Field` in Unity? Explain its purpose and usage. | EditorGUI.Vector4Field
Declaration
public static
Vector4
Vector4Field
(
Rect
position
,
string
label
,
Vector4
value
);
Parameters
Parameter
Description
position
Rectangle on the screen to use for the field.
label
Label to display above the field.
value
The value to edit.
Returns
Vector4
The v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_60228de1be63 | github | scripting | Write a Unity C# UI script for Process Base | ```csharp
using System.Collections.Generic;
using UnityEngine;
using VContainer;
using VContainer.Unity;
namespace AntiMonoBehaviour.Processes
{
public abstract class ProcessBase : IProcess
{
[Inject] readonly Canvas _canvas;
protected Canvas Canvas => _canvas;
LifetimeScope _lifetime... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_ae9ccdc94ae7 | unity_docs | editor | What is `EditorWindow.wantsLessLayoutEvents` in Unity? Explain its purpose and usage. | EditorWindow.wantsLessLayoutEvents
public bool
wantsLessLayoutEvents
;
Description
Specifies whether a layout pass is performed before all user events (for example,
EventType.MouseDown
or
EventType.KeyDown
), or is only performed before repaint events.
When set to true, a layout pass is only performed before... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_814eb6c30604 | unity_docs | scripting | What are the parameters of `Events.UnityEventBase.GetPersistentListenerState` in Unity? | Returns UnityEventCallState Execution state of the persistent listener. Description Returns the execution state of a persistent listener. ```csharp
using UnityEngine;
using UnityEngine.Events;public class Example : MonoBehaviour
{
public UnityEvent onAction; void Start()
{
// Prints out the details o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_668c1aeca503 | unity_docs | rendering | What is `Windows.WebCam.VideoCapture.OnStartedRecordingVideoCallback` in Unity? Explain its purpose and usage. | VideoCapture.OnStartedRecordingVideoCallback
Declaration
public delegate void
OnStartedRecordingVideoCallback
(
Windows.WebCam.VideoCapture.VideoCaptureResult
result
);
Parameters
Parameter
Description
result
Indicates whether or not video recording started successfully.
Description
Called when the web ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d54c1127d5cf | unity_docs | editor | What is `VersionControl.Provider.Delete` in Unity? Explain its purpose and usage. | Provider.Delete
Declaration
public static
VersionControl.Task
Delete
(string
assetProjectPath
);
Declaration
public static
VersionControl.Task
Delete
(
VersionControl.AssetList
assets
);
Declaration
public static
VersionControl.Task
Delete
(
VersionControl.Asset
asset
);
Parameters
Parameter
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_492ed05d6fe7 | unity_docs | scripting | What is `Search.SearchExpression.outerText` in Unity? Explain its purpose and usage. | SearchExpression.outerText
public stringView
outerText
;
Description
This is the outer text of the expression. This means the full text with any special delimiters. Ex: the expression [1, 2, 3] which is a set expression would have an outerText of [1,2,3]. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6e3b3da0b260 | github | scripting | Write a Unity C# script called Random Chance | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MBT
{
[AddComponentMenu("")]
[MBTNode("Decorators/Random Chance")]
public class RandomChance : Decorator
{
[Tooltip("Probability should be between 0 and 1")]
public FloatReference probabi... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_52e154529706 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.RemoveAssetTagFromDefaultInstall`. | string
targetGuid
,
string
tag
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
tag
The name of the asset tag.
Description
Removes the asset tag from the list of tags to download during initial installation.
The function does nothing if... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_422e58fceaaa | unity_docs | physics | What is `LowLevelPhysics.IGeometry.GeometryType` in Unity? Explain its purpose and usage. | IGeometry.GeometryType
public
LowLevelPhysics.GeometryType
GeometryType
;
Description
Return the geometry type of the shape that implemented this interface.
Additional resources:
GeometryType
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2dcc98b9e288 | unity_docs | physics | What is `ArticulationBody.driveForce` in Unity? Explain its purpose and usage. | ArticulationBody.driveForce
public
ArticulationReducedSpace
driveForce
;
Description
The drive force in reduced coordinates.
Units of measurement - N (newtons) for linear and Nm (newton-meters) for angular motion. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_adb6d1b5e706 | unity_docs | scripting | What is `CacheServerMode` in Unity? Explain its purpose and usage. | CacheServerMode
enumeration
Description
Selects the cache server configuration mode.
Properties
Property
Description
AsPreferences
Use this if you want to use the global cache server settings.
Enabled
Use this if you want to enable use of the project specific cache server settings.
Disabled
Use this if you wa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e50424cfd1b8 | unity_docs | math | What is `Rendering.BatchCullingOutputDrawCommands.instanceSortingPositions` in Unity? Explain its purpose and usage. | BatchCullingOutputDrawCommands.instanceSortingPositions
public float*
instanceSortingPositions
;
Description
If
BatchDrawCommandFlags.HasSortingPosition
is set for one or more draw commands, the
instanceSortingPositions
array contains explicit
float3
world space positions that Unity uses for depth sorting.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5a2a3e1a05a | unity_docs | scripting | Give me an overview of the `DefaultExecutionOrder` class in Unity. | DefaultExecutionOrder
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Specifies the script execution order for a MonoBehaviour-derived class relative to other MonoBehaviour-derived types.
The
DefaultExecutionOrder
attribute offers a way to specify the execution order between differen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2986ea4e1023 | unity_docs | xr | What is `WWWForm.headers` in Unity? Explain its purpose and usage. | WWWForm.headers
public Dictionary<string,string>
headers
;
Description
(Read Only) Returns the correct request headers for posting the form using the WWW class.
This field only contains one header, /"Content-Type"/,
which is set to the correct mime type for the form: "
application/x-www-form-urlencoded
" for no... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1e8af92f270c | unity_docs | scripting | What is `UIElements.RenderingLayerMaskField.ctor` in Unity? Explain its purpose and usage. | RenderingLayerMaskField Constructor
Declaration
public
RenderingLayerMaskField
(uint
defaultMask
);
Declaration
public
RenderingLayerMaskField
(string
label
,
uint
defaultMask
);
Declaration
public
RenderingLayerMaskField
();
Declaration
public
RenderingLayerMaskField
(string
label
);
Parameters
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_407c61b3e70f | unity_docs | rendering | What is `MaterialPropertyBlock.HasTexture` in Unity? Explain its purpose and usage. | MaterialPropertyBlock.HasTexture
Declaration
public bool
HasTexture
(string
name
);
Declaration
public bool
HasTexture
(int
nameID
);
Parameters
Parameter
Description
name
The name of the property.
nameID
The name ID of the property. Use
Shader.PropertyToID
to get this ID.
Returns
bool
Returns t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e581f3e5b2a8 | unity_docs | editor | What is `BuildAssetBundleOptions.DryRunBuild` in Unity? Explain its purpose and usage. | BuildAssetBundleOptions.DryRunBuild
Description
Do a dry run build.
This allows you to do a dry run build for the AssetBundles but not actually build them. With this option enabled,
BuildPipeline.BuildAssetBundles
still returns an
AssetBundleManifest
object which contains valid AssetBundle dependencies and hash... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13a0d16166d8 | unity_docs | editor | What is `PlayerPrefs` in Unity? Explain its purpose and usage. | PlayerPrefs
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
PlayerPrefs
is a class that stores Player preferences between game sessions. It can store string, float and integer values into the user's platform registry.
Unity stores PlayerPrefs in a local registry, without encryption. D... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2bfdbbd5836b | unity_docs | physics | Show me a Unity C# example demonstrating `LayerMask.value`. | LayerMask.value
public int
value
;
Description
Converts a layer mask value to an integer value.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Casts a ray using the layer mask,
// which can be modified in the inspector. LayerMask mask = -1;
void Update()
{
if (Physics.Raycast(transfo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc31687fb207 | unity_docs | rendering | What is `Rendering.SortingCriteria.CommonTransparent` in Unity? Explain its purpose and usage. | SortingCriteria.CommonTransparent
Description
Typical sorting for transparencies.
This is the same as
SortingLayer
,
RenderQueue
,
BackToFront
,
OptimizeStateChanges
flags combined.
Additional resources: DrawingSettings.sorting, ScriptableRenderContext.DrawRenderers. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7626aed06efd | unity_docs | scripting | What are the parameters of `WaitUntil.ctor` in Unity? | Description Initializes a yield instruction with a given delegate to be evaluated. Declaration public WaitUntil (Func<bool> predicate ,
TimeSpan timeout , Unity.Android.Gradle.Manifest.Action onTimeout , WaitTimeoutMode timeoutMode ); Parameters Parameter Description predicate Supplied delegate will be evaluated each f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_20fc79471568 | unity_docs | rendering | Explain 'Rendering trails for moving GameObjects' in Unity. | The
Trail Renderer
component renders a trail of polygons behind a moving GameObject , over time. This can be used to give an emphasized feeling of motion to a moving object, or to highlight the path or position of moving objects.
The Trail Renderer uses the same algorithm for trail rendering as the
Line Renderer
.
## ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b68fa8c4f550 | unity_docs | physics | Give me an overview of the `OverlapBoxCommand` class in Unity. | OverlapBoxCommand
struct in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
Struct used to set up an overlap box command to be performed asynchronously during a job.
When you use this struct to schedule a batch of overlap box commands, the commands are performed asynchronously. The results o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d171e635d7c2 | unity_docs | scripting | What is `SceneManagement.StageUtility.GetStageHandle` in Unity? Explain its purpose and usage. | StageUtility.GetStageHandle
Declaration
public static
SceneManagement.StageHandle
GetStageHandle
(
GameObject
gameObject
);
Parameters
Parameter
Description
gameObject
The GameObject to find the stage of.
Returns
StageHandle
The stage of the GameObject.
Description
Get the stage in which the given... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c293dcba2c6d | unity_docs | rendering | What is `TerrainDetailMeshRenderMode.VertexLit` in Unity? Explain its purpose and usage. | TerrainDetailMeshRenderMode.VertexLit
Description
Uses the vertex lit shader for rendering details
In this mode, Unity uses a custom vertex lit shader for rendering details.
Additional resources:
DetailRenderMode.VertexLit
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d6ab7ecd7174 | github | scripting | Write a Unity C# XR/VR script for Singleton | ```csharp
using UnityEngine;
namespace LearnXR.Core
{
public class Singleton<T> : MonoBehaviour
where T : Component
{
private static T _instance;
public static T Instance
{
get
{
if (_instance == null)
{
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_440a62b574ee | unity_docs | scripting | What is `Vector3.Lerp` in Unity? Explain its purpose and usage. | Vector3.Lerp
Declaration
public static
Vector3
Lerp
(
Vector3
a
,
Vector3
b
,
float
t
);
Parameters
Parameter
Description
a
Start value. This value is returned when
t = 0
.
b
End value. This value is returned when
t = 1
.
t
Value used to interpolate between
a
and
b
. Values greater than one a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ea8164451598 | unity_docs | scripting | What is `Profiling.HierarchyFrameDataView.GetItemAncestors` in Unity? Explain its purpose and usage. | HierarchyFrameDataView.GetItemAncestors
Declaration
public void
GetItemAncestors
(int
id
,
List<int>
outAncestors
);
Parameters
Parameter
Description
id
Hierarchy item identifier.
outAncestors
List filled with item ancestor identifiers as a result of a method call.
Description
Retrieves a list of hierar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_371989ed4e5c | unity_docs | scripting | What is `Rendering.DepthState.ctor` in Unity? Explain its purpose and usage. | DepthState Constructor
Declaration
public
DepthState
(bool
writeEnabled
,
Rendering.CompareFunction
compareFunction
);
Parameters
Parameter
Description
writeEnabled
Controls whether pixels from this object are written to the depth buffer.
compareFunction
How should depth testing be performed.
Descripti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cadace1d21e9 | unity_docs | rendering | What is `LightTransport.BakeProgressState.SetTotalWorkSteps` in Unity? Explain its purpose and usage. | BakeProgressState.SetTotalWorkSteps
Declaration
public void
SetTotalWorkSteps
(ulong
total
);
Parameters
Parameter
Description
total
Total amount of work steps.
Description
Sets the total amount of work steps for the progress state. Increase the completed work steps using IncrementCompletedWorkSteps.
Conf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_590efb1e2def | unity_docs | rendering | What is `Rendering.BuiltinShaderDefine` in Unity? Explain its purpose and usage. | BuiltinShaderDefine
enumeration
Description
Defines set by editor when compiling shaders, based on the target platform and
GraphicsTier
.
Additional resources:
GraphicsSettings.HasShaderDefine
.
Properties
Property
Description
UNITY_NO_DXT5nm
UNITY_NO_DXT5nm is set when compiling shader for platform that do ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69bad0d8d215 | unity_docs | editor | What is `RenderParams.sceneCullingMask` in Unity? Explain its purpose and usage. | RenderParams.sceneCullingMask
public ulong
sceneCullingMask
;
Description
Overrides the scene culling mask for the rendered object. This can help you control prefab stage visibility or entities sub-scene visibiliy. This property is only available in the Editor, you can still access it in a Player but it'll be ig... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2d0fb4dcb8a1 | unity_docs | rendering | What is `Experimental.GlobalIllumination.LightDataGI.cookieID` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
LightDataGI.cookieID
public int
cookieID
;
Description
The cookie texture's instance id projected by the light. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f79038b0349c | unity_docs | rendering | What is `Build.Content.WriteSceneParameters` in Unity? Explain its purpose and usage. | WriteSceneParameters
struct in
UnityEditor.Build.Content
Description
This struct collects all the WriteSceneSerializedFile parameters in to a single place.
Properties
Property
Description
globalUsage
The global lighting information to use when writing the serialized file.
preloadInfo
The set of external objec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c454616c7e8 | unity_docs | scripting | Show me a Unity C# example demonstrating `GameObject.SendMessage`. | viour attached to the GameObject.
A
value
parameter specified for a method that doesn't accept parameters is ignored.
If
options
is set to
SendMessageOptions.RequireReceiver
an error is printed if the message is not picked up by any component.
Note
: Messages are not sent to MonoBehaviours attached to objects fo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3837d82782c0 | unity_docs | scripting | What are the parameters of `TestTools.Coverage.ResetFor` in Unity? | Description Resets the coverage data for the specified method. ```csharp
using UnityEngine;
using UnityEngine.TestTools;
using System.Reflection;
using System;// A simple test class to get coverage information for.
public class CoverageClass
{
public bool CoveredMethod1()
{
return true;
} public ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dbade3c6ad68 | unity_docs | scripting | Show me a Unity code example for 'Supporting presets for custom types'. | settings in your UI. This allows your users to have the same UI in your EditorWindow as when editing saved presets.
Expose a Preset button and use your own PresetSelectorReceiver implementation to keep your EditorWindow settings up-to-date when a Preset is selected in the
Select Preset
window.
The following example dem... | 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.