mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-13 19:48:03 +07:00
dev tests
This commit is contained in:
BIN
Assets/DevTests/Animations/AlphaTests/Tortuga/Bear.fla
Normal file
BIN
Assets/DevTests/Animations/AlphaTests/Tortuga/Bear.fla
Normal file
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29c7aa624b715495da989e094be3d74a
|
||||
timeCreated: 1480925289
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/DevTests/Animations/FeatureTests/8_labels.fla
Normal file
BIN
Assets/DevTests/Animations/FeatureTests/8_labels.fla
Normal file
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6a5952dba743d4595a83376fa4484f59
|
||||
timeCreated: 1480710495
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
214
Assets/DevTests/Scenes/Scene.unity
Normal file
214
Assets/DevTests/Scenes/Scene.unity
Normal file
@@ -0,0 +1,214 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
SceneSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PVSData:
|
||||
m_PVSObjectsArray: []
|
||||
m_PVSPortalsArray: []
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 3
|
||||
m_SkyboxMaterial: {fileID: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 1
|
||||
m_LightmapsMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 0
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 3
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_TextureWidth: 1024
|
||||
m_TextureHeight: 1024
|
||||
m_AOMaxDistance: 1
|
||||
m_Padding: 2
|
||||
m_CompAOExponent: 0
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 1024
|
||||
m_ReflectionCompression: 2
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_RuntimeCPUUsage: 25
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
accuratePlacement: 0
|
||||
minRegionArea: 2
|
||||
cellSize: 0.16666667
|
||||
manualCellSize: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &41841841
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 41841843}
|
||||
- 114: {fileID: 41841842}
|
||||
m_Layer: 0
|
||||
m_Name: '[SwfManager]'
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &41841842
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 41841841}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f455e092ebcb64c3e94de2e2f2f7a614, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &41841843
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 41841841}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
--- !u!1 &1173114888
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 1173114893}
|
||||
- 20: {fileID: 1173114892}
|
||||
- 92: {fileID: 1173114891}
|
||||
- 124: {fileID: 1173114890}
|
||||
- 81: {fileID: 1173114889}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &1173114889
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1173114888}
|
||||
m_Enabled: 1
|
||||
--- !u!124 &1173114890
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1173114888}
|
||||
m_Enabled: 1
|
||||
--- !u!92 &1173114891
|
||||
Behaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1173114888}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &1173114892
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1173114888}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 1.5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!4 &1173114893
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1173114888}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
8
Assets/DevTests/Scenes/Scene.unity.meta
Normal file
8
Assets/DevTests/Scenes/Scene.unity.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ce0e3cb67ade4279a5eedf786d19ca7
|
||||
timeCreated: 1480709959
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
31
Assets/DevTests/Scripts/DeleteOnEnd.cs
Normal file
31
Assets/DevTests/Scripts/DeleteOnEnd.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using UnityEngine;
|
||||
|
||||
using FTRuntime;
|
||||
|
||||
namespace FTDevTests {
|
||||
public class DeleteOnEnd : MonoBehaviour {
|
||||
void Start () {
|
||||
var clip = GetComponent<SwfClip>();
|
||||
if ( clip ) {
|
||||
clip.OnChangeCurrentFrameEvent += OnChangeCurrentFrameEvent;
|
||||
}
|
||||
}
|
||||
|
||||
void OnDestroy() {
|
||||
Debug.Log("DeleteOnEnd::OnDestroy");
|
||||
var clip = GetComponent<SwfClip>();
|
||||
if ( clip ) {
|
||||
clip.OnChangeCurrentFrameEvent -= OnChangeCurrentFrameEvent;
|
||||
}
|
||||
}
|
||||
|
||||
void OnChangeCurrentFrameEvent(SwfClip clip) {
|
||||
Debug.LogFormat("OnChangeCurrentFrameEvent: {0}", clip.currentFrame);
|
||||
if ( clip.currentFrame == clip.frameCount - 1 ) {
|
||||
Debug.Log("Delete");
|
||||
Destroy(gameObject);
|
||||
Debug.Log("After Delete");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Assets/DevTests/Scripts/DeleteOnEnd.cs.meta
Normal file
12
Assets/DevTests/Scripts/DeleteOnEnd.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4482cb82b8422471cb0caf2735d7acbb
|
||||
timeCreated: 1480952822
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
46
Assets/DevTests/Scripts/EchoEventListener.cs
Normal file
46
Assets/DevTests/Scripts/EchoEventListener.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using UnityEngine;
|
||||
|
||||
using FTRuntime;
|
||||
|
||||
namespace FTDevTests {
|
||||
public class EchoEventListener : MonoBehaviour {
|
||||
void Start () {
|
||||
var clip = GetComponent<SwfClip>();
|
||||
if ( clip ) {
|
||||
clip.OnChangeClipEvent += OnChangeClipEvent;
|
||||
clip.OnChangeSequenceEvent += OnChangeSequenceEvent;
|
||||
clip.OnChangeCurrentFrameEvent += OnChangeCurrentFrameEvent;
|
||||
}
|
||||
var ctrl = GetComponent<SwfClipController>();
|
||||
if ( ctrl ) {
|
||||
ctrl.OnPlayStoppedEvent += OnPlayStoppedEvent;
|
||||
ctrl.OnRewindPlayingEvent += OnRewindPlayingEvent;
|
||||
ctrl.OnStopPlayingEvent += OnStopPlayingEvent;
|
||||
}
|
||||
}
|
||||
|
||||
void OnChangeClipEvent(SwfClip clip) {
|
||||
Debug.LogFormat(this, "OnChangeClipEvent: {0}", clip.clip);
|
||||
}
|
||||
|
||||
void OnChangeSequenceEvent(SwfClip clip) {
|
||||
Debug.LogFormat(this, "OnChangeSequenceEvent: {0}", clip.sequence);
|
||||
}
|
||||
|
||||
void OnChangeCurrentFrameEvent(SwfClip clip) {
|
||||
Debug.LogFormat(this, "OnChangeCurrentFrameEvent: {0}", clip.currentFrame);
|
||||
}
|
||||
|
||||
void OnPlayStoppedEvent(SwfClipController ctrl) {
|
||||
Debug.LogFormat(this, "OnPlayStoppedEvent: {0}", ctrl.clip);
|
||||
}
|
||||
|
||||
void OnRewindPlayingEvent(SwfClipController ctrl) {
|
||||
Debug.LogFormat(this, "OnRewindPlayingEvent: {0}", ctrl.clip);
|
||||
}
|
||||
|
||||
void OnStopPlayingEvent(SwfClipController ctrl) {
|
||||
Debug.LogFormat(this, "OnStopPlayingEvent: {0}", ctrl.clip);
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Assets/DevTests/Scripts/EchoEventListener.cs.meta
Normal file
12
Assets/DevTests/Scripts/EchoEventListener.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 38f0f7dc068694fccbf1740118107b65
|
||||
timeCreated: 1480885888
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user