Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UE] Bug: AnimNotify里标记uproperty.EditAnywhere或uproperty.EditDefaultsOnly的配置变量,无法在蒙太奇编辑器里显示 #1941

Open
3 tasks done
superztf opened this issue Dec 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working Unreal

Comments

@superztf
Copy link

superztf commented Dec 11, 2024

前置阅读 | Pre-reading

Puer的版本 | Puer Version

1.07

UE的版本 | UE Version

5.4.4

发生在哪个平台 | Platform

Editor(win)

错误信息 | Error Message

No response

问题重现 | Bug reproduce

(1)开启蓝图类继承功能(自动JSEnv模式)
(2)编写以下脚本

import * as UE from 'ue'
import { uproperty } from 'ue';

class AnimNotify_TestMe extends UE.AnimNotify
{
    @uproperty.uproperty(uproperty.EditAnywhere)
    TestValue:number = 1;

    @UE.edit_on_instance()
    ParticalSystem!: UE.SoftClassPath;

    @uproperty.uproperty(uproperty.EditAnywhere)
    MyName:string = "";
}

export default AnimNotify_TestMe;

(3)新建一个Montage动作资源或找一个任意的Montange动作资源
(4)在Notify轨道,添加上TestMe这个动作通知
(5)选中轨道上TestMe,正常应该在右侧Details面板上看到步骤(2)定义的2个变量,实际上不显示

也测试过变量标注改为@UE.edit_on_instance() 也不生效
初步原因分析:AnimNotify_TestMe生成的蓝图,变量没有把Instance Editable设置为True。

@superztf superztf added bug Something isn't working Unreal labels Dec 11, 2024
@chexiongsheng
Copy link
Collaborator

你试试更新到这里:d947d10

@superztf
Copy link
Author

2024 12 12_郑腾飞 419918a0cd1628d5c2658aa23cbee25d

@chexiongsheng 已更新测试,还是不生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Unreal
Projects
None yet
Development

No branches or pull requests

2 participants