定制OP
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Playables;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
public class SpriteLoopAsset : PlayableAsset
|
||||
{
|
||||
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
|
||||
{
|
||||
var playable = ScriptPlayable<SpriteLoopBehaviour>.Create(graph);
|
||||
var behaviour = playable.GetBehaviour();
|
||||
|
||||
// behaviour.targetRenderer =
|
||||
|
||||
return playable;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2c1426f388fb47d38898bba5b0a05289
|
||||
timeCreated: 1746426976
|
||||
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Playables;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
public class SpriteLoopBehaviour : PlayableBehaviour
|
||||
{
|
||||
public Renderer targetRenderer;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 647ac6c4f2be4b248d33ac5abe9d4871
|
||||
timeCreated: 1746427045
|
||||
Reference in New Issue
Block a user