浏览代码

Icons + Log Action

/main
peeweek 5 年前
当前提交
86dba74a
共有 10 个文件被更改,包括 281 次插入23 次删除
  1. 10
      Icons/Actions/ic-action-ui.png
  2. 23
      Icons/Actions/ic-action-ui.png.meta
  3. 2
      Runtime/LevelScripting/Actions/DirectorControlRigAction.cs.meta
  4. 2
      Runtime/LevelScripting/Actions/ToggleUIAction.cs.meta
  5. 5
      Icons/Actions/ic-action-director.png
  6. 101
      Icons/Actions/ic-action-director.png.meta
  7. 10
      Icons/Actions/ic-action-log.png
  8. 101
      Icons/Actions/ic-action-log.png.meta
  9. 39
      Runtime/LevelScripting/Actions/LogAction.cs
  10. 11
      Runtime/LevelScripting/Actions/LogAction.cs.meta

10
Icons/Actions/ic-action-ui.png

之前 之后
宽度: 16  |  高度: 16  |  大小: 591 B

23
Icons/Actions/ic-action-ui.png.meta


fileFormatVersion: 2
guid: be8dc56f14a2f0442846ae0fa9094597
guid: eccd73d046a00214f8eee58ce0e2b16e
fileIDToRecycleName: {}
internalIDToNameTable: []
serializedVersion: 9
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 0

maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
filterMode: -1
wrapW: 1
wrapW: -1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []

spriteID:
internalID: 0
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0

2
Runtime/LevelScripting/Actions/DirectorControlRigAction.cs.meta


serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
icon: {fileID: 2800000, guid: 159806d978e00114cb2b1e43dff3d48c, type: 3}
userData:
assetBundleName:
assetBundleVariant:

2
Runtime/LevelScripting/Actions/ToggleUIAction.cs.meta


serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
icon: {fileID: 2800000, guid: eccd73d046a00214f8eee58ce0e2b16e, type: 3}
userData:
assetBundleName:
assetBundleVariant:

5
Icons/Actions/ic-action-director.png

之前 之后
宽度: 16  |  高度: 16  |  大小: 654 B

101
Icons/Actions/ic-action-director.png.meta


fileFormatVersion: 2
guid: 159806d978e00114cb2b1e43dff3d48c
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
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
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
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

10
Icons/Actions/ic-action-log.png

之前 之后
宽度: 16  |  高度: 16  |  大小: 492 B

101
Icons/Actions/ic-action-log.png.meta


fileFormatVersion: 2
guid: 995bed5518fc03b4189519d1762eed5b
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
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
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
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

39
Runtime/LevelScripting/Actions/LogAction.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NaughtyAttributes;
namespace GameplayIngredients.Actions
{
public class LogAction : ActionBase
{
const string kHelpText = @"Wildcards:
%INSTIGATOR% : Instigator Name
%TIME% : Time (since startup)
";
[Multiline, InfoBox(kHelpText, InfoBoxType.Normal)]
public string LogText = "Instigator = %INSTIGATOR%";
public LogType type = LogType.Log;
public override void Execute(GameObject instigator = null)
{
Debug.unityLogger.Log(type, FormatString(instigator));
}
string FormatString(GameObject instigator)
{
string text = LogText;
if(text.Contains("%INSTIGATOR%"))
{
text = text.Replace("%INSTIGATOR%", instigator == null ? "NULL" : instigator.name);
}
if(text.Contains("%TIME%"))
{
text = text.Replace("%TIME%", Time.time.ToString());
}
return text;
}
}
}

11
Runtime/LevelScripting/Actions/LogAction.cs.meta


fileFormatVersion: 2
guid: a0cf6cf5b077c50499599ee38c30aae8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {fileID: 2800000, guid: 995bed5518fc03b4189519d1762eed5b, type: 3}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存