$PBExportHeader$u_st_splitbar.sru $PBExportComments$PFC SplitBar class. This object needs to be removed if application is migrated to PFC 6.0 forward global type u_st_splitbar from statictext end type end forward global type u_st_splitbar from stati
Advanced GUI Code Example This code example demonstrates how to create an advanced graphical user interface (GUI) in PowerBuilder, using native PowerBuilder objects as well as third-party controls implemented using the PowerBuilder Native Interface
这篇博客实现一个小功能,通过鼠标拖动3D物体。我们知道,如果是拖动 UIUG 的控件的话,它是有接口可以使用的。但是3D物体就没有可直接使用的接口(或者说我没找到?),就需要我们自己写代码。既然如此,那我们就来实现以下这个功能。
首先先创建一个这样的场景
创建两个 cube 只是为了看清效果。然后给 摄像机添加一个 DragObject 脚本
using UnityEngine;
using System.Collections;
public class DragObject : Mono