Scriptable Render Pipeline (SRP)之 Render Pipeline Asset

本文详细介绍了Unity中的RenderPipelineAsset,它是渲染管线的资产,用于生成特定的IRenderPipeline。该资产管理继承类型的生命周期,并确保当资产更改时,创建的IRenderPipeline失效。内容涵盖默认材质、着色器、渲染层掩码名称等属性,以及创建管线、验证和禁用时的方法。
摘要由CSDN通过智能技术生成

///

RenderPipelineAsset

Description

An asset that produces a specific IRenderPipeline.

Default implementation of IRenderPipelineAsset. This manages the lifecylces of inherited types, as well as ensures that created IRenderPipeline's are invalidated when the asset is changed.

See Also: IRenderPipelineAsset.

Properties

autodeskInteractiveMaskedShaderRetrieves the default Autodesk Interactive masked Shader for this pipeline.
autodeskInteractiveShaderRetrieves the default Autodesk Interactive Shader for this pipeline.
autodeskInteractiveTransparentShaderRetrieves the default Autodesk Interactive transparent Shader for this pipeline.
default2DMaterialReturn the default 2D Material for this pipeline.
defaultLineMaterialReturn the default Line Material for this pipeline.
defaultMaterialReturn the default Material for this pipeline.
defaultParticleMaterialReturn the default particle Material for this pipeline.
defaultShaderReturn the default Shader for this pipeline.
defaultSpeedTree7ShaderReturn the default SpeedTree v7 Shader for this pipeline.
defaultSpeedTree8ShaderReturn the default SpeedTree v8 Shader for this pipeline.
defaultTerrainMaterialReturn the default Terrain Material for this pipeline.
defaultUIETC1SupportedMaterialReturn the default UI ETC1 Material for this pipeline.
defaultUIMaterialReturn the default UI Material for this pipeline.
defaultUIOverdrawMaterialReturn the default UI overdraw Material for this pipeline.
renderingLayerMaskNamesReturns the list of names used to display Rendering Layer Mask UI for this pipeline.
terrainBrushPassIndexThe render index for the terrain brush in the editor.
terrainDetailGrassBillboardShaderReturn the detail grass billboard Shader for this pipeline.
terrainDetailGrassShaderReturn the detail grass Shader for this pipeline.
terrainDetailLitShaderReturn the detail lit Shader for this pipeline.

Protected Methods

CreatePipelineCreate a IRenderPipeline specific to this asset.
OnDisableDefault implementation of OnDisable for RenderPipelineAsset. See ScriptableObject.OnDisable
OnValidateDefault implementation of OnValidate for RenderPipelineAsset. See MonoBehaviour.OnValidate

Inherited Members

Properties

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public Methods

GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the object.

Static Methods

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeGets a list of all loaded objects of Type type.
InstantiateClones the object original and returns the clone.
CreateInstanceCreates an instance of a scriptable object.

Operators

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.

Messages

AwakeThis function is called when the ScriptableObject script is started.
OnDestroyThis function is called when the scriptable object will be destroyed.
OnEnableThis function is called when the object is loaded.
ResetReset to default values.

//

//

//

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值