Thomas ICHÉ
4 年前
当前提交
589fa5fb
共有 6 个文件被更改,包括 299 次插入 和 0 次删除
-
87Icons/Misc/ic-cinemachine.png
-
120Icons/Misc/ic-cinemachine.png.meta
-
32Runtime/LevelScripting/Actions/CinemachineSetCameraNoiseAction.cs
-
11Runtime/LevelScripting/Actions/CinemachineSetCameraNoiseAction.cs.meta
-
38Runtime/LevelScripting/Actions/CinemachineSetCustomBlendsAction.cs
-
11Runtime/LevelScripting/Actions/CinemachineSetCustomBlendsAction.cs.meta
|
|||
fileFormatVersion: 2 |
|||
guid: 72000c18f026a734089f93c2c31e8e04 |
|||
TextureImporter: |
|||
internalIDToNameTable: [] |
|||
externalObjects: {} |
|||
serializedVersion: 11 |
|||
mipmaps: |
|||
mipMapMode: 0 |
|||
enableMipMap: 0 |
|||
sRGBTexture: 1 |
|||
linearTexture: 0 |
|||
fadeOut: 0 |
|||
borderMipMap: 0 |
|||
mipMapsPreserveCoverage: 0 |
|||
alphaTestReferenceValue: 0.5 |
|||
mipMapFadeDistanceStart: 1 |
|||
mipMapFadeDistanceEnd: 3 |
|||
bumpmap: |
|||
convertToNormalMap: 0 |
|||
externalNormalMap: 0 |
|||
heightScale: 0.25 |
|||
normalMapFilter: 0 |
|||
isReadable: 0 |
|||
streamingMipmaps: 0 |
|||
streamingMipmapsPriority: 0 |
|||
vTOnly: 0 |
|||
grayScaleToAlpha: 0 |
|||
generateCubemap: 6 |
|||
cubemapConvolution: 0 |
|||
seamlessCubemap: 0 |
|||
textureFormat: 1 |
|||
maxTextureSize: 2048 |
|||
textureSettings: |
|||
serializedVersion: 2 |
|||
filterMode: -1 |
|||
aniso: 1 |
|||
mipBias: -100 |
|||
wrapU: 1 |
|||
wrapV: 1 |
|||
wrapW: -1 |
|||
nPOTScale: 0 |
|||
lightmap: 0 |
|||
compressionQuality: 50 |
|||
spriteMode: 0 |
|||
spriteExtrude: 1 |
|||
spriteMeshType: 1 |
|||
alignment: 0 |
|||
spritePivot: {x: 0.5, y: 0.5} |
|||
spritePixelsToUnits: 100 |
|||
spriteBorder: {x: 0, y: 0, z: 0, w: 0} |
|||
spriteGenerateFallbackPhysicsShape: 1 |
|||
alphaUsage: 1 |
|||
alphaIsTransparency: 1 |
|||
spriteTessellationDetail: -1 |
|||
textureType: 2 |
|||
textureShape: 1 |
|||
singleChannelComponent: 0 |
|||
flipbookRows: 1 |
|||
flipbookColumns: 1 |
|||
maxTextureSizeSet: 0 |
|||
compressionQualitySet: 0 |
|||
textureFormatSet: 0 |
|||
ignorePngGamma: 0 |
|||
applyGammaDecoding: 0 |
|||
platformSettings: |
|||
- serializedVersion: 3 |
|||
buildTarget: DefaultTexturePlatform |
|||
maxTextureSize: 2048 |
|||
resizeAlgorithm: 0 |
|||
textureFormat: -1 |
|||
textureCompression: 0 |
|||
compressionQuality: 50 |
|||
crunchedCompression: 0 |
|||
allowsAlphaSplitting: 0 |
|||
overridden: 0 |
|||
androidETC2FallbackOverride: 0 |
|||
forceMaximumCompressionQuality_BC6H_BC7: 0 |
|||
- serializedVersion: 3 |
|||
buildTarget: Standalone |
|||
maxTextureSize: 2048 |
|||
resizeAlgorithm: 0 |
|||
textureFormat: -1 |
|||
textureCompression: 0 |
|||
compressionQuality: 50 |
|||
crunchedCompression: 0 |
|||
allowsAlphaSplitting: 0 |
|||
overridden: 0 |
|||
androidETC2FallbackOverride: 0 |
|||
forceMaximumCompressionQuality_BC6H_BC7: 0 |
|||
- serializedVersion: 3 |
|||
buildTarget: Windows Store Apps |
|||
maxTextureSize: 2048 |
|||
resizeAlgorithm: 0 |
|||
textureFormat: -1 |
|||
textureCompression: 0 |
|||
compressionQuality: 50 |
|||
crunchedCompression: 0 |
|||
allowsAlphaSplitting: 0 |
|||
overridden: 0 |
|||
androidETC2FallbackOverride: 0 |
|||
forceMaximumCompressionQuality_BC6H_BC7: 0 |
|||
spriteSheet: |
|||
serializedVersion: 2 |
|||
sprites: [] |
|||
outline: [] |
|||
physicsShape: [] |
|||
bones: [] |
|||
spriteID: |
|||
internalID: 0 |
|||
vertices: [] |
|||
indices: |
|||
edges: [] |
|||
weights: [] |
|||
secondaryTextures: [] |
|||
spritePackingTag: |
|||
pSDRemoveMatte: 0 |
|||
pSDShowRemoveMatteOption: 0 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
using Cinemachine; |
|||
using NaughtyAttributes; |
|||
|
|||
namespace GameplayIngredients.Actions |
|||
{ |
|||
[Callable("Cinemachine", "Misc/ic-cinemachine.png")] |
|||
public class CinemachineSetCameraNoiseAction : ActionBase |
|||
{ |
|||
[SerializeField] |
|||
bool useLiveCamera; |
|||
[SerializeField, HideIf("useLiveCamera")] |
|||
CinemachineVirtualCameraBase targetCamera; |
|||
|
|||
public override void Execute(GameObject instigator = null) |
|||
{ |
|||
CinemachineVirtualCameraBase cam = useLiveCamera ? |
|||
Manager.Get<VirtualCameraManager>().GetComponent<CinemachineBrain>().ActiveVirtualCamera as CinemachineVirtualCameraBase |
|||
: targetCamera; |
|||
|
|||
if(cam == null) |
|||
{ |
|||
Debug.Log("CinemachineSetCameraNoiseAction : Cannot find a suitable Camera to set noise"); |
|||
return; |
|||
} |
|||
|
|||
|
|||
} |
|||
} |
|||
|
|||
} |
|||
|
|
|||
fileFormatVersion: 2 |
|||
guid: 1058d44f04ffbab47bb8ae0dbe56318c |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {fileID: 2800000, guid: 579feadfc8e2aa14f9ee187ab05acab4, type: 3} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
using Cinemachine; |
|||
|
|||
namespace GameplayIngredients.Actions |
|||
{ |
|||
[Callable("Cinemachine", "Misc/ic-cinemachine.png")] |
|||
public class CinemachineSetCustomBlendsAction : ActionBase |
|||
{ |
|||
public enum Action |
|||
{ |
|||
Enable, |
|||
Disable |
|||
} |
|||
|
|||
[SerializeField] |
|||
Action action; |
|||
|
|||
[SerializeField] |
|||
CinemachineBlenderSettings settings; |
|||
|
|||
public override void Execute(GameObject instigator = null) |
|||
{ |
|||
if(Manager.TryGet(out VirtualCameraManager vcm)) |
|||
{ |
|||
if (action == Action.Disable || settings == null) |
|||
{ |
|||
vcm.Brain.m_CustomBlends = null; |
|||
} |
|||
else |
|||
{ |
|||
vcm.Brain.m_CustomBlends = settings; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
|||
|
|
|||
fileFormatVersion: 2 |
|||
guid: f170ba3f4d14b2e4caa58c23d452a1aa |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {fileID: 2800000, guid: 579feadfc8e2aa14f9ee187ab05acab4, type: 3} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue