unreal游戏,unreal教学,unreal素材

超级管理员

87

帖子

0

回复

254

积分

楼主
发表于 2018-03-09 10:35:26 | 查看: 88 | 回复: 0

//#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"

//void AMyActor::OnChangeTimeOfDay()

//{

////TArray<AActor*> _tArray;

////UGameplayStatics::GetAllActorsOfClass(GetWorld(),AActor::StaticClass(),_tArray);

////for (int32 i = 0; i < _tArray.Num(); i++)

////{

////if(UKismetSystemLibrary::GetDisplayName(_tArray[i]) == "Light Source")

////{

////ADirectionalLight * light = Cast<ADirectionalLight>(_tArray[i]);

////FRotator rotator = FRotator::ZeroRotator;

////rotator.Pitch = 300.0f;

////light->AddActorLocalRotation(/*FRotator(300.0f,0.0f,0.0f)*/rotator);

////}

////}

//

////GEngine->AddOnScreenDebugMessage(-1, 3, FColor(255,0,0), FString("change time"));

//

//}




您的帖子在2018-07-12 14:12:45被scouther编辑
上一篇:ue4 打开网页 下一篇:ue4实现富文本提示
您需要登录后才可以回帖 登录 | 立即注册

Copyright © 2017-2018 Scouther Group.All rights reserved.